@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function register(Container $app) |
| 20 | 20 | { |
| 21 | - $app['appmsg'] = function ($app) { |
|
| 21 | + $app['appmsg'] = function($app) { |
|
| 22 | 22 | return new Client($app); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function register(Container $app) |
| 20 | 20 | { |
| 21 | - $app['login'] = function ($app) { |
|
| 21 | + $app['login'] = function($app) { |
|
| 22 | 22 | return new Client($app); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function register(Container $app) |
| 20 | 20 | { |
| 21 | - $app['mass'] = function ($app) { |
|
| 21 | + $app['mass'] = function($app) { |
|
| 22 | 22 | return new Client($app); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -180,13 +180,13 @@ |
||
| 180 | 180 | throw new InvalidArgumentException(sprintf('Class "%s" not an instance of "%s".', $handler, EventHandlerInterface::class)); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | - return function ($payload) use ($handler) { |
|
| 183 | + return function($payload) use ($handler) { |
|
| 184 | 184 | return (new $handler($this->app ?? null))->handle($payload); |
| 185 | 185 | }; |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | 188 | if ($handler instanceof EventHandlerInterface) { |
| 189 | - return function () use ($handler) { |
|
| 189 | + return function() use ($handler) { |
|
| 190 | 190 | return $handler->handle(...func_get_args()); |
| 191 | 191 | }; |
| 192 | 192 | } |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public function register(Container $pimple) |
| 32 | 32 | { |
| 33 | - $pimple['config'] = function ($app) { |
|
| 33 | + $pimple['config'] = function($app) { |
|
| 34 | 34 | return new Config($app->getConfig()); |
| 35 | 35 | }; |
| 36 | 36 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function register(Container $pimple) |
| 34 | 34 | { |
| 35 | - $pimple['request'] = function () { |
|
| 35 | + $pimple['request'] = function() { |
|
| 36 | 36 | return Request::createFromGlobals(); |
| 37 | 37 | }; |
| 38 | 38 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function register(Container $pimple) |
| 34 | 34 | { |
| 35 | - $pimple['logger'] = $pimple['log'] = function ($app) { |
|
| 35 | + $pimple['logger'] = $pimple['log'] = function($app) { |
|
| 36 | 36 | $config = $this->formatLogConfig($app); |
| 37 | 37 | |
| 38 | 38 | if (!empty($config)) { |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function register(Container $pimple) |
| 34 | 34 | { |
| 35 | - $pimple['extension'] = function ($app) { |
|
| 35 | + $pimple['extension'] = function($app) { |
|
| 36 | 36 | return new Extension($app); |
| 37 | 37 | }; |
| 38 | 38 | } |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function register(Container $pimple) |
| 34 | 34 | { |
| 35 | - $pimple['http_client'] = function ($app) { |
|
| 35 | + $pimple['http_client'] = function($app) { |
|
| 36 | 36 | return new Client($app['config']->get('http', [])); |
| 37 | 37 | }; |
| 38 | 38 | } |