@@ -174,7 +174,7 @@ |
||
| 174 | 174 | */ |
| 175 | 175 | public static function flatten(array $array, $depth = INF) |
| 176 | 176 | { |
| 177 | - return array_reduce($array, function ($result, $item) use ($depth) { |
|
| 177 | + return array_reduce($array, function($result, $item) use ($depth) { |
|
| 178 | 178 | $item = $item instanceof Collection ? $item->all() : $item; |
| 179 | 179 | |
| 180 | 180 | if (!is_array($item)) { |
@@ -12,8 +12,8 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | function generate_sign(array $headers, $secretKey) |
| 14 | 14 | { |
| 15 | - $headers = array_map(function ($key, $value) { |
|
| 16 | - return strtolower($key) . ': ' . $value; |
|
| 15 | + $headers = array_map(function($key, $value) { |
|
| 16 | + return strtolower($key).': '.$value; |
|
| 17 | 17 | }, array_keys($headers), $headers); |
| 18 | 18 | |
| 19 | 19 | $sourceString = implode("\n", $headers); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function register(Container $app) |
| 14 | 14 | { |
| 15 | - $app['api'] = function ($app) { |
|
| 15 | + $app['api'] = function($app) { |
|
| 16 | 16 | return new Client($app); |
| 17 | 17 | }; |
| 18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function register(Container $app) |
| 14 | 14 | { |
| 15 | - $app['usage_plan'] = function ($app) { |
|
| 15 | + $app['usage_plan'] = function($app) { |
|
| 16 | 16 | return new Client($app); |
| 17 | 17 | }; |
| 18 | 18 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function register(Container $app) |
| 14 | 14 | { |
| 15 | - $app['service'] = function ($app) { |
|
| 15 | + $app['service'] = function($app) { |
|
| 16 | 16 | return new Client($app); |
| 17 | 17 | }; |
| 18 | 18 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | $srcStr = implode("\n", [ |
| 19 | 19 | $method, |
| 20 | - parse_url($url, PHP_URL_HOST) . parse_url($url, PHP_URL_PATH), |
|
| 20 | + parse_url($url, PHP_URL_HOST).parse_url($url, PHP_URL_PATH), |
|
| 21 | 21 | json_encode($params, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) |
| 22 | 22 | ]); |
| 23 | 23 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | if ($this->app->withFingerprint()) { |
| 187 | 187 | $headers['Fingerprint'] = $this->fingerprint( |
| 188 | 188 | $method, |
| 189 | - $this->baseUri . $url, |
|
| 189 | + $this->baseUri.$url, |
|
| 190 | 190 | ($options['json'] ?? []) + ($options['form_params'] ?? []) + ($options['query'] ?? []) |
| 191 | 191 | ); |
| 192 | 192 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | */ |
| 235 | 235 | protected function jaegerMiddleware() |
| 236 | 236 | { |
| 237 | - return Middleware::mapRequest(function (RequestInterface $request) { |
|
| 237 | + return Middleware::mapRequest(function(RequestInterface $request) { |
|
| 238 | 238 | |
| 239 | 239 | if ($headers = $this->app['config']->get('jaeger.headers', [])) { |
| 240 | 240 | |