From 3beee15305c16e4ef84ae9bacc5cda6e34cbd43f Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Tue, 17 Oct 2017 22:38:18 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Console/MakeListener.php | 4 ++-- src/Console/Server.php | 2 +- src/Providers/ConsoleServiceProvider.php | 4 ++-- src/Providers/SocketServiceProvider.php | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Console/MakeListener.php b/src/Console/MakeListener.php index 223b212..34f6ca1 100644 --- a/src/Console/MakeListener.php +++ b/src/Console/MakeListener.php @@ -34,7 +34,7 @@ class MakeListener extends GeneratorCommand */ protected function getStub() { - return __DIR__ . '/stubs/listener.stub'; + return __DIR__.'/stubs/listener.stub'; } /** @@ -46,6 +46,6 @@ protected function getStub() */ protected function getDefaultNamespace($rootNamespace) { - return $rootNamespace . '\Http\Sockets'; + return $rootNamespace.'\Http\Sockets'; } } diff --git a/src/Console/Server.php b/src/Console/Server.php index f286681..ffb8926 100644 --- a/src/Console/Server.php +++ b/src/Console/Server.php @@ -60,7 +60,7 @@ public function handle() { $socket = new Socket($this->httpHost, $this->port, $this->address); require base_path('routes/socket.php'); - $this->info('Laravel web socket server started on ' . $this->httpHost . ':' . $this->port . '/' . 'address:' . $this->address); + $this->info('Laravel web socket server started on '.$this->httpHost.':'.$this->port.'/'.'address:'.$this->address); $socket->run(); } } diff --git a/src/Providers/ConsoleServiceProvider.php b/src/Providers/ConsoleServiceProvider.php index e2707af..5afab52 100644 --- a/src/Providers/ConsoleServiceProvider.php +++ b/src/Providers/ConsoleServiceProvider.php @@ -36,7 +36,7 @@ class ConsoleServiceProvider extends ServiceProvider public function register() { foreach ($this->commands as $command) { - $this->commands($this->namespace . $command); + $this->commands($this->namespace.$command); } } @@ -48,7 +48,7 @@ public function provides() $provides = []; foreach ($this->commands as $command) { - $provides[] = $this->namespace . $command; + $provides[] = $this->namespace.$command; } return $provides; diff --git a/src/Providers/SocketServiceProvider.php b/src/Providers/SocketServiceProvider.php index b4be2d3..5c1451e 100644 --- a/src/Providers/SocketServiceProvider.php +++ b/src/Providers/SocketServiceProvider.php @@ -32,11 +32,11 @@ public function boot() protected function registerConfig() { $this->publishes([ - realpath(__DIR__ . '/../Config/socket.php') => config_path('socket.php'), - realpath(__DIR__ . '/../socket.php') => base_path('routes/socket.php'), + realpath(__DIR__.'/../Config/socket.php') => config_path('socket.php'), + realpath(__DIR__.'/../socket.php') => base_path('routes/socket.php'), ]); $this->mergeConfigFrom( - realpath(__DIR__ . '/../Config/socket.php'), 'socket' + realpath(__DIR__.'/../Config/socket.php'), 'socket' ); }