Completed
Push — master ( 636813...d96b32 )
by Sinnarasa
02:31
created
src/Routing/Route.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     }
80 80
 
81 81
     /**
82
-     * @param $url
82
+     * @param string $url
83 83
      */
84 84
     public function setUrl($url)
85 85
     {
@@ -119,8 +119,8 @@  discard block
 block discarded – undo
119 119
     }
120 120
 
121 121
     /**
122
-     * @param null $key
123
-     * @return array
122
+     * @param string $key
123
+     * @return integer|null
124 124
      */
125 125
     public function getResponse($key = null)
126 126
     {
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     }
143 143
 
144 144
     /**
145
-     * @return array
145
+     * @return string
146 146
      */
147 147
     public function getMethod()
148 148
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     }
167 167
 
168 168
     /**
169
-     * @param $key
169
+     * @param string $key
170 170
      * @param $value
171 171
      */
172 172
     public function addDetail($key, $value)
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     }
176 176
 
177 177
     /**
178
-     * @param null $key
178
+     * @param string $key
179 179
      * @return array|string
180 180
      */
181 181
     public function getTarget($key = null)
Please login to merge, or discard this 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.