Completed
Branch 1.5 (08af83)
by Romain
26:58 queued 02:03
created
Action/QuickExportAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         }
89 89
 
90 90
         $response = new StreamedResponse(
91
-            function () use ($request) {
91
+            function() use ($request) {
92 92
                 $this->export($request);
93 93
             }
94 94
         );
Please login to merge, or discard this patch.
EventListener/Action/SecurityListener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -88,9 +88,9 @@  discard block
 block discarded – undo
88 88
         $resolver->setOptional(['acl_suffix']);
89 89
         $resolver->setNormalizers(
90 90
             [
91
-                'acl' => function ($actionOptions, $acl) use ($options) {
91
+                'acl' => function($actionOptions, $acl) use ($options) {
92 92
                     if (null === $acl && isset($options['acl_prefix']) && isset($actionOptions['acl_suffix'])) {
93
-                        return $options['acl_prefix'] . $options['acl_separator'] .
93
+                        return $options['acl_prefix'].$options['acl_separator'].
94 94
                             $actionOptions['acl_suffix'];
95 95
                     }
96 96
 
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
             ]
100 100
         );
101 101
         $customEntityName = $event->getAction()->getConfiguration()->getName();
102
-        $normalizeActions = function ($options, $actionTypes) use ($customEntityName) {
102
+        $normalizeActions = function($options, $actionTypes) use ($customEntityName) {
103 103
             return array_filter(
104 104
                 $actionTypes,
105
-                function ($actionType) use ($customEntityName) {
105
+                function($actionType) use ($customEntityName) {
106 106
                     $action = $this->actionFactory->getAction($customEntityName, $actionType);
107 107
                     $options = $action->getOptions();
108 108
 
Please login to merge, or discard this patch.
EventListener/DataGrid/ConfigureCustomEntityGridListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         $customEntityConfig = $indexAction->getConfiguration();
68 68
         $options = $indexAction->getOptions();
69
-        $sourceOptions = ($datagridConfig->offsetGetByPath('[source]')?:[]) + [
69
+        $sourceOptions = ($datagridConfig->offsetGetByPath('[source]') ?: []) + [
70 70
                 'entity' => $customEntityConfig->getEntityClass(),
71 71
                 'type'   => 'pim_custom_entity'
72 72
         ];
@@ -89,8 +89,8 @@  discard block
 block discarded – undo
89 89
         $actions = [];
90 90
 
91 91
         foreach ($indexAction->getRowActions() as $rowActionType) {
92
-            $link = $rowActionType . '_link';
93
-            $rowAction  = $this->actionFactory->getAction($name, $rowActionType);
92
+            $link = $rowActionType.'_link';
93
+            $rowAction = $this->actionFactory->getAction($name, $rowActionType);
94 94
             $actions[$rowActionType] = $rowAction->getGridActionOptions() + ['link' => $link];
95 95
             $properties[$link] = [
96 96
                 'type'   => 'custom_entity_url',
Please login to merge, or discard this patch.
Entity/Repository/CustomOptionRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
         return array(
35 35
             'results' => array_map(
36
-                function ($vars) {
36
+                function($vars) {
37 37
                     return [
38 38
                         'id'   => $vars['id'],
39 39
                         'text' => $vars['label'] ?: sprintf('[%s]', $vars['code'])
Please login to merge, or discard this patch.
Entity/Repository/TranslatableCustomOptionRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         return array(
50 50
             'results' => array_map(
51
-                function ($option) {
51
+                function($option) {
52 52
                     if (!$option['text']) {
53 53
                         $option['text'] = $option['code'];
54 54
                     }
Please login to merge, or discard this patch.
Doctrine/ORM/Sorter/LabelOptionSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         // join to value
27 27
         $condition = $this->prepareAttributeJoinCondition($attribute, $joinAlias);
28 28
         $this->qb->leftJoin(
29
-            $this->qb->getRootAlias().'.' . $attribute->getBackendStorage(),
29
+            $this->qb->getRootAlias().'.'.$attribute->getBackendStorage(),
30 30
             $joinAlias,
31 31
             'WITH',
32 32
             $condition
Please login to merge, or discard this patch.
Doctrine/ORM/Sorter/CodeOptionSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         // join to value
27 27
         $condition = $this->prepareAttributeJoinCondition($attribute, $joinAlias);
28 28
         $this->qb->leftJoin(
29
-            $this->qb->getRootAlias().'.' . $attribute->getBackendStorage(),
29
+            $this->qb->getRootAlias().'.'.$attribute->getBackendStorage(),
30 30
             $joinAlias,
31 31
             'WITH',
32 32
             $condition
Please login to merge, or discard this patch.
Doctrine/ORM/Sorter/TranslatableOptionSorter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         // join to value
27 27
         $condition = $this->prepareAttributeJoinCondition($attribute, $joinAlias);
28 28
         $this->qb->leftJoin(
29
-            $this->qb->getRootAlias().'.' . $attribute->getBackendStorage(),
29
+            $this->qb->getRootAlias().'.'.$attribute->getBackendStorage(),
30 30
             $joinAlias,
31 31
             'WITH',
32 32
             $condition
Please login to merge, or discard this patch.
DependencyInjection/Compiler/ConfigurationBuilderPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
                 continue;
44 44
             }
45 45
 
46
-            $serviceConfiguration =  $this->getMergedConfiguration($configuration, $configurations);
46
+            $serviceConfiguration = $this->getMergedConfiguration($configuration, $configurations);
47 47
             $this->addService($container, $name, $serviceConfiguration);
48 48
         }
49 49
     }
Please login to merge, or discard this patch.