Passed
Push — master ( 18eb0c...0948bf )
by Carsten
05:09
created
src/HttpHelper.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,11 +70,11 @@  discard block
 block discarded – undo
70 70
         $httpRequest = request_to_string($request);
71 71
 
72 72
         if (empty($path)) {
73
-            $path = (string) $_SERVER['DOCUMENT_ROOT'];
73
+            $path = (string)$_SERVER['DOCUMENT_ROOT'];
74 74
         }
75 75
 
76 76
         if (empty($path)) {
77
-            $path = (string) getenv('PWD');
77
+            $path = (string)getenv('PWD');
78 78
         }
79 79
 
80 80
         $filename = $path . '/request.http';
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         // Append request to file if it already exists, using ### as separator
85 85
         // which is understood by PhpStorm
86 86
         if (file_exists($filename)) {
87
-            $httpRequest =  "\n\n### " . date(DATE_RFC822) . "\n\n" . $httpRequest;
87
+            $httpRequest = "\n\n### " . date(DATE_RFC822) . "\n\n" . $httpRequest;
88 88
             $flags = FILE_APPEND;
89 89
         }
90 90
 
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
         $httpResponse = response_to_string($response);
137 137
 
138 138
         if (empty($path)) {
139
-            $path = (string) $_SERVER['DOCUMENT_ROOT'];
139
+            $path = (string)$_SERVER['DOCUMENT_ROOT'];
140 140
         }
141 141
 
142 142
         if (empty($path)) {
143
-            $path = (string) getenv('PWD');
143
+            $path = (string)getenv('PWD');
144 144
         }
145 145
 
146 146
         $filename = $path . '/response.http';
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
         // Append request to file if it already exists, using ### as separator
151 151
         // which is understood by PhpStorm
152 152
         if (file_exists($filename)) {
153
-            $httpResponse =  "\n\n### " . date(DATE_RFC822) . "\n\n" . $httpResponse;
153
+            $httpResponse = "\n\n### " . date(DATE_RFC822) . "\n\n" . $httpResponse;
154 154
             $flags = FILE_APPEND;
155 155
         }
156 156
 
Please login to merge, or discard this patch.