Failed Conditions
Pull Request — master (#3)
by
unknown
12:22 queued 09:43
created
src/Controller.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -111,25 +111,25 @@
 block discarded – undo
111 111
     }   
112 112
 
113 113
     /**
114
-      * Check if response is 4xx or 5xx error
115
-      *
116
-      * @return boolean
117
-      */
118
-     public function isError()
119
-     {
120
-         return $this->isClientError() || $this->isServerError();
121
-     } 
122
-
123
-     /**
124
-      * Get status code of response
125
-      *
126
-      * @return int
127
-      */
128
-     protected function getResponseStatusCode()
129
-     {
114
+     * Check if response is 4xx or 5xx error
115
+     *
116
+     * @return boolean
117
+     */
118
+        public function isError()
119
+        {
120
+            return $this->isClientError() || $this->isServerError();
121
+        } 
122
+
123
+        /**
124
+         * Get status code of response
125
+         *
126
+         * @return int
127
+         */
128
+        protected function getResponseStatusCode()
129
+        {
130 130
         $response = $this->getResponse();
131 131
 
132 132
         return $response ? $response->getStatusCode() : 0;
133
-     }
133
+        }
134 134
 }
135 135
 
Please login to merge, or discard this patch.
src/Controller/RouteAction.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@
 block discarded – undo
28 28
         }
29 29
 
30 30
         $args = isset($route->args) ? 
31
-            $route->args :
32
-            $this->getFunctionArgs($route, new \ReflectionMethod($this, $method));
31
+            $route->args : $this->getFunctionArgs($route, new \ReflectionMethod($this, $method));
33 32
 
34 33
         $response = call_user_func_array([$this, $method], $args);
35 34
 
Please login to merge, or discard this patch.
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.