@@ -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 | |
@@ -128,18 +128,18 @@ discard block |
||
| 128 | 128 | private function getHeaderParameterName(string $headerName) |
| 129 | 129 | { |
| 130 | 130 | $replacements = [ |
| 131 | - function ($matches) { |
|
| 131 | + function($matches) { |
|
| 132 | 132 | return strtolower($matches[2]); |
| 133 | 133 | }, |
| 134 | - function ($matches) { |
|
| 134 | + function($matches) { |
|
| 135 | 135 | return strtoupper($matches[2]); |
| 136 | 136 | }, |
| 137 | - function ($matches) { |
|
| 137 | + function($matches) { |
|
| 138 | 138 | return strtoupper($matches[1]); |
| 139 | 139 | }, |
| 140 | 140 | ]; |
| 141 | 141 | |
| 142 | - foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/',] as $index => $pattern) { |
|
| 142 | + foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/', ] as $index => $pattern) { |
|
| 143 | 143 | $headerName = preg_replace_callback($pattern, $replacements[$index], $headerName); |
| 144 | 144 | } |
| 145 | 145 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | $definition = $schema->getDefinition(); |
| 35 | 35 | |
| 36 | 36 | if ($requireAllWhenNotSpecified || $forceNoAdditionalProperties) { |
| 37 | - $hackDefinition = function (\stdClass $definition) use ( |
|
| 37 | + $hackDefinition = function(\stdClass $definition) use ( |
|
| 38 | 38 | $forceNoAdditionalProperties, |
| 39 | 39 | $requireAllWhenNotSpecified, |
| 40 | 40 | &$hackDefinition |