@@ -25,10 +25,10 @@ |
||
| 25 | 25 | 'attr' => array_key_exists('attr', $options) ? $options['attr'] : null, |
| 26 | 26 | ]) |
| 27 | 27 | ->addModelTransformer(new CallbackTransformer( |
| 28 | - function ($value) { |
|
| 28 | + function($value) { |
|
| 29 | 29 | return ['wysiwyg' => $value]; |
| 30 | 30 | }, |
| 31 | - function ($value) { |
|
| 31 | + function($value) { |
|
| 32 | 32 | return $value['wysiwyg']; |
| 33 | 33 | } |
| 34 | 34 | )); |
@@ -49,10 +49,10 @@ discard block |
||
| 49 | 49 | 'attr' => array_key_exists('attr', $options) ? $options['attr'] : null, |
| 50 | 50 | ]) |
| 51 | 51 | ->addModelTransformer(new CallbackTransformer( |
| 52 | - function ($value) { |
|
| 52 | + function($value) { |
|
| 53 | 53 | return ['file' => $value]; |
| 54 | 54 | }, |
| 55 | - function ($value) { |
|
| 55 | + function($value) { |
|
| 56 | 56 | return $value['file']; |
| 57 | 57 | } |
| 58 | 58 | )); |
@@ -120,8 +120,8 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | if (!isset($this->configuration[$this->fileType($options)]['class'])) { |
| 122 | 122 | throw new LogicException( |
| 123 | - 'All the fallback are invalid. You can pass "entry_file" as option form, ' . |
|
| 124 | - 'or you use implicit name of the form property, or also, you can pass ' . |
|
| 123 | + 'All the fallback are invalid. You can pass "entry_file" as option form, '. |
|
| 124 | + 'or you use implicit name of the form property, or also, you can pass '. |
|
| 125 | 125 | 'explicitly the "mime_types" form options' |
| 126 | 126 | ); |
| 127 | 127 | } |
@@ -147,8 +147,8 @@ discard block |
||
| 147 | 147 | |
| 148 | 148 | if (!isset($this->configuration[$this->implicitFileType])) { |
| 149 | 149 | throw new LogicException( |
| 150 | - 'All the fallback are invalid. You can pass "entry_file" as option form, ' . |
|
| 151 | - 'or you use implicit name of the form property, or also, you can pass ' . |
|
| 150 | + 'All the fallback are invalid. You can pass "entry_file" as option form, '. |
|
| 151 | + 'or you use implicit name of the form property, or also, you can pass '. |
|
| 152 | 152 | 'explicitly the "upload_endpoint" and "gallery_endpoint" form options' |
| 153 | 153 | ); |
| 154 | 154 | } |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | |
| 173 | 173 | private function setQueryHandlers(array $queryHandlers) |
| 174 | 174 | { |
| 175 | - $this->queryHandlers = array_map(function (FileOfIdHandler $fileOfIdHandler) { |
|
| 175 | + $this->queryHandlers = array_map(function(FileOfIdHandler $fileOfIdHandler) { |
|
| 176 | 176 | return $fileOfIdHandler; |
| 177 | 177 | }, $queryHandlers); |
| 178 | 178 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | private function getFilePreviewPath($filename, array $options) |
| 181 | 181 | { |
| 182 | 182 | return $this->urlGenerator->generate( |
| 183 | - 'bengor_file_' . $this->fileType($options) . '_download', |
|
| 183 | + 'bengor_file_'.$this->fileType($options).'_download', |
|
| 184 | 184 | [ |
| 185 | 185 | 'filename' => $filename, |
| 186 | 186 | ] |