@@ -120,7 +120,7 @@ |
||
120 | 120 | ->innerJoin('o.translations', 'translation') |
121 | 121 | ->andWhere('translation.name LIKE :name') |
122 | 122 | ->andWhere('translation.locale = :locale') |
123 | - ->setParameter('name', '%'.$phrase.'%') |
|
123 | + ->setParameter('name', '%' . $phrase . '%') |
|
124 | 124 | ->setParameter('locale', $locale) |
125 | 125 | ->getQuery() |
126 | 126 | ->getResult() |
@@ -11,15 +11,12 @@ |
||
11 | 11 | |
12 | 12 | namespace Sylius\Bundle\ApiBundle\DependencyInjection; |
13 | 13 | |
14 | -use Sylius\Bundle\ApiBundle\Controller\TokenController; |
|
15 | 14 | use Sylius\Bundle\ResourceBundle\DependencyInjection\Extension\AbstractResourceExtension; |
16 | 15 | use Symfony\Component\Config\FileLocator; |
17 | 16 | use Symfony\Component\DependencyInjection\ContainerBuilder; |
18 | -use Symfony\Component\DependencyInjection\Definition; |
|
19 | 17 | use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; |
20 | 18 | use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; |
21 | 19 | use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; |
22 | -use Symfony\Component\DependencyInjection\Reference; |
|
23 | 20 | |
24 | 21 | /** |
25 | 22 | * @author Paweł Jędrzejewski <[email protected]> |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * PHP 5.* bug, fixed in PHP 7: https://bugs.php.net/bug.php?id=50688 |
54 | 54 | * "usort(): Array was modified by the user comparison function" |
55 | 55 | */ |
56 | - @usort($countries, function($a, $b) { |
|
56 | + @usort($countries, function ($a, $b) { |
|
57 | 57 | return $a->getName() < $b->getName() ? -1 : 1; |
58 | 58 | }); |
59 | 59 |