Passed
Push — master ( 8beeac...7d0ba2 )
by Thierry
03:52
created
src/Response/Response.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function getOutput(): string
88 88
     {
89
-        if($this->getCommandCount() === 0)
89
+        if ($this->getCommandCount() === 0)
90 90
         {
91 91
             return '';
92 92
         }
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function bag(string $sName): DataBagContext
147 147
     {
148
-        return $this->plugin('bags')->bag($sName);;
148
+        return $this->plugin('bags')->bag($sName); ;
149 149
     }
150 150
 
151 151
     /**
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
     public function addCommand(array $aAttributes, $mData): Response
160 160
     {
161 161
         $aAttributes = array_map(function($xAttribute) {
162
-            return is_integer($xAttribute) ? $xAttribute : trim((string)$xAttribute, " \t");
162
+            return is_integer($xAttribute) ? $xAttribute : trim((string) $xAttribute, " \t");
163 163
         }, $aAttributes);
164 164
         $aAttributes['data'] = $mData;
165 165
         $this->aCommands[] = $aAttributes;
@@ -179,9 +179,9 @@  discard block
 block discarded – undo
179 179
     protected function _addCommand(string $sName, array $aAttributes, $mData, bool $bRemoveEmpty = false): Response
180 180
     {
181 181
         $mData = is_array($mData) ? array_map(function($sData) {
182
-            return trim((string)$sData, " \t\n");
183
-        }, $mData) : trim((string)$mData, " \t\n");
184
-        if($bRemoveEmpty)
182
+            return trim((string) $sData, " \t\n");
183
+        }, $mData) : trim((string) $mData, " \t\n");
184
+        if ($bRemoveEmpty)
185 185
         {
186 186
             $aAttributes = array_filter($aAttributes, function($xValue) {
187 187
                 return $xValue === '';
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
     public function toPsr(): PsrResponseInterface
215 215
     {
216 216
         $xPsrResponse = $this->xPsr17Factory->createResponse(200);
217
-        if($this->xRequest->getMethod() === 'GET')
217
+        if ($this->xRequest->getMethod() === 'GET')
218 218
         {
219 219
             $xPsrResponse = $xPsrResponse
220 220
                 ->withHeader('Expires', 'Mon, 26 Jul 1997 05:00:00 GMT')
Please login to merge, or discard this patch.