Completed
Push — master ( 34732e...6894ab )
by John
07:41
created
src/Description/Schema/Validator/DefaultValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/Description/Schema/Validator/SchemaValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/Description/Schema/ObjectSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/Description/Schema/ScalarSchema.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/Description/Element.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/Request/ParameterCoercer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.
src/Request/RequestParameterAssembler.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/MessageValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
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
  *
Please login to merge, or discard this patch.