Completed
Push — master ( 5ac386...ef9fce )
by Paul
09:44
created
Bundle/CoreBundle/Command/WidgetCssGenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
             ->getQuery()
119 119
             ->getResult();
120 120
         $templates = [];
121
-        $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) {
121
+        $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) {
122 122
             array_push($templates, $template);
123 123
             foreach ($template->getInheritors() as $_template) {
124 124
                 if ($_template instanceof Template) {
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/EntityProxyFormType.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
                         'attr'         => [
74 74
                             'class' => 'add_'.$options['business_entity_id'].'_link picker_entity_select',
75 75
                         ],
76
-                        'query_builder' => function (EntityRepository $er) use ($businessEntity, $locale) {
76
+                        'query_builder' => function(EntityRepository $er) use ($businessEntity, $locale) {
77 77
                             // Don't display entities that don't have translations in the current locale.
78 78
                             if (in_array(Translatable::class, class_uses($businessEntity->getClass()))) {
79 79
                                 return $er->createQueryBuilder('entity')
@@ -89,11 +89,11 @@  discard block
 block discarded – undo
89 89
 
90 90
                 $builder->get('ressourceId')->addModelTransformer(
91 91
                     new CallbackTransformer(
92
-                        function ($idToEntity) use ($entityManager, $businessEntity) {
92
+                        function($idToEntity) use ($entityManager, $businessEntity) {
93 93
                             // transform the array to a string
94 94
                             return $entityManager->getRepository($businessEntity->getClass())->findOneById($idToEntity);
95 95
                         },
96
-                        function ($entityToId) {
96
+                        function($entityToId) {
97 97
                             // transform the string back to an array
98 98
                             return $entityToId->getId();
99 99
                         }
@@ -149,10 +149,10 @@  discard block
 block discarded – undo
149 149
 
150 150
         $builder->get('businessEntity')->addModelTransformer(
151 151
                 new CallbackTransformer(
152
-                    function ($businessEntity) {
152
+                    function($businessEntity) {
153 153
                         return $businessEntity;
154 154
                     },
155
-                function ($nameToBusinessEntity) use ($entityManager) {
155
+                function($nameToBusinessEntity) use ($entityManager) {
156 156
                     return $entityManager->getRepository(
157 157
                         'VictoireBusinessEntityBundle:BusinessEntity'
158 158
                     )->findOneByName(
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/AdditionnalPropertiesType.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
         $businessEntity = $options['businessEntity'];
28 28
         $getMethod = $businessEntity->getGetMethod();
29 29
         preg_match_all('/{{([a-zA-Z]+)}}/', $getMethod, $matches);
30
-        $identifiers = array_map(function ($property) {
30
+        $identifiers = array_map(function($property) {
31 31
             return $property->getName();
32 32
         },
33 33
             $businessEntity->getBusinessIdentifiers()->toArray()
Please login to merge, or discard this patch.
Bundle/CoreBundle/Form/WidgetType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         //we use the PRE_SUBMIT event to set the mode option
74 74
         $builder->addEventListener(
75 75
             FormEvents::PRE_SUBMIT,
76
-            function (FormEvent $event) use ($options) {
76
+            function(FormEvent $event) use ($options) {
77 77
                 //we get the raw data for the widget form
78 78
                 $rawData = $event->getData();
79 79
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
         ]);
118 118
         $builder->addEventListener(
119 119
             FormEvents::PRE_SET_DATA,
120
-            function (FormEvent $event) use ($options) {
120
+            function(FormEvent $event) use ($options) {
121 121
                 $dataSources = $options['dataSources']->getDataSources();
122 122
                 $widget = $event->getData();
123 123
                 foreach ($dataSources as $alias => $dataSource) {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         );
132 132
         $builder->addEventListener(
133 133
             FormEvents::POST_SUBMIT,
134
-            function (FormEvent $event) {
134
+            function(FormEvent $event) {
135 135
                 $widget = $event->getData();
136 136
                 /** @var Criteria $criteria */
137 137
                 foreach ($widget->getCriterias() as $criteria) {
Please login to merge, or discard this patch.
Bundle/APIBusinessEntityBundle/Resolver/APIBusinessEntityResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         $getMethod = $businessEntity->getGetMethod();
51 51
         preg_match_all('/{{([a-zA-Z]+)}}/', $getMethod, $matches);
52 52
         // build an array with businessIdentifiers properties names
53
-        $identifiers = array_map(function ($property) {
53
+        $identifiers = array_map(function($property) {
54 54
             return $property->getName();
55 55
         },
56 56
             $businessEntity->getBusinessIdentifiers()->toArray()
Please login to merge, or discard this patch.
Bundle/SeoBundle/Helper/PageSeoHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * Generate a seo for the page using the current entity.
62 62
      *
63 63
      * @param Page   $page
64
-     * @param Entity $entity
64
+     * @param \Victoire\Bundle\BusinessEntityBundle\Entity\BusinessEntityInterface $entity
65 65
      */
66 66
     public function updateSeoByEntity(BasePage $page, $entity)
67 67
     {
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Builder/WidgetFormBuilder.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -183,6 +183,7 @@
 block discarded – undo
183 183
      * @param string $businessEntityId
184 184
      * @param string $formMode
185 185
      * @param int    $position
186
+     * @param string $slotId
186 187
      *
187 188
      * @throws \Exception
188 189
      *
Please login to merge, or discard this patch.