Completed
Pull Request — master (#2)
by Beñat
02:41
created
BenGorFileBundle/DependencyInjection/CmsKernelBenGorFileBridgeExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $container->setParameter('cms_kernel_bengor_file_bridge.config', $config);
32 32
 
33
-        $loader = new YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config/services'));
33
+        $loader = new YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config/services'));
34 34
         $loader->load('routing.yml');
35 35
 
36 36
 
Please login to merge, or discard this patch.
BenGorFileBundle/DependencyInjection/Compiler/DeclareFileFormTypesPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $config['file_types'][$fileType]['name'] = $fileType;
33 33
 
34 34
             $queryHandlers[$fileType] = $container->getDefinition(
35
-                'bengor.file.application.query.' . $fileType . '_of_id'
35
+                'bengor.file.application.query.'.$fileType.'_of_id'
36 36
             );
37 37
         }
38 38
 
Please login to merge, or discard this patch.
BenGorFileBundle/DependencyInjection/Compiler/DeclareHttpActionsPass.php 1 patch
Spacing   +4 added lines, -4 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,10 +39,10 @@  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.all_' . $fileType . 's'),
45
+                        $container->getDefinition('bengor.file.application.query.all_'.$fileType.'s'),
46 46
                     ]
47 47
                 ))
48 48
             );
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
                 ],
36 36
                 [],
37 37
                 [],
Please login to merge, or discard this patch.
CMSKernel/Infrastructure/BenGorFileBundle/Routing/UploadRouteLoader.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 . '_upload:__invoke',
34
+                    '_controller' => 'cms_kernel_bengor_file.http_action.'.$file.'_upload:__invoke',
35 35
                 ],
36 36
                 [],
37 37
                 [],
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
@@ -23,10 +23,10 @@
 block discarded – undo
23 23
         $builder
24 24
             ->add('tree', HiddenType::class)
25 25
             ->addModelTransformer(new CallbackTransformer(
26
-                function ($value) {
26
+                function($value) {
27 27
                     return ['tree' => $value];
28 28
                 },
29
-                function ($value) {
29
+                function($value) {
30 30
                     return $value['tree'];
31 31
                 }
32 32
             ));
Please login to merge, or discard this patch.
src/LIN3S/CMSKernel/Infrastructure/Symfony/Form/Type/FileType.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Infrastructure/Lin3sAdminBundle/Action/Type/TranslateActionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 
52 52
         $entityName = $config->name();
53 53
         $this->checkFormIsPassed($options);
54
-        $id = (string)$config->id($entity); // Ensure the id is scalar, not VO
54
+        $id = (string) $config->id($entity); // Ensure the id is scalar, not VO
55 55
         $locale = $request->query->get('locale');
56 56
 
57 57
 //        TODO: Check if locale is defined in the bundle configuration
Please login to merge, or discard this patch.