| @@ -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 | } | 
| @@ -264,7 +264,7 @@ discard block | ||
| 264 | 264 | */ | 
| 265 | 265 | protected function retryMiddleware() | 
| 266 | 266 |      { | 
| 267 | - return Middleware::retry(function ( | |
| 267 | + return Middleware::retry(function( | |
| 268 | 268 | $retries, | 
| 269 | 269 | RequestInterface $request, | 
| 270 | 270 | ResponseInterface $response = null | 
| @@ -283,7 +283,7 @@ discard block | ||
| 283 | 283 | } | 
| 284 | 284 | |
| 285 | 285 | return false; | 
| 286 | -        }, function () { | |
| 286 | +        }, function() { | |
| 287 | 287 |              return abs($this->app->config->get('http.retry_delay', 500)); | 
| 288 | 288 | }); | 
| 289 | 289 | } | 
| @@ -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 | } |