Skip to content

Commit 0cd6eaa

Browse files
committed
fixed CS
1 parent fd651ee commit 0cd6eaa

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Controller/ControllerResolver.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,7 @@ protected function createController($controller)
6363
list($service, $method) = explode(':', $controller, 2);
6464

6565
return array($this->container->get($service), $method);
66-
} elseif ($this->container->has($controller) &&
67-
method_exists($service = $this->container->get($controller), '__invoke')
68-
) {
66+
} elseif ($this->container->has($controller) && method_exists($service = $this->container->get($controller), '__invoke')) {
6967
return $service;
7068
} else {
7169
throw new \LogicException(sprintf('Unable to parse the controller name "%s".', $controller));

Tests/Controller/ControllerResolverTest.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Bundle\FrameworkBundle\Tests\Controller;
413

514
use Psr\Log\LoggerInterface;

0 commit comments

Comments
 (0)