Failed Conditions
Pull Request — master (#4)
by
unknown
05:19
created
src/Controller.php 2 patches
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -111,14 +111,14 @@  discard block
 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
-     }
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 122
 
123 123
     /**
124 124
      * Encode data to send to client
@@ -184,16 +184,16 @@  discard block
 block discarded – undo
184 184
         return $request && !empty($request->getQueryParams()['callback']);
185 185
     }
186 186
     
187
-     /**
188
-      * Get status code of response
189
-      *
190
-      * @return int
191
-      */
192
-     protected function getResponseStatusCode()
193
-     {
187
+        /**
188
+         * Get status code of response
189
+         *
190
+         * @return int
191
+         */
192
+        protected function getResponseStatusCode()
193
+        {
194 194
         $response = $this->getResponse();
195 195
 
196 196
         return $response ? $response->getStatusCode() : 0;
197
-     }
197
+        }
198 198
 }
199 199
 
Please login to merge, or discard this patch.
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.