@@ -47,10 +47,10 @@ discard block |
||
| 47 | 47 | $builder |
| 48 | 48 | ->add('file', HiddenType::class) |
| 49 | 49 | ->addModelTransformer(new CallbackTransformer( |
| 50 | - function ($value) { |
|
| 50 | + function($value) { |
|
| 51 | 51 | return ['file' => $value]; |
| 52 | 52 | }, |
| 53 | - function ($value) { |
|
| 53 | + function($value) { |
|
| 54 | 54 | return $value['file']; |
| 55 | 55 | } |
| 56 | 56 | )); |
@@ -118,8 +118,8 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | if (!isset($this->configuration[$this->fileType($options)]['class'])) { |
| 120 | 120 | throw new LogicException( |
| 121 | - 'All the fallback are invalid. You can pass "entry_file" as option form, ' . |
|
| 122 | - 'or you use implicit name of the form property, or also, you can pass ' . |
|
| 121 | + 'All the fallback are invalid. You can pass "entry_file" as option form, '. |
|
| 122 | + 'or you use implicit name of the form property, or also, you can pass '. |
|
| 123 | 123 | 'explicitly the "mime_types" form options' |
| 124 | 124 | ); |
| 125 | 125 | } |
@@ -145,8 +145,8 @@ discard block |
||
| 145 | 145 | |
| 146 | 146 | if (!isset($this->configuration[$this->implicitFileType])) { |
| 147 | 147 | throw new LogicException( |
| 148 | - 'All the fallback are invalid. You can pass "entry_file" as option form, ' . |
|
| 149 | - 'or you use implicit name of the form property, or also, you can pass ' . |
|
| 148 | + 'All the fallback are invalid. You can pass "entry_file" as option form, '. |
|
| 149 | + 'or you use implicit name of the form property, or also, you can pass '. |
|
| 150 | 150 | 'explicitly the "upload_endpoint" and "gallery_endpoint" form options' |
| 151 | 151 | ); |
| 152 | 152 | } |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | |
| 171 | 171 | private function setQueryHandlers(array $queryHandlers) |
| 172 | 172 | { |
| 173 | - $this->queryHandlers = array_map(function (FileOfIdHandler $fileOfIdHandler) { |
|
| 173 | + $this->queryHandlers = array_map(function(FileOfIdHandler $fileOfIdHandler) { |
|
| 174 | 174 | return $fileOfIdHandler; |
| 175 | 175 | }, $queryHandlers); |
| 176 | 176 | } |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | private function getFilePreviewPath($filename, array $options) |
| 179 | 179 | { |
| 180 | 180 | return $this->urlGenerator->generate( |
| 181 | - 'bengor_file_' . $this->fileType($options) . '_download', |
|
| 181 | + 'bengor_file_'.$this->fileType($options).'_download', |
|
| 182 | 182 | [ |
| 183 | 183 | 'filename' => $filename, |
| 184 | 184 | ] |