@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register(Container $pimple) |
27 | 27 | { |
28 | - $pimple['chat'] = function ($app) { |
|
28 | + $pimple['chat'] = function($app) { |
|
29 | 29 | return new Client($app); |
30 | 30 | }; |
31 | 31 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register(Container $pimple) |
27 | 27 | { |
28 | - $pimple['department'] = function ($app) { |
|
28 | + $pimple['department'] = function($app) { |
|
29 | 29 | return new Client($app); |
30 | 30 | }; |
31 | 31 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | { |
41 | 41 | parent::__construct($values); |
42 | 42 | |
43 | - $this['config'] = function () use ($config) { |
|
43 | + $this['config'] = function() use ($config) { |
|
44 | 44 | return new Collection($config); |
45 | 45 | }; |
46 | 46 |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | return $this; |
58 | 58 | } |
59 | 59 | |
60 | - $middleware = function (callable $handler) { |
|
61 | - return function (RequestInterface $request, array $options) use ($handler) { |
|
60 | + $middleware = function(callable $handler) { |
|
61 | + return function(RequestInterface $request, array $options) use ($handler) { |
|
62 | 62 | if ($this->app['access_token']) { |
63 | 63 | parse_str($request->getUri()->getQuery(), $query); |
64 | 64 | |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | return $this; |
86 | 86 | } |
87 | 87 | |
88 | - $middleware = Middleware::retry(function ($retries, RequestInterface $request, ResponseInterface $response = null) { |
|
88 | + $middleware = Middleware::retry(function($retries, RequestInterface $request, ResponseInterface $response = null) { |
|
89 | 89 | if (is_null($response) || $retries < 1) { |
90 | 90 | return false; |
91 | 91 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register(Container $pimple) |
27 | 27 | { |
28 | - isset($pimple['client']) || $pimple['client'] = function ($app) { |
|
28 | + isset($pimple['client']) || $pimple['client'] = function($app) { |
|
29 | 29 | return new Client($app); |
30 | 30 | }; |
31 | 31 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | 'appsecret' => $this->app['config']->get('app_secret'), |
70 | 70 | ]]); |
71 | 71 | |
72 | - return tap($this->castResponseToType($response, 'array'), function ($value) { |
|
72 | + return tap($this->castResponseToType($response, 'array'), function($value) { |
|
73 | 73 | $this->getCache()->set($this->cacheFor(), $value, $value['expires_in']); |
74 | 74 | }); |
75 | 75 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register(Container $pimple) |
27 | 27 | { |
28 | - isset($pimple['access_token']) || $pimple['access_token'] = function ($app) { |
|
28 | + isset($pimple['access_token']) || $pimple['access_token'] = function($app) { |
|
29 | 29 | return new AccessToken($app); |
30 | 30 | }; |
31 | 31 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register(Container $pimple) |
27 | 27 | { |
28 | - $pimple['user'] = function ($app) { |
|
28 | + $pimple['user'] = function($app) { |
|
29 | 29 | return new Client($app); |
30 | 30 | }; |
31 | 31 | } |
@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function register(Container $pimple) |
27 | 27 | { |
28 | - $pimple['report'] = function ($app) { |
|
28 | + $pimple['report'] = function($app) { |
|
29 | 29 | return new Client($app); |
30 | 30 | }; |
31 | 31 | } |