Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Commit

Permalink
Merge pull request #15 from TheOrchid/analysis-zGaEgo
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
tabuna authored Oct 17, 2017
2 parents 88f95c0 + 3beee15 commit 2bb5793
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Console/MakeListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class MakeListener extends GeneratorCommand
*/
protected function getStub()
{
return __DIR__ . '/stubs/listener.stub';
return __DIR__.'/stubs/listener.stub';
}

/**
Expand All @@ -46,6 +46,6 @@ protected function getStub()
*/
protected function getDefaultNamespace($rootNamespace)
{
return $rootNamespace . '\Http\Sockets';
return $rootNamespace.'\Http\Sockets';
}
}
2 changes: 1 addition & 1 deletion src/Console/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
4 changes: 2 additions & 2 deletions src/Providers/ConsoleServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand All @@ -48,7 +48,7 @@ public function provides()
$provides = [];

foreach ($this->commands as $command) {
$provides[] = $this->namespace . $command;
$provides[] = $this->namespace.$command;
}

return $provides;
Expand Down
6 changes: 3 additions & 3 deletions src/Providers/SocketServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

Expand Down

0 comments on commit 2bb5793

Please sign in to comment.