@@ -65,8 +65,8 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Prepare AnnotationRegistry |
67 | 67 | */ |
68 | - AnnotationRegistry::registerFile(__DIR__ . '/../ApiRoute.php'); |
|
69 | - AnnotationRegistry::registerFile(__DIR__ . '/../ApiRouteSpec.php'); |
|
68 | + AnnotationRegistry::registerFile(__DIR__.'/../ApiRoute.php'); |
|
69 | + AnnotationRegistry::registerFile(__DIR__.'/../ApiRouteSpec.php'); |
|
70 | 70 | |
71 | 71 | AnnotationReader::addGlobalIgnoredName('persistent'); |
72 | 72 | AnnotationReader::addGlobalIgnoredName('inject'); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | private function setupReader($compiler_config) |
85 | 85 | { |
86 | - $cache_path = $compiler_config['parameters']['tempDir'] . '/cache/ApiRouter.Annotations'; |
|
86 | + $cache_path = $compiler_config['parameters']['tempDir'].'/cache/ApiRouter.Annotations'; |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * Prepare AnnotationReader - use cached values |
@@ -78,7 +78,7 @@ |
||
78 | 78 | public function __construct(array $data) |
79 | 79 | { |
80 | 80 | foreach ($data as $key => $value) { |
81 | - $method = 'set' . str_replace('_', '', ucwords($key, '_')); |
|
81 | + $method = 'set'.str_replace('_', '', ucwords($key, '_')); |
|
82 | 82 | |
83 | 83 | if (!method_exists($this, $method)) { |
84 | 84 | throw new ApiRouteWrongPropertyException( |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | return sprintf('(%s)', $regex); |
339 | 339 | }, $this->path); |
340 | 340 | |
341 | - $mask = '^' . str_replace(['[', ']'], ['(', ')?'], $mask) . '$'; |
|
341 | + $mask = '^'.str_replace(['[', ']'], ['(', ')?'], $mask).'$'; |
|
342 | 342 | |
343 | 343 | /** |
344 | 344 | * Prepare paths for regex match (escape slashes) |
@@ -449,7 +449,7 @@ discard block |
||
449 | 449 | |
450 | 450 | $query = http_build_query($parameters); |
451 | 451 | |
452 | - return $base_url . $path . ($query ? '?' . $query : ''); |
|
452 | + return $base_url.$path.($query ? '?'.$query : ''); |
|
453 | 453 | } |
454 | 454 | |
455 | 455 | } |