Completed
Push — master ( 738f49...96678e )
by Tobias
19:54 queued 09:55
created
src/MessageTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Nyholm\Psr7;
6 6
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         }
86 86
 
87 87
         foreach ($value as $v) {
88
-            if (!is_string($v) || trim($v) ==='') {
88
+            if (!is_string($v) || trim($v) === '') {
89 89
                 throw new \InvalidArgumentException('Header values must be non-empty strings');
90 90
             }
91 91
         }
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         }
119 119
 
120 120
         foreach ($value as $v) {
121
-            if (!is_string($v) || trim($v) ==='') {
121
+            if (!is_string($v) || trim($v) === '') {
122 122
                 throw new \InvalidArgumentException('Header values must be non-empty strings');
123 123
             }
124 124
         }
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
      */
212 212
     private function trimHeaderValues(array $values): array
213 213
     {
214
-        return array_map(function ($value) {
214
+        return array_map(function($value) {
215 215
             return trim($value, " \t");
216 216
         }, $values);
217 217
     }
Please login to merge, or discard this patch.