Completed
Push — master ( d454e3...1e7edc )
by Yaro
02:04
created
src/ApiDocs.php 1 patch
Spacing   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     
114 114
     private function isPrefixedRoute($route, $routePrefix)
115 115
     {
116
-        $regexp = '~^'. preg_quote($routePrefix) .'~';
116
+        $regexp = '~^'.preg_quote($routePrefix).'~';
117 117
         
118 118
         return preg_match($regexp, $this->getRouteParam($route, 'uri'));
119 119
     } // end isPrefixedRoute
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $checkForLongDescription = true;
166 166
         foreach ($docs as $line) {
167 167
             if ($checkForLongDescription && !preg_match('~^@\w+~', $line)) {
168
-                $description .= trim($line) .' ';
168
+                $description .= trim($line).' ';
169 169
             } elseif (preg_match('~^@\w+~', $line)) {
170 170
                 $checkForLongDescription = false;
171 171
                 if (preg_match('~^@param~', $line)) {
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
         // TODO:
187 187
         $rules = [];
188
-        foreach($reflectorMethod->getParameters() as $reflectorParam) {
188
+        foreach ($reflectorMethod->getParameters() as $reflectorParam) {
189 189
             $paramClass = $reflectorParam->getClass();
190 190
             if ($paramClass instanceof ReflectionClass) {
191 191
                 $name = $paramClass->getName();
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
         $httpMethod = $this->getRouteParam($route, 'methods.0');
298 298
         $classMethod = implode('-', $this->splitCamelCaseToWords($method));
299 299
         
300
-        $hash = $path .'::'. $httpMethod .'::'. $classMethod;
300
+        $hash = $path.'::'.$httpMethod.'::'.$classMethod;
301 301
         
302 302
         return strtolower($hash);
303 303
     } // end generateHashForUrl
@@ -330,8 +330,7 @@  discard block
 block discarded – undo
330 330
     private function ins(&$ary, $keys, $val) 
331 331
     {
332 332
         $keys ? 
333
-            $this->ins($ary[array_shift($keys)], $keys, $val) :
334
-            $ary = $val;
333
+            $this->ins($ary[array_shift($keys)], $keys, $val) : $ary = $val;
335 334
     } // end ins
336 335
     
337 336
     private function arrayGet($array, $key, $default = null)
@@ -345,7 +344,7 @@  discard block
 block discarded – undo
345 344
         }
346 345
         
347 346
         foreach (explode('.', $key) as $segment) {
348
-            if (!is_array($array) || ! array_key_exists($segment, $array)) {
347
+            if (!is_array($array) || !array_key_exists($segment, $array)) {
349 348
                 return $default;
350 349
             }
351 350
             $array = $array[$segment];
Please login to merge, or discard this patch.