Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Apply fixes from StyleCI #1027

Merged
merged 1 commit into from
Aug 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/websockets.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
'connection' => env('DB_CONNECTION', 'mysql'),

'table' => 'websockets_apps',
]
],
],

/*
Expand Down
4 changes: 2 additions & 2 deletions src/API/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ public function ensureValidAppId($appId)
* Ensure signature integrity coming from an
* authorized application.
*
* @param App $app
* @param Request $request
* @param App $app
* @param Request $request
* @return $this
*/
protected function ensureValidSignature(App $app, Request $request)
Expand Down
2 changes: 1 addition & 1 deletion src/API/TriggerEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TriggerEvent extends Controller
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request)
Expand Down
2 changes: 1 addition & 1 deletion src/Apps/MysqlAppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MysqlAppManager implements AppManager
/**
* Initialize the class.
*
* @param ConnectionInterface $database
* @param ConnectionInterface $database
*/
public function __construct(ConnectionInterface $database)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Apps/SQLiteAppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class SQLiteAppManager implements AppManager
/**
* Initialize the class.
*
* @param DatabaseInterface $database
* @param DatabaseInterface $database
*/
public function __construct(DatabaseInterface $database)
{
Expand Down
2 changes: 1 addition & 1 deletion src/WebSocketsServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function registerMySqlDatabase()
$this->app->singleton(ConnectionInterface::class, function () {
$factory = new MySQLFactory($this->app->make(LoopInterface::class));

$connectionKey = 'database.connections.' . config('websockets.managers.mysql.connection');
$connectionKey = 'database.connections.'.config('websockets.managers.mysql.connection');

$auth = trim(config($connectionKey.'.username').':'.config($connectionKey.'.password'), ':');
$connection = trim(config($connectionKey.'.host').':'.config($connectionKey.'.port'), ':');
Expand Down
4 changes: 1 addition & 3 deletions tests/Apps/MysqlAppManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
namespace BeyondCode\LaravelWebSockets\Test\Apps;

use BeyondCode\LaravelWebSockets\Apps\App;
use BeyondCode\LaravelWebSockets\Apps\ConfigAppManager;
use BeyondCode\LaravelWebSockets\Apps\MysqlAppManager;
use BeyondCode\LaravelWebSockets\Apps\SQLiteAppManager;
use BeyondCode\LaravelWebSockets\Contracts\AppManager;
use BeyondCode\LaravelWebSockets\Test\TestCase;

Expand Down Expand Up @@ -35,7 +33,7 @@ public function setUp(): void
$this->artisan('migrate:fresh', [
'--database' => 'mysql',
'--realpath' => true,
'--path' => __DIR__.'/../../database/migrations/'
'--path' => __DIR__.'/../../database/migrations/',
]);

$this->apps = app()->make(AppManager::class);
Expand Down
1 change: 0 additions & 1 deletion tests/Apps/SqliteAppManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace BeyondCode\LaravelWebSockets\Test\Apps;

use BeyondCode\LaravelWebSockets\Apps\App;
use BeyondCode\LaravelWebSockets\Apps\ConfigAppManager;
use BeyondCode\LaravelWebSockets\Apps\SQLiteAppManager;
use BeyondCode\LaravelWebSockets\Contracts\AppManager;
use BeyondCode\LaravelWebSockets\Test\TestCase;
Expand Down