Failed Conditions
Push — master ( 75b13f...14bc7d )
by Arnold
10:01
created
src/Controller/RouteAction.php 2 patches
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,8 @@
 block discarded – undo
14 14
      *
15 15
      * @return ResponseInterface
16 16
      */
17
-    public function run() {
17
+    public function run()
18
+    {
18 19
         $request = $this->getRequest();
19 20
         if (!$request) {
20 21
             throw new \RuntimeException("Request object is not set for controller");            
Please login to merge, or discard this patch.
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.
src/Controller.php 2 patches
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.