@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $builder |
32 | 32 | ->addEventListener( |
33 | 33 | FormEvents::PRE_SET_DATA, |
34 | - function (FormEvent $event) use ($options) { |
|
34 | + function(FormEvent $event) use ($options) { |
|
35 | 35 | $event->getForm()->add( |
36 | 36 | 'file', |
37 | 37 | SymfonyFileType::class, |
@@ -61,10 +61,10 @@ discard block |
||
61 | 61 | ) |
62 | 62 | ->addModelTransformer( |
63 | 63 | new CallbackTransformer( |
64 | - function (AbstractFile $file = null) { |
|
64 | + function(AbstractFile $file = null) { |
|
65 | 65 | return $file; |
66 | 66 | }, |
67 | - function (AbstractFile $file = null) use ($options) { |
|
67 | + function(AbstractFile $file = null) use ($options) { |
|
68 | 68 | if ($file === null) { |
69 | 69 | $fileClass = $options['file_class']; |
70 | 70 | if ($this->removeField !== null && $this->removeField->getData()) { |
@@ -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 | ), |