Completed
Push — master ( 28e213...75d594 )
by Leny
16:09 queued 08:14
created
Bundle/ViewReferenceBundle/Helper/ViewReferenceHelper.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-     * @param [] $tree
62
+     * @param WebViewInterface[] $tree
63 63
      */
64 64
     public function buildViewReferenceRecursively($tree, EntityManager $entityManager)
65 65
     {
Please login to merge, or discard this patch.
Bundle/ViewReferenceBundle/Connector/ViewReferenceRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $references = $this->repository->getResults($refsId);
89 89
         foreach ($references as $reference) {
90 90
             if ($transform === true) {
91
-                $transformViewReferenceFn = function ($parentViewReference) use (&$transformViewReferenceFn, $keepChildren) {
91
+                $transformViewReferenceFn = function($parentViewReference) use (&$transformViewReferenceFn, $keepChildren) {
92 92
                     $transformer = ViewReferenceManager::findTransformerFromElement($parentViewReference);
93 93
                     $reference = $transformer->transform($parentViewReference);
94 94
                     if ($keepChildren) {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     {
153 153
         $viewsReferences = [];
154 154
 
155
-        $decoratorFn = function ($depth, $char0 = '└', $char = '─') {
155
+        $decoratorFn = function($depth, $char0 = '└', $char = '─') {
156 156
             $decorator = $char0;
157 157
             for ($i = 0; $i <= $depth; $i++) {
158 158
                 $decorator .= $char;
Please login to merge, or discard this patch.
Bundle/CoreBundle/Entity/Link.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -378,7 +378,7 @@
 block discarded – undo
378 378
     /**
379 379
      * Set viewReferencePage.
380 380
      *
381
-     * @param mixed $viewReferencePage
381
+     * @param \Victoire\Bundle\PageBundle\Entity\Page $viewReferencePage
382 382
      *
383 383
      * @return Link
384 384
      */
Please login to merge, or discard this patch.
Bundle/ViewReferenceBundle/Connector/ViewReferenceManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     /**
35 35
      * This method save a tree of viewReferences.
36 36
      *
37
-     * @param array  $viewReferences
37
+     * @param \Victoire\Bundle\CoreBundle\Entity\WebViewInterface[]  $viewReferences
38 38
      * @param string $parentId
39 39
      * @param string $parentLocale
40 40
      * @param bool   $reset
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Builder/WidgetFormBuilder.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,9 +118,10 @@  discard block
 block discarded – undo
118 118
      *
119 119
      * @param string           $slot
120 120
      * @param View             $view
121
-     * @param Widget           $widget
121
+     * @param Widget           $widgets
122 122
      * @param BusinessEntity[] $classes
123 123
      * @param int              $position
124
+     * @param \Victoire\Bundle\WidgetBundle\Model\Widget $activeWidget
124 125
      *
125 126
      * @throws \Exception
126 127
      *
@@ -275,6 +276,7 @@  discard block
 block discarded – undo
275 276
      * @param string $namespace        the namespace
276 277
      * @param string $formMode         the form mode
277 278
      * @param int    $position
279
+     * @param string $slotId
278 280
      *
279 281
      * @throws \Exception
280 282
      *
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Entity/Widget.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -359,7 +359,7 @@
 block discarded – undo
359 359
     /**
360 360
      * Set widgets.
361 361
      *
362
-     * @param [WidgetMap] $widgetMaps
362
+     * @param [WidgetMap] $widgetMap
363 363
      *
364 364
      * @return Widget
365 365
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -495,7 +495,7 @@
 block discarded – undo
495 495
      */
496 496
     public function hasCriteriaNamed($criteriaAlias)
497 497
     {
498
-        return $this->criterias->exists(function ($key, $element) use ($criteriaAlias) {
498
+        return $this->criterias->exists(function($key, $element) use ($criteriaAlias) {
499 499
             return $criteriaAlias === $element->getName();
500 500
         });
501 501
     }
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Entity/WidgetMap.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@  discard block
 block discarded – undo
120 120
         return $this->id;
121 121
     }
122 122
 
123
+    /**
124
+     * @param null|integer $id
125
+     */
123 126
     public function setId($id)
124 127
     {
125 128
         $this->id = $id;
@@ -224,7 +227,7 @@  discard block
 block discarded – undo
224 227
     }
225 228
 
226 229
     /**
227
-     * @param mixed $replaced
230
+     * @param WidgetMap $replaced
228 231
      */
229 232
     public function setReplaced($replaced)
230 233
     {
Please login to merge, or discard this patch.
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.