@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $body = null |
49 | 49 | ): \stdClass |
50 | 50 | { |
51 | - $headerParamMap = array_combine(array_map(function ($key) { |
|
51 | + $headerParamMap = array_combine(array_map(function($key) { |
|
52 | 52 | return $this->getHeaderParameterName($key); |
53 | 53 | }, array_keys($headers)), array_keys($headers)); |
54 | 54 | |
@@ -127,18 +127,18 @@ discard block |
||
127 | 127 | private function getHeaderParameterName(string $headerName) |
128 | 128 | { |
129 | 129 | $replacements = [ |
130 | - function ($matches) { |
|
130 | + function($matches) { |
|
131 | 131 | return strtolower($matches[2]); |
132 | 132 | }, |
133 | - function ($matches) { |
|
133 | + function($matches) { |
|
134 | 134 | return strtoupper($matches[2]); |
135 | 135 | }, |
136 | - function ($matches) { |
|
136 | + function($matches) { |
|
137 | 137 | return strtoupper($matches[1]); |
138 | 138 | }, |
139 | 139 | ]; |
140 | 140 | |
141 | - foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/',] as $index => $pattern) { |
|
141 | + foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/', ] as $index => $pattern) { |
|
142 | 142 | $headerName = preg_replace_callback($pattern, $replacements[$index], $headerName); |
143 | 143 | } |
144 | 144 |