Completed
Pull Request — master (#24)
by
unknown
02:02
created
src/LIN3S/CMSKernel/Domain/Model/Menu/MenuItemOrder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/LIN3S/CMSKernel/Infrastructure/Symfony/Form/Type/DatePickerType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
         $builder
28 28
             ->add('date_picker', HiddenType::class)
29 29
             ->addModelTransformer(new CallbackTransformer(
30
-                function ($value) {
30
+                function($value) {
31 31
                     return ['date_picker' => $value];
32 32
                 },
33
-                function ($value) {
33
+                function($value) {
34 34
                     return $value['date_picker'];
35 35
                 }
36 36
             ));
Please login to merge, or discard this patch.
src/LIN3S/CMSKernel/Infrastructure/Symfony/Form/Type/MenuTreeType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         $builder
41 41
             ->add('tree', HiddenType::class)
42 42
             ->addModelTransformer(new CallbackTransformer(
43
-                function ($value) use ($locale, $menuId) {
43
+                function($value) use ($locale, $menuId) {
44 44
                     if (null === $menuId) {
45 45
                         return ['tree' => []];
46 46
                     }
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
                     return ['tree' => json_encode($menu['tree'])];
61 61
                 },
62
-                function ($value) {
62
+                function($value) {
63 63
                     return $value['tree'] ? json_decode($value['tree'], true) : [];
64 64
                 }
65 65
             ));
Please login to merge, or discard this patch.
CMSKernel/Infrastructure/Lin3sAdminBundle/EventListener/LocaleListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
     public function onKernelRequest(GetResponseEvent $event)
29 29
     {
30
-        if(!$event->isMasterRequest()) {
30
+        if (!$event->isMasterRequest()) {
31 31
             return;
32 32
         }
33 33
 
Please login to merge, or discard this patch.
BenGorFileBundle/DependencyInjection/Compiler/DeclareHttpActionsPass.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
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,11 +39,11 @@  discard block
 block discarded – undo
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.filter_' . $fileType . 's'),
46
-                        $container->getDefinition('bengor.file.application.query.count_' . $fileType . 's'),
45
+                        $container->getDefinition('bengor.file.application.query.filter_'.$fileType.'s'),
46
+                        $container->getDefinition('bengor.file.application.query.count_'.$fileType.'s'),
47 47
                         $container->getDefinition('router.default'),
48 48
                     ]
49 49
                 ))
Please login to merge, or discard this patch.
Infrastructure/BenGorFileBundle/HttpAction/AjaxFileGalleryAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     private function previewPath($filename, $fileType)
70 70
     {
71 71
         return $this->urlGenerator->generate(
72
-            'bengor_file_' . $fileType . '_download',
72
+            'bengor_file_'.$fileType.'_download',
73 73
             [
74 74
                 'filename' => $filename,
75 75
             ]
Please login to merge, or discard this patch.
CMSKernel/Infrastructure/BenGorFileBundle/Routing/GalleryRouteLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
                     'fileType'    => $file,
36 36
                 ],
37 37
                 [],
Please login to merge, or discard this patch.
src/LIN3S/CMSKernel/Infrastructure/Symfony/Form/Type/WysiwygType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,10 +25,10 @@
 block discarded – undo
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
             ));
Please login to merge, or discard this patch.
src/LIN3S/CMSKernel/Infrastructure/Symfony/Form/Type/FileType.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
             ]
Please login to merge, or discard this patch.