Completed
Push — master ( 25c9ee...237e1e )
by Yaro
01:52
created
src/ApiDocs.php 1 patch
Spacing   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     
113 113
     private function isPrefixedRoute($route, $routePrefix)
114 114
     {
115
-        $regexp = '~^'. preg_quote($routePrefix) .'~';
115
+        $regexp = '~^'.preg_quote($routePrefix).'~';
116 116
         
117 117
         return preg_match($regexp, $this->getRouteParam($route, 'uri'));
118 118
     } // end isPrefixedRoute
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
         $checkForLongDescription = true;
164 164
         foreach ($docs as $line) {
165 165
             if ($checkForLongDescription && !preg_match('~^@\w+~', $line)) {
166
-                $description .= trim($line) .' ';
166
+                $description .= trim($line).' ';
167 167
             } elseif (preg_match('~^@\w+~', $line)) {
168 168
                 $checkForLongDescription = false;
169 169
                 if (preg_match('~^@param~', $line)) {
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
         $httpMethod = $this->getRouteParam($route, 'methods.0');
252 252
         $classMethod = implode('-', $this->splitCamelCaseToWords($method));
253 253
         
254
-        $hash = $path .'::'. $httpMethod .'::'. $classMethod;
254
+        $hash = $path.'::'.$httpMethod.'::'.$classMethod;
255 255
         
256 256
         return strtolower($hash);
257 257
     } // end generateHashForUrl
@@ -284,8 +284,7 @@  discard block
 block discarded – undo
284 284
     private function ins(&$ary, $keys, $val) 
285 285
     {
286 286
         $keys ? 
287
-            $this->ins($ary[array_shift($keys)], $keys, $val) :
288
-            $ary = $val;
287
+            $this->ins($ary[array_shift($keys)], $keys, $val) : $ary = $val;
289 288
     } // end ins
290 289
     
291 290
     private function arrayGet($array, $key, $default = null)
@@ -299,7 +298,7 @@  discard block
 block discarded – undo
299 298
         }
300 299
         
301 300
         foreach (explode('.', $key) as $segment) {
302
-            if (!is_array($array) || ! array_key_exists($segment, $array)) {
301
+            if (!is_array($array) || !array_key_exists($segment, $array)) {
303 302
                 return $default;
304 303
             }
305 304
             $array = $array[$segment];
Please login to merge, or discard this patch.