@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ->willReturn([]); |
85 | 85 | |
86 | 86 | $this->loader->load(self::DOCUMENT_PATH); |
87 | - $this->loader->load(self::DOCUMENT_PATH . '2'); |
|
87 | + $this->loader->load(self::DOCUMENT_PATH.'2'); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | ]); |
101 | 101 | |
102 | 102 | $routes1 = $this->loader->load(self::DOCUMENT_PATH); |
103 | - $routes2 = $this->loader->load(self::DOCUMENT_PATH . '2'); |
|
103 | + $routes2 = $this->loader->load(self::DOCUMENT_PATH.'2'); |
|
104 | 104 | $this->assertSame(count($routes1), count(array_diff_key($routes1->all(), $routes2->all()))); |
105 | 105 | } |
106 | 106 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | $this->decriptionMock |
262 | 262 | ->expects($this->atLeast(1)) |
263 | 263 | ->method('getExtension') |
264 | - ->willReturnCallback(function (string $name) use ($diKey) { |
|
264 | + ->willReturnCallback(function(string $name) use ($diKey) { |
|
265 | 265 | return $name == 'router-controller' ? $diKey : null; |
266 | 266 | }); |
267 | 267 | |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | $this->decriptionMock |
288 | 288 | ->expects($this->atLeast(1)) |
289 | 289 | ->method('getExtension') |
290 | - ->willReturnCallback(function (string $name) use ($router) { |
|
290 | + ->willReturnCallback(function(string $name) use ($router) { |
|
291 | 291 | return $name == 'router' ? $router : null; |
292 | 292 | }); |
293 | 293 | |
@@ -328,13 +328,13 @@ discard block |
||
328 | 328 | public function routeCollectionWillContainPathFromDescription() |
329 | 329 | { |
330 | 330 | $paths = [ |
331 | - new Path('/a', [new Operation('/a:get', '/a', 'get'),]), |
|
332 | - new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'),]), |
|
331 | + new Path('/a', [new Operation('/a:get', '/a', 'get'), ]), |
|
332 | + new Path('/a/b', [new Operation('/a/b:get', '/a/b', 'get'), ]), |
|
333 | 333 | new Path('/a/b/c', [new Operation('/a/b/c:get', '/a/b/c', 'get')]), |
334 | 334 | new Path('/d/f/g', [new Operation('/d/f/g:get', '/d/f/g', 'get')]), |
335 | 335 | new Path('/1/2/3', [new Operation('/1/2/3:get', '/1/2/3', 'get')]), |
336 | 336 | new Path('/foo/{bar}/{blah}', [new Operation('/foo/{bar}/{blah}:get', '/foo/{bar}/{blah}', 'get')]), |
337 | - new Path('/z', [new Operation('/z:get', '/z', 'get'),]), |
|
337 | + new Path('/z', [new Operation('/z:get', '/z', 'get'), ]), |
|
338 | 338 | ]; |
339 | 339 | |
340 | 340 | $this->decriptionMock |
@@ -344,12 +344,12 @@ discard block |
||
344 | 344 | |
345 | 345 | $routes = $this->loader->load(self::DOCUMENT_PATH); |
346 | 346 | |
347 | - $descriptionPaths = array_map(function (Path $path) { |
|
347 | + $descriptionPaths = array_map(function(Path $path) { |
|
348 | 348 | return $path->getPath(); |
349 | 349 | }, $paths); |
350 | 350 | sort($descriptionPaths); |
351 | 351 | |
352 | - $routePaths = array_map(function (Route $route) { |
|
352 | + $routePaths = array_map(function(Route $route) { |
|
353 | 353 | return $route->getPath(); |
354 | 354 | }, $routes->getIterator()->getArrayCopy()); |
355 | 355 | |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | */ |
389 | 389 | public function willAddRequirementsForStringPatternParams() |
390 | 390 | { |
391 | - $expected = '\d{2}hello'; |
|
391 | + $expected = '\d{2}hello'; |
|
392 | 392 | $parameter = new Parameter( |
393 | 393 | 'aString', |
394 | 394 | true, |
@@ -12,7 +12,6 @@ |
||
12 | 12 | use Symfony\Component\Config\FileLocator; |
13 | 13 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
14 | 14 | use Symfony\Component\DependencyInjection\Loader; |
15 | -use Symfony\Component\DependencyInjection\Reference; |
|
16 | 15 | |
17 | 16 | /** |
18 | 17 | * @author John Kleijn <[email protected]> |
@@ -39,7 +39,7 @@ |
||
39 | 39 | |
40 | 40 | public function create(ContainerBuilder $container, $id, $config, $userProvider, $defaultEntryPoint) |
41 | 41 | { |
42 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
42 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
43 | 43 | |
44 | 44 | $loader->load('security/request_voting.yml'); |
45 | 45 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | } elseif ($exception instanceof AuthenticationException) { |
87 | 87 | $this->statusCode = Response::HTTP_UNAUTHORIZED; |
88 | 88 | $this->severity = LogLevel::WARNING; |
89 | - } elseif ($exception instanceof AccessDeniedException || $exception instanceof AccessDeniedHttpException) { |
|
89 | + } elseif ($exception instanceof AccessDeniedException || $exception instanceof AccessDeniedHttpException) { |
|
90 | 90 | $this->statusCode = Response::HTTP_FORBIDDEN; |
91 | 91 | $this->severity = LogLevel::WARNING; |
92 | 92 | } else { |