@@ -11,9 +11,9 @@ |
||
| 11 | 11 | |
| 12 | 12 | class ServiceContainer extends Container |
| 13 | 13 | { |
| 14 | - /** |
|
| 15 | - * @var array |
|
| 16 | - */ |
|
| 14 | + /** |
|
| 15 | + * @var array |
|
| 16 | + */ |
|
| 17 | 17 | protected $providers = []; |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -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); |