@@ -113,7 +113,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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]; |