Passed
Branch master (607667)
by Fabian
01:51
created
Category
src/Message/AbstractMessage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@
 block discarded – undo
129 129
      */
130 130
     protected function setHeader(string $name, array $value): self
131 131
     {
132
-        $this->headers[strtolower($name)] = [$name, array_filter($value, function ($item) {
132
+        $this->headers[strtolower($name)] = [$name, array_filter($value, function($item) {
133 133
             // Filter non and empty strings.
134 134
             return is_string($item) && !empty($item);
135 135
         })];
Please login to merge, or discard this patch.
src/Factory/ServerRequestFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
     protected function detectRequestHeaders(array $serverParams): array
103 103
     {
104 104
         // Filter server params and preserve all HTTP_* params.
105
-        $serverParams = array_filter($serverParams, function ($name) {
105
+        $serverParams = array_filter($serverParams, function($name) {
106 106
             return substr($name, 0, 5) === 'HTTP_';
107 107
         }, ARRAY_FILTER_USE_KEY);
108 108
 
Please login to merge, or discard this patch.
src/Factory/StreamFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
     {
45 45
         // Register temporary error handler to catch fopen warnings.
46 46
         $err = [];
47
-        set_error_handler(function (int $code, string $message) use (&$err): bool {
47
+        set_error_handler(function(int $code, string $message) use (&$err): bool {
48 48
             $err['code'] = $code;
49 49
             $err['message'] = $message;
50 50
             return true;
Please login to merge, or discard this patch.