@@ -28,10 +28,10 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | foreach ($config['file_types'] as $fileType => $fileTypeConfig) { |
| 30 | 30 | $container->setDefinition( |
| 31 | - 'cms_kernel_bengor_file.http_action.' . $fileType . '_upload', |
|
| 31 | + 'cms_kernel_bengor_file.http_action.'.$fileType.'_upload', |
|
| 32 | 32 | (new Definition( |
| 33 | 33 | AjaxFileUploadAction::class, [ |
| 34 | - $container->getDefinition('bengor_file.' . $fileType . '.command_bus'), |
|
| 34 | + $container->getDefinition('bengor_file.'.$fileType.'.command_bus'), |
|
| 35 | 35 | ] |
| 36 | 36 | )) |
| 37 | 37 | ); |
@@ -39,10 +39,10 @@ discard block |
||
| 39 | 39 | |
| 40 | 40 | foreach ($config['file_types'] as $fileType => $fileTypeConfig) { |
| 41 | 41 | $container->setDefinition( |
| 42 | - 'cms_kernel_bengor_file.http_action.' . $fileType . '_gallery', |
|
| 42 | + 'cms_kernel_bengor_file.http_action.'.$fileType.'_gallery', |
|
| 43 | 43 | (new Definition( |
| 44 | 44 | AjaxFileGalleryAction::class, [ |
| 45 | - $container->getDefinition('bengor.file.application.query.all_' . $fileType . 's'), |
|
| 45 | + $container->getDefinition('bengor.file.application.query.all_'.$fileType.'s'), |
|
| 46 | 46 | ] |
| 47 | 47 | )) |
| 48 | 48 | ); |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | new Route( |
| 32 | 32 | $config['path'], |
| 33 | 33 | [ |
| 34 | - '_controller' => 'cms_kernel_bengor_file.http_action.' . $file . '_gallery:__invoke', |
|
| 34 | + '_controller' => 'cms_kernel_bengor_file.http_action.'.$file.'_gallery:__invoke', |
|
| 35 | 35 | ], |
| 36 | 36 | [], |
| 37 | 37 | [], |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | new Route( |
| 32 | 32 | $config['path'], |
| 33 | 33 | [ |
| 34 | - '_controller' => 'cms_kernel_bengor_file.http_action.' . $file . '_upload:__invoke', |
|
| 34 | + '_controller' => 'cms_kernel_bengor_file.http_action.'.$file.'_upload:__invoke', |
|
| 35 | 35 | ], |
| 36 | 36 | [], |
| 37 | 37 | [], |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | $builder |
| 45 | 45 | ->add('file', HiddenType::class) |
| 46 | 46 | ->addModelTransformer(new CallbackTransformer( |
| 47 | - function ($value) { |
|
| 47 | + function($value) { |
|
| 48 | 48 | return ['file' => $value]; |
| 49 | 49 | }, |
| 50 | - function ($value) { |
|
| 50 | + function($value) { |
|
| 51 | 51 | return $value['file']; |
| 52 | 52 | } |
| 53 | 53 | )); |
@@ -108,8 +108,8 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | if (!isset($this->configuration[$this->fileType($options)]['class'])) { |
| 110 | 110 | throw new LogicException( |
| 111 | - 'All the fallback are invalid. You can pass "entry_file" as option form, ' . |
|
| 112 | - 'or you use implicit name of the form property, or also, you can pass ' . |
|
| 111 | + 'All the fallback are invalid. You can pass "entry_file" as option form, '. |
|
| 112 | + 'or you use implicit name of the form property, or also, you can pass '. |
|
| 113 | 113 | 'explicitly the "mime_types" form options' |
| 114 | 114 | ); |
| 115 | 115 | } |
@@ -135,8 +135,8 @@ discard block |
||
| 135 | 135 | |
| 136 | 136 | if (!isset($this->configuration[$this->implicitFileType])) { |
| 137 | 137 | throw new LogicException( |
| 138 | - 'All the fallback are invalid. You can pass "entry_file" as option form, ' . |
|
| 139 | - 'or you use implicit name of the form property, or also, you can pass ' . |
|
| 138 | + 'All the fallback are invalid. You can pass "entry_file" as option form, '. |
|
| 139 | + 'or you use implicit name of the form property, or also, you can pass '. |
|
| 140 | 140 | 'explicitly the "upload_endpoint" and "gallery_endpoint" form options' |
| 141 | 141 | ); |
| 142 | 142 | } |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | |
| 161 | 161 | private function setQueryHandlers(array $queryHandlers) |
| 162 | 162 | { |
| 163 | - $this->queryHandlers = array_map(function (FileOfIdHandler $fileOfIdHandler) { |
|
| 163 | + $this->queryHandlers = array_map(function(FileOfIdHandler $fileOfIdHandler) { |
|
| 164 | 164 | return $fileOfIdHandler; |
| 165 | 165 | }, $queryHandlers); |
| 166 | 166 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | $builder |
| 38 | 38 | ->add('tree', HiddenType::class) |
| 39 | 39 | ->addModelTransformer(new CallbackTransformer( |
| 40 | - function ($value) use ($locale, $menuId) { |
|
| 40 | + function($value) use ($locale, $menuId) { |
|
| 41 | 41 | if (null === $menuId) { |
| 42 | 42 | return ['tree' => []]; |
| 43 | 43 | } |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | |
| 56 | 56 | return ['tree' => json_encode($items)]; |
| 57 | 57 | }, |
| 58 | - function ($value) { |
|
| 58 | + function($value) { |
|
| 59 | 59 | return $value['tree'] ? json_decode($value['tree'], true) : []; |
| 60 | 60 | } |
| 61 | 61 | )); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | if (null === $order || '' === $order) { |
| 24 | 24 | throw new EmptyMenuNameException(); |
| 25 | 25 | } |
| 26 | - $this->order = (int)$order; |
|
| 26 | + $this->order = (int) $order; |
|
| 27 | 27 | |
| 28 | 28 | if ($this->order < 1) { |
| 29 | 29 | throw new InvalidMenuItemOrderException(); |