Completed
Push — master ( c24bdc...e85748 )
by Pavel
01:18
created
src/DI/ApiRouterExtension.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,8 +65,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/ApiRouteSpec.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
src/ApiRoute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.