@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function register(Container $app) |
| 14 | 14 | { |
| 15 | - $app['key'] = function ($app) { |
|
| 15 | + $app['key'] = function($app) { |
|
| 16 | 16 | return new Client($app); |
| 17 | 17 | }; |
| 18 | 18 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | __DIR__.'/../config/apigateway.php', 'services.apigateway' |
| 18 | 18 | ); |
| 19 | 19 | |
| 20 | - $this->app->singleton('apigateway', function ($app) { |
|
| 20 | + $this->app->singleton('apigateway', function($app) { |
|
| 21 | 21 | return new Application( |
| 22 | 22 | $app['config']['services.apigateway'] |
| 23 | 23 | ); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['config'] = function ($app) { |
|
| 21 | + $pimple['config'] = function($app) { |
|
| 22 | 22 | return new Config($app->getConfig()); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['base_client'] = function ($app) { |
|
| 21 | + $pimple['base_client'] = function($app) { |
|
| 22 | 22 | return new BaseClient($app); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['logger'] = $pimple['log'] = function ($app) { |
|
| 21 | + $pimple['logger'] = $pimple['log'] = function($app) { |
|
| 22 | 22 | $config = $this->formatLogConfig($app); |
| 23 | 23 | |
| 24 | 24 | if (!empty($config)) { |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['http_client'] = function ($app) { |
|
| 21 | + $pimple['http_client'] = function($app) { |
|
| 22 | 22 | return new Client($app['config']->get('http', [])); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | */ |
| 19 | 19 | public function register(Container $pimple) |
| 20 | 20 | { |
| 21 | - $pimple['request'] = function () { |
|
| 21 | + $pimple['request'] = function() { |
|
| 22 | 22 | return Request::createFromGlobals(); |
| 23 | 23 | }; |
| 24 | 24 | } |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $query = array_merge($this->getCommonParameters(), $query); |
| 41 | 41 | |
| 42 | 42 | $query['Signature'] = $this->signature( |
| 43 | - 'GET', $this->baseUri . $url, $query |
|
| 43 | + 'GET', $this->baseUri.$url, $query |
|
| 44 | 44 | ); |
| 45 | 45 | |
| 46 | 46 | return $this->request($url, 'GET', ['query' => $query]); |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | $data = array_merge($this->getCommonParameters(), $data); |
| 61 | 61 | |
| 62 | 62 | $data['Signature'] = $this->signature( |
| 63 | - 'POST', $this->baseUri . $url, $data |
|
| 63 | + 'POST', $this->baseUri.$url, $data |
|
| 64 | 64 | ); |
| 65 | 65 | |
| 66 | 66 | return $this->request($url, 'POST', ['form_params' => $data]); |
@@ -28,8 +28,7 @@ |
||
| 28 | 28 | $response->getBody()->rewind(); |
| 29 | 29 | |
| 30 | 30 | switch ($type ?: 'array') { |
| 31 | - case 'collection': |
|
| 32 | - return $response->toCollection(); |
|
| 31 | + case 'collection' : return $response->toCollection(); |
|
| 33 | 32 | case 'array': |
| 34 | 33 | return $response->toArray(); |
| 35 | 34 | case 'object': |