Completed
Pull Request — master (#325)
by Paul
08:12 queued 49s
created
Bundle/CoreBundle/Entity/View.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
     /**
310 310
      * Get template.
311 311
      *
312
-     * @return Template
312
+     * @return string
313 313
      */
314 314
     public function getTemplate()
315 315
     {
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
     /**
369 369
      * Has children.
370 370
      *
371
-     * @return bool
371
+     * @return integer
372 372
      */
373 373
     public function hasChildren()
374 374
     {
@@ -604,7 +604,7 @@  discard block
 block discarded – undo
604 604
     /**
605 605
      * Get i18n.
606 606
      *
607
-     * @return BaseI18n
607
+     * @return string
608 608
      */
609 609
     public function getI18n()
610 610
     {
@@ -614,7 +614,7 @@  discard block
 block discarded – undo
614 614
     /**
615 615
      * Set i18n.
616 616
      *
617
-     * @param string $i18n
617
+     * @param BaseI18n $i18n
618 618
      *
619 619
      * @return $this
620 620
      */
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
     /**
658 658
      * Add widget.
659 659
      *
660
-     * @param Widget $widget
660
+     * @param Widget $widgetMap
661 661
      */
662 662
     public function addWidgetMap(WidgetMap $widgetMap)
663 663
     {
@@ -834,7 +834,7 @@  discard block
 block discarded – undo
834 834
      * @deprecated
835 835
      * Get widgets.
836 836
      *
837
-     * @return Widget[]
837
+     * @return string
838 838
      */
839 839
     public function getWidgets()
840 840
     {
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Builder/WidgetFormBuilder.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -115,6 +115,8 @@  discard block
 block discarded – undo
115 115
      * @param View   $view
116 116
      * @param string $businessEntityId
117 117
      * @param string $namespace
118
+     * @param integer $position
119
+     * @param string $slot
118 120
      *
119 121
      * @return array
120 122
      */
@@ -268,6 +270,7 @@  discard block
 block discarded – undo
268 270
      * @param View   $view
269 271
      * @param string $businessEntityId
270 272
      * @param int    $position
273
+     * @param string $slotId
271 274
      *
272 275
      * @throws \Exception
273 276
      *
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Controller/WidgetController.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,6 @@  discard block
 block discarded – undo
83 83
      * @param string $type              The type of the widget we edit
84 84
      * @param int    $viewReference     The view reference where attach the widget
85 85
      * @param string $slot              The slot where attach the widget
86
-     * @param int    $positionReference The positionReference in the widgetMap
87 86
      *
88 87
      * @return JsonResponse
89 88
      *
@@ -129,7 +128,6 @@  discard block
 block discarded – undo
129 128
      * @param string $type              The type of the widget we edit
130 129
      * @param int    $viewReference     The view reference where attach the widget
131 130
      * @param string $slot              The slot where attach the widget
132
-     * @param int    $positionReference Position of the widget
133 131
      * @param string $businessEntityId  The BusinessEntity::id (can be null if the submitted form is in static mode)
134 132
      *
135 133
      * @return JsonResponse
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Entity/Widget.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
     /**
370 370
      * Add widget.
371 371
      *
372
-     * @param Widget $widget
372
+     * @param Widget $widgetMap
373 373
      */
374 374
     public function addWidgetMap(WidgetMap $widgetMap)
375 375
     {
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
      * @deprecated
444 444
      * Get view.
445 445
      *
446
-     * @return View
446
+     * @return string
447 447
      */
448 448
     public function getView()
449 449
     {
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Helper/WidgetHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
      * @param string                                  $type
54 54
      * @param \Victoire\Bundle\CoreBundle\Entity\View $view
55 55
      * @param string                                  $slot
56
-     * @param $mode
56
+     * @param string $mode
57 57
      *
58 58
      * @return Widget $widget
59 59
      */
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Model/WidgetManager.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,6 @@  discard block
 block discarded – undo
98 98
      * @param string $slotId
99 99
      * @param View   $view
100 100
      * @param string $entity
101
-     * @param int    $positionReference
102 101
      * @param string $type
103 102
      *
104 103
      * @throws \Exception
@@ -313,6 +312,9 @@  discard block
 block discarded – undo
313 312
         return $widgetCopy;
314 313
     }
315 314
 
315
+    /**
316
+     * @param Widget $entity
317
+     */
316 318
     public function cloneEntity($entity)
317 319
     {
318 320
         $entityCopy = clone $entity;
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Entity/Slot.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
      *
75 75
      * @param WidgetMap $widgetMap
76 76
      *
77
-     * @return this
77
+     * @return Slot
78 78
      */
79 79
     public function updateWidgetMap($widgetMap)
80 80
     {
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Entity/WidgetMap.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     }
119 119
 
120 120
     /**
121
-     * @return null
121
+     * @return string
122 122
      */
123 123
     public function isAsynchronous()
124 124
     {
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
     /**
129
-     * @param null $asynchronous
129
+     * @param boolean|string $asynchronous
130 130
      */
131 131
     public function setAsynchronous($asynchronous)
132 132
     {
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     }
292 292
 
293 293
     /**
294
-     * @return mixed
294
+     * @return Collection
295 295
      */
296 296
     public function getChildrenRaw()
297 297
     {
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
     }
383 383
 
384 384
     /**
385
-     * @param mixed $parent
385
+     * @param null|WidgetMap $parent
386 386
      */
387 387
     public function setParent(WidgetMap $parent = null)
388 388
     {
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
     }
413 413
 
414 414
     /**
415
-     * @return mixed
415
+     * @return ArrayCollection
416 416
      */
417 417
     public function getSubstitutes()
418 418
     {
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Manager/WidgetMapManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@
 block discarded – undo
19 19
         $this->builder = $builder;
20 20
     }
21 21
 
22
+    /**
23
+     * @param string $slotId
24
+     */
22 25
     public function insert(Widget $widget, View $view, $slotId, $position, $widgetReference)
23 26
     {
24 27
         $parent = null;
Please login to merge, or discard this patch.