Completed
Push — master ( 5d5121...7b108e )
by Leny
06:41
created
Bundle/WidgetMapBundle/Helper/WidgetMapHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @param Widget $widget
20 20
      * @param View   $view
21 21
      *
22
-     * @return WidgetMap|WidgetMapNotFoundException
22
+     * @return WidgetMap
23 23
      */
24 24
     public static function getWidgetMapByWidgetAndView(Widget $widget, View $view)
25 25
     {
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Manager/WidgetMapManager.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,8 +171,8 @@
 block discarded – undo
171 171
      * @param View $view
172 172
      * @param $beforeChild
173 173
      * @param $afterChild
174
-     * @param $originalParent
175
-     * @param $originalPosition
174
+     * @param WidgetMap|null $originalParent
175
+     * @param string $originalPosition
176 176
      */
177 177
     public function moveChildren(View $view, $beforeChild, $afterChild, $originalParent, $originalPosition)
178 178
     {
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
     public function insert(Widget $widget, View $view, $slotId, $position, $widgetReference)
29 29
     {
30 30
         $quantum = $this->em->getRepository('VictoireWidgetMapBundle:WidgetMap')->findOneBy([
31
-           'view' => $view,
32
-           'slot' => $slotId,
33
-           'position' => $position,
34
-           'parent' => $widgetReference,
31
+            'view' => $view,
32
+            'slot' => $slotId,
33
+            'position' => $position,
34
+            'parent' => $widgetReference,
35 35
         ]);
36 36
         if ($quantum) {
37 37
             $widget->setWidgetMap($quantum);
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
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         //we use the PRE_SUBMIT event to set the mode option
77 77
         $builder->addEventListener(
78 78
             FormEvents::PRE_SUBMIT,
79
-            function (FormEvent $event) use ($options) {
79
+            function(FormEvent $event) use ($options) {
80 80
                 //we get the raw data for the widget form
81 81
                 $rawData = $event->getData();
82 82
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $builder->addEventListener(
105 105
             FormEvents::PRE_SET_DATA,
106
-            function (FormEvent $event) use ($options) {
106
+            function(FormEvent $event) use ($options) {
107 107
                 $dataSources = $options['dataSources']->getDataSources();
108 108
                 $widget = $event->getData();
109 109
                 foreach ($dataSources as $alias => $dataSource) {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
         );
119 119
         $builder->addEventListener(
120 120
             FormEvents::POST_SUBMIT,
121
-            function (FormEvent $event) use ($options) {
121
+            function(FormEvent $event) use ($options) {
122 122
                 $widget = $event->getData();
123 123
                 /** @var Criteria $criteria */
124 124
                 foreach ($widget->getCriterias() as $criteria) {
Please login to merge, or discard this patch.
Bundle/CriteriaBundle/Form/Type/CriteriaType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
         //we use the PRE_SUBMIT event to set the mode option
67 67
         $builder->addEventListener(
68 68
             FormEvents::PRE_SUBMIT,
69
-            function (FormEvent $event) use ($options) {
69
+            function(FormEvent $event) use ($options) {
70 70
                 //we get the raw data for the widget form
71 71
                 $rawData = $event->getData();
72 72
 
Please login to merge, or discard this patch.