Completed
Push — master ( 636813...d96b32 )
by Sinnarasa
02:31
created
src/Routing/Route.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         $this->set($args);
54 54
         $this->method = (
55 55
             isset($_POST['_METHOD'])
56
-            && ($_method = (isset($_POST['_METHOD']))?strtoupper($_POST['_METHOD']):'')
56
+            && ($_method = (isset($_POST['_METHOD'])) ? strtoupper($_POST['_METHOD']) : '')
57 57
             && in_array($_method, array('PUT', 'DELETE'))
58 58
         ) ? $_method : $_SERVER['REQUEST_METHOD'];
59 59
     }
@@ -208,8 +208,8 @@  discard block
 block discarded – undo
208 208
     /**
209 209
      * @return array
210 210
      */
211
-    public function getData(){
212
-        return (isset($this->getDetail()['data']) && is_array($this->getDetail()['data']))?$this->getDetail()['data']:[];
211
+    public function getData() {
212
+        return (isset($this->getDetail()['data']) && is_array($this->getDetail()['data'])) ? $this->getDetail()['data'] : [];
213 213
     }
214 214
 
215 215
     /**
Please login to merge, or discard this patch.