@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | |
67 | 67 | array_walk( |
68 | 68 | $methods, |
69 | - function ($method) use ($decoder) { |
|
69 | + function($method) use ($decoder) { |
|
70 | 70 | $method = strtoupper(trim($method)); |
71 | 71 | |
72 | 72 | if (!$this->methodCarriesBody($method)) { |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | { |
154 | 154 | return array_reduce( |
155 | 155 | $array, |
156 | - function ($carry, $item) { |
|
156 | + function($carry, $item) { |
|
157 | 157 | return is_array($item) ? array_merge($carry, $this->flatten($item)) : array_merge($carry, [$item]); |
158 | 158 | }, |
159 | 159 | [] |
@@ -61,7 +61,7 @@ |
||
61 | 61 | public function decode($rawBody) |
62 | 62 | { |
63 | 63 | $lines = array_map( |
64 | - function ($line) { |
|
64 | + function($line) { |
|
65 | 65 | return str_getcsv($line, $this->delimiter, $this->enclosure, $this->escape); |
66 | 66 | }, |
67 | 67 | explode("\n", $rawBody) |
@@ -46,7 +46,7 @@ |
||
46 | 46 | if (!$parsedBody instanceof \SimpleXMLElement) { |
47 | 47 | // @codeCoverageIgnoreStart |
48 | 48 | $errors = array_map( |
49 | - function (\LibXMLError $error) { |
|
49 | + function(\LibXMLError $error) { |
|
50 | 50 | return '"' . $error->message . '"'; |
51 | 51 | }, |
52 | 52 | libxml_get_errors() |