Test Failed
Push — master ( b3c701...0c9d2e )
by Alexpts
02:03
created
src/Message.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function withHeader($name, $value): self
64 64
     {
65 65
         $name = strtolower($name);
66
-        $value = array_map('trim', (array)$value);
66
+        $value = array_map('trim', (array) $value);
67 67
         $this->validateHeader($name, $value);
68 68
 
69 69
         $this->headers[$name] = $value;
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         }
111 111
 
112 112
         foreach ($values as $v) {
113
-            if (!is_string($v) || 1 !== preg_match("@^[ \x09\x21-\x7E\x80-\xFF]*$@", (string)$v)) {
113
+            if (!is_string($v) || 1 !== preg_match("@^[ \x09\x21-\x7E\x80-\xFF]*$@", (string) $v)) {
114 114
                 throw new InvalidArgumentException('Header values must be RFC 7230 compatible strings.');
115 115
             }
116 116
         }
@@ -127,15 +127,15 @@  discard block
 block discarded – undo
127 127
         $this->validateHeaders($headers);
128 128
 
129 129
         foreach ($headers as $name => $values) {
130
-            $values = (array)$values;
131
-            $name = strtolower((string)$name);
130
+            $values = (array) $values;
131
+            $name = strtolower((string) $name);
132 132
 
133 133
             if (!($this->headers[$name] ?? false)) {
134 134
                 $this->headers[$name] = [];
135 135
             }
136 136
 
137 137
             foreach ($values as &$value) {
138
-                $value = trim((string)$value);
138
+                $value = trim((string) $value);
139 139
             }
140 140
             $this->headers[$name] = [...$this->headers[$name], ...$values];
141 141
         }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     {
163 163
         $allValues = '';
164 164
         foreach ($headers as $values) {
165
-            foreach ((array)$values as $value) {
165
+            foreach ((array) $values as $value) {
166 166
                 $allValues .= $value;
167 167
             }
168 168
         }
Please login to merge, or discard this patch.