@@ -180,7 +180,7 @@ |
||
| 180 | 180 | */ |
| 181 | 181 | public static function flatten(array $array, $depth = INF) |
| 182 | 182 | { |
| 183 | - return array_reduce($array, function ($result, $item) use ($depth) { |
|
| 183 | + return array_reduce($array, function($result, $item) use ($depth) { |
|
| 184 | 184 | $item = $item instanceof Collection ? $item->all() : $item; |
| 185 | 185 | |
| 186 | 186 | if (!is_array($item)) { |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - !isset($pimple['access_token']) && $pimple['access_token'] = function ($app) { |
|
| 21 | + !isset($pimple['access_token']) && $pimple['access_token'] = function($app) { |
|
| 22 | 22 | return new Client($app); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register(Container $pimple) |
| 26 | 26 | { |
| 27 | - $pimple['config'] = function ($app) { |
|
| 27 | + $pimple['config'] = function($app) { |
|
| 28 | 28 | return new Config($app->getConfig()); |
| 29 | 29 | }; |
| 30 | 30 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register(Container $pimple) |
| 26 | 26 | { |
| 27 | - $pimple['http_client'] = function ($app) { |
|
| 27 | + $pimple['http_client'] = function($app) { |
|
| 28 | 28 | return new Client($app['config']->get('http', [])); |
| 29 | 29 | }; |
| 30 | 30 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['text'] = function ($app) { |
|
| 21 | + $pimple['text'] = function($app) { |
|
| 22 | 22 | return new Client($app); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['image'] = function ($app) { |
|
| 21 | + $pimple['image'] = function($app) { |
|
| 22 | 22 | return new Client($app); |
| 23 | 23 | }; |
| 24 | 24 | } |