Failed Conditions
Pull Request — master (#4)
by
unknown
02:48
created
src/Controller.php 3 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -168,8 +168,7 @@
 block discarded – undo
168 168
         $data = json_encode($data);
169 169
 
170 170
         return $this->isJsonp() ? 
171
-            $this->getRequest()->getQueryParams()['callback'] . '(' . $data . ')' : 
172
-            $data;
171
+            $this->getRequest()->getQueryParams()['callback'] . '(' . $data . ')' : $data;
173 172
     }
174 173
 
175 174
     /**
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -436,9 +436,9 @@
 block discarded – undo
436 436
      */
437 437
     protected function getResponseStatusCode()
438 438
     {
439
-       $response = $this->getResponse();
439
+        $response = $this->getResponse();
440 440
        
441
-       return $response ? $response->getStatusCode() : 0;
441
+        return $response ? $response->getStatusCode() : 0;
442 442
     }
443 443
 
444 444
     /**
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@
 block discarded – undo
274 274
      * @return ResponseInterface $response
275 275
      */
276 276
     public function error($message, $code = 400)
277
-    {        
277
+    {
278 278
         $response = $this->getResponse();
279 279
 
280 280
         $errorResponse = $response->withStatus($code);
Please login to merge, or discard this patch.