@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | $this->app->singleton('wamp.run', '\sonrac\WAMP\Commands\RunServer'); |
51 | 51 | |
52 | - $this->app->singleton('wampClient', function () use ($config) { |
|
52 | + $this->app->singleton('wampClient', function() use ($config) { |
|
53 | 53 | return new Client($config['realm']); |
54 | 54 | }); |
55 | 55 | |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | $this->app->alias($abstract[0], $alias); |
75 | 75 | } |
76 | 76 | |
77 | - $this->app->singleton('sonrac\WAMP\Contracts\ClientTransportServiceProvider', function () use ($config) { |
|
77 | + $this->app->singleton('sonrac\WAMP\Contracts\ClientTransportServiceProvider', function() use ($config) { |
|
78 | 78 | return new RawSocketClientTransportProvider($config['host'], $config['port']); |
79 | 79 | }); |
80 | 80 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $middleware = isset($config['middleware']) ? explode('|', $config['middleware']) : []; |
48 | 48 | $namespace = isset($config['namespace']) ? $config['namespace'] : 'App\Controllers\WAMP'; |
49 | 49 | |
50 | - $this->groups[] = (object)[ |
|
50 | + $this->groups[] = (object) [ |
|
51 | 51 | 'middleware' => $middleware, |
52 | 52 | 'namespace' => $namespace, |
53 | 53 | 'prefix' => isset($config['prefix']) ? $config['prefix'] : '', |
@@ -128,16 +128,16 @@ discard block |
||
128 | 128 | return $callback; |
129 | 129 | } |
130 | 130 | |
131 | - $namespace = $namespace ? $namespace . '\\' : ''; |
|
131 | + $namespace = $namespace ? $namespace.'\\' : ''; |
|
132 | 132 | |
133 | 133 | $callback = explode('&', $callback); |
134 | 134 | $self = $this; |
135 | - return function (ClientSession $clientSession) use ($callback, $namespace, $self) { |
|
135 | + return function(ClientSession $clientSession) use ($callback, $namespace, $self) { |
|
136 | 136 | if (count($callback) === 1) { |
137 | 137 | return $this->{$callback[0]}($clientSession, $self->getClient()); |
138 | 138 | } |
139 | 139 | |
140 | - $class = app()->make($namespace . $callback[0]); |
|
140 | + $class = app()->make($namespace.$callback[0]); |
|
141 | 141 | |
142 | 142 | return $class->{$callback[1]}($clientSession, $self->getClient()); |
143 | 143 | }; |