@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | $body = null |
| 50 | 50 | ): \stdClass { |
| 51 | 51 | |
| 52 | - $headerParamMap = array_combine(array_map(function ($key) { |
|
| 52 | + $headerParamMap = array_combine(array_map(function($key) { |
|
| 53 | 53 | return $this->getHeaderParameterName($key); |
| 54 | 54 | }, array_keys($headers)), array_keys($headers)); |
| 55 | 55 | |
@@ -129,18 +129,18 @@ discard block |
||
| 129 | 129 | private function getHeaderParameterName(string $headerName) |
| 130 | 130 | { |
| 131 | 131 | $replacements = [ |
| 132 | - function ($matches) { |
|
| 132 | + function($matches) { |
|
| 133 | 133 | return strtolower($matches[2]); |
| 134 | 134 | }, |
| 135 | - function ($matches) { |
|
| 135 | + function($matches) { |
|
| 136 | 136 | return strtoupper($matches[2]); |
| 137 | 137 | }, |
| 138 | - function ($matches) { |
|
| 138 | + function($matches) { |
|
| 139 | 139 | return strtoupper($matches[1]); |
| 140 | 140 | }, |
| 141 | 141 | ]; |
| 142 | 142 | |
| 143 | - foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/',] as $index => $pattern) { |
|
| 143 | + foreach (['/^(X-)?(.*)/i', '/(\-)([\S]{1})/', '/(^[\S]{1})/', ] as $index => $pattern) { |
|
| 144 | 144 | $headerName = preg_replace_callback($pattern, $replacements[$index], $headerName); |
| 145 | 145 | } |
| 146 | 146 | |
@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | /* |
| 3 | 3 | * This file is part of the KleijnWeb\PhpApi\Descriptions package. |
| 4 | 4 | * |