Failed Conditions
Push — master ( 75b13f...14bc7d )
by Arnold
10:01
created
src/Controller.php 2 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.
src/Controller/RouteAction.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -15,14 +15,14 @@
 block discarded – undo
15 15
      *
16 16
      * @return ServerRequestInterface
17 17
      */
18
-     abstract public function getRequest();
19
-
20
-     /**
21
-     * Get response. set for controller
22
-     *
23
-     * @return ResponseInterface
24
-     */
25
-     abstract public function getResponse();
18
+        abstract public function getRequest();
19
+
20
+        /**
21
+         * Get response. set for controller
22
+         *
23
+         * @return ResponseInterface
24
+         */
25
+        abstract public function getResponse();
26 26
 
27 27
     /**
28 28
      * Run the controller
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
 
41 41
         try {
42 42
             $args = isset($route->args) ? 
43
-                $route->args :
44
-                $this->getFunctionArgs($route, new \ReflectionMethod($this, $method));            
43
+                $route->args : $this->getFunctionArgs($route, new \ReflectionMethod($this, $method));            
45 44
         } catch (\RuntimeException $e) {
46 45
             return $this->setResponseError(400, 'Bad Request');   
47 46
         }
Please login to merge, or discard this patch.