@@ -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 | } |