@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | private function isPrefixedRoute($route) |
106 | 106 | { |
107 | 107 | $prefix = $this->config->get('yaro.apidocs.prefix', 'api'); |
108 | - $regexp = '~^'. preg_quote($prefix) .'~'; |
|
108 | + $regexp = '~^'.preg_quote($prefix).'~'; |
|
109 | 109 | |
110 | 110 | return preg_match($regexp, $this->getRouteParam($route, 'uri')); |
111 | 111 | } // end isPrefixedRoute |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | $checkForLongDescription = true; |
140 | 140 | foreach ($docs as $line) { |
141 | 141 | if ($checkForLongDescription && !preg_match('~^@\w+~', $line)) { |
142 | - $description .= trim($line) .' '; |
|
142 | + $description .= trim($line).' '; |
|
143 | 143 | } elseif (preg_match('~^@\w+~', $line)) { |
144 | 144 | $checkForLongDescription = false; |
145 | 145 | if (preg_match('~^@param~', $line)) { |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $httpMethod = $this->getRouteParam($route, 'methods.0'); |
228 | 228 | $classMethod = implode('-', $this->splitCamelCaseToWords($method)); |
229 | 229 | |
230 | - $hash = $path .'::'. $httpMethod .'::'. $classMethod; |
|
230 | + $hash = $path.'::'.$httpMethod.'::'.$classMethod; |
|
231 | 231 | |
232 | 232 | return strtolower($hash); |
233 | 233 | } // end generateHashForUrl |
@@ -260,8 +260,7 @@ discard block |
||
260 | 260 | private function ins(&$ary, $keys, $val) |
261 | 261 | { |
262 | 262 | $keys ? |
263 | - $this->ins($ary[array_shift($keys)], $keys, $val) : |
|
264 | - $ary = $val; |
|
263 | + $this->ins($ary[array_shift($keys)], $keys, $val) : $ary = $val; |
|
265 | 264 | } // end ins |
266 | 265 | |
267 | 266 | private function arrayGet($array, $key, $default = null) |
@@ -275,7 +274,7 @@ discard block |
||
275 | 274 | } |
276 | 275 | |
277 | 276 | foreach (explode('.', $key) as $segment) { |
278 | - if (!is_array($array) || ! array_key_exists($segment, $array)) { |
|
277 | + if (!is_array($array) || !array_key_exists($segment, $array)) { |
|
279 | 278 | return $default; |
280 | 279 | } |
281 | 280 | $array = $array[$segment]; |