Completed
Push — master ( d240eb...82cfa8 )
by Pavel
02: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/ApiRoute.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
 	{
275 275
 		$url = $httpRequest->getUrl();
276 276
 
277
-		$path = '/' . preg_replace('/^' . str_replace('/', '\/', preg_quote($url->getBasePath())) . '/', '', $url->getPath());
277
+		$path = '/'.preg_replace('/^'.str_replace('/', '\/', preg_quote($url->getBasePath())).'/', '', $url->getPath());
278 278
 
279 279
 		/**
280 280
 		 * Build path mask
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 			return sprintf('(%s)', $regex);
310 310
 		}, $this->path);
311 311
 
312
-		$mask = '^' . str_replace(['[', ']'], ['(', ')?'], $mask) . '$';
312
+		$mask = '^'.str_replace(['[', ']'], ['(', ')?'], $mask).'$';
313 313
 
314 314
 		/**
315 315
 		 * Prepare paths for regex match (escape slashes)
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
 
421 421
 		$query = http_build_query($parameters);
422 422
 
423
-		return $base_url . $path . ($query ? '?' . $query : '');
423
+		return $base_url.$path.($query ? '?'.$query : '');
424 424
 	}
425 425
 
426 426
 }
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.