@@ -56,10 +56,10 @@ |
||
56 | 56 | $haystack .= $column->dispatch($sqlWalker); |
57 | 57 | } |
58 | 58 | |
59 | - $query = "MATCH(" . $haystack . ") AGAINST (" . $this->needle->dispatch($sqlWalker); |
|
59 | + $query = "MATCH(".$haystack.") AGAINST (".$this->needle->dispatch($sqlWalker); |
|
60 | 60 | |
61 | 61 | if ($this->mode) { |
62 | - $query .= " " . $this->mode->value . " )"; |
|
62 | + $query .= " ".$this->mode->value." )"; |
|
63 | 63 | } else { |
64 | 64 | $query .= " )"; |
65 | 65 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function load(array $configs, ContainerBuilder $container) |
21 | 21 | { |
22 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
22 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
23 | 23 | $loader->load('services.yml'); |
24 | 24 | $loader->load('parameters.yml'); |
25 | 25 | } |
@@ -51,6 +51,6 @@ |
||
51 | 51 | |
52 | 52 | private function convertToJsFormat(string $intlFormat): string |
53 | 53 | { |
54 | - return str_replace(['y', 'MM', 'd', 'H', 'i'], ['YYYY','MM', 'DD', 'HH', 'mm'], $intlFormat); |
|
54 | + return str_replace(['y', 'MM', 'd', 'H', 'i'], ['YYYY', 'MM', 'DD', 'HH', 'mm'], $intlFormat); |
|
55 | 55 | } |
56 | 56 | } |
@@ -52,6 +52,6 @@ |
||
52 | 52 | |
53 | 53 | private function convertToJsFormat(string $intlFormat): string |
54 | 54 | { |
55 | - return str_replace(['y', 'MM', 'd'], ['YYYY','MM', 'DD'], $intlFormat); |
|
55 | + return str_replace(['y', 'MM', 'd'], ['YYYY', 'MM', 'DD'], $intlFormat); |
|
56 | 56 | } |
57 | 57 | } |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function load(array $configs, ContainerBuilder $container) |
13 | 13 | { |
14 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
14 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
15 | 15 | $loader->load('services.yml'); |
16 | 16 | } |
17 | 17 | } |
@@ -64,7 +64,7 @@ |
||
64 | 64 | * |
65 | 65 | * @throws AccessDeniedHttpException if not allowed to edit user |
66 | 66 | */ |
67 | - public function editAction(Request $request, ?int $id): array |
|
67 | + public function editAction(Request $request, ?int $id) : array |
|
68 | 68 | { |
69 | 69 | if (!$this->authorizationChecker->isGranted('ROLE_ADMIN') |
70 | 70 | && $this->tokenStorage->getToken()->getUser()->getId() !== $id |
@@ -15,13 +15,13 @@ |
||
15 | 15 | return [ |
16 | 16 | new Twig_SimpleTest( |
17 | 17 | 'admin', |
18 | - function (BaseUser $user) { |
|
18 | + function(BaseUser $user) { |
|
19 | 19 | return $user instanceof Admin; |
20 | 20 | } |
21 | 21 | ), |
22 | 22 | new Twig_SimpleTest( |
23 | 23 | 'user', |
24 | - function (BaseUser $user) { |
|
24 | + function(BaseUser $user) { |
|
25 | 25 | return $user instanceof User; |
26 | 26 | } |
27 | 27 | ), |
@@ -37,10 +37,10 @@ discard block |
||
37 | 37 | |
38 | 38 | // cache the result when we're in production environment |
39 | 39 | if ($this->container->get('kernel')->getEnvironment() === 'prod') { |
40 | - $webDir = $this->get('kernel')->getRootDir() . '/../web/'; |
|
40 | + $webDir = $this->get('kernel')->getRootDir().'/../web/'; |
|
41 | 41 | $fs = new Filesystem(); |
42 | 42 | $fs->dumpfile( |
43 | - $webDir . $request->getLocale() . '/locale.json', |
|
43 | + $webDir.$request->getLocale().'/locale.json', |
|
44 | 44 | json_encode($translations) |
45 | 45 | ); |
46 | 46 | } |
@@ -87,12 +87,12 @@ discard block |
||
87 | 87 | $dirs = []; |
88 | 88 | foreach ($this->container->getParameter('kernel.bundles') as $bundle) { |
89 | 89 | $reflection = new \ReflectionClass($bundle); |
90 | - if (is_dir($dir = dirname($reflection->getFilename()) . '/Resources/translations')) { |
|
90 | + if (is_dir($dir = dirname($reflection->getFilename()).'/Resources/translations')) { |
|
91 | 91 | $dirs[] = $dir; |
92 | 92 | } |
93 | 93 | } |
94 | 94 | |
95 | - if (is_dir($dir = $this->container->getParameter('kernel.root_dir') . '/Resources/translations')) { |
|
95 | + if (is_dir($dir = $this->container->getParameter('kernel.root_dir').'/Resources/translations')) { |
|
96 | 96 | $dirs[] = $dir; |
97 | 97 | } |
98 | 98 |