Completed
Pull Request — master (#325)
by Paul
09:55
created
Bundle/WidgetMapBundle/Command/WidgetMapMigrationCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 ->getQuery()
64 64
                 ->getResult();
65 65
             $templates = [];
66
-            $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) {
66
+            $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) {
67 67
                     array_push($templates, $template);
68 68
                     foreach ($template->getInheritors() as $template) {
69 69
                         if ($template instanceof Template) {
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 foreach ($oldWidgetMaps as $slot => $oldWidgetMap) {
98 98
                     $widgetMaps = [];
99 99
                     var_dump($oldWidgetMap);
100
-                    usort($oldWidgetMap, function ($a, $b) {
100
+                    usort($oldWidgetMap, function($a, $b) {
101 101
                         if ($b['position'] - $a['position'] == 0) {
102 102
                             return 1;
103 103
                         }
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Tests/Manager/WidgetMapManagerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         ];
57 57
 
58 58
         for ($i = 1; $i <= 1000; $i++) {
59
-            $buildSortedWidget = function ($builtWidgetMap) use (&$order, &$buildSortedWidget, $view) {
59
+            $buildSortedWidget = function($builtWidgetMap) use (&$order, &$buildSortedWidget, $view) {
60 60
 
61 61
                 $sortedWidget['widgetMap'] = $builtWidgetMap['content'][array_rand($builtWidgetMap['content'])];
62 62
                 $availablePositions = [];
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
@@ -236,6 +236,7 @@
 block discarded – undo
236 236
      * @param string $namespace        the namespace
237 237
      * @param string $formMode         the form mode
238 238
      * @param int    $position
239
+     * @param string $slotId
239 240
      *
240 241
      * @throws \Exception
241 242
      *
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Entity/Widget.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
     /**
370 370
      * Add widget.
371 371
      *
372
-     * @param Widget $widgetMap
372
+     * @param WidgetMap $widgetMap
373 373
      */
374 374
     public function addWidgetMap(WidgetMap $widgetMap)
375 375
     {
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Entity/WidgetMap.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -112,6 +112,9 @@
 block discarded – undo
112 112
         return $this->id;
113 113
     }
114 114
 
115
+    /**
116
+     * @param null|integer $id
117
+     */
115 118
     public function setId($id)
116 119
     {
117 120
         $this->id = $id;
Please login to merge, or discard this patch.
Bundle/CoreBundle/Entity/View.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -369,7 +369,7 @@
 block discarded – undo
369 369
     /**
370 370
      * Add widget.
371 371
      *
372
-     * @param Widget $widgetMap
372
+     * @param WidgetMap $widgetMap
373 373
      */
374 374
     public function addWidgetMap(WidgetMap $widgetMap)
375 375
     {
Please login to merge, or discard this patch.
Bundle/WidgetMapBundle/Builder/WidgetMapBuilder.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -106,6 +106,10 @@
 block discarded – undo
106 106
      * depending of the children parents and positions
107 107
      * @param WidgetMap $currentWidgetMap
108 108
      */
109
+
110
+    /**
111
+     * @param View $view
112
+     */
109 113
     protected function orderizeWidgetMap($currentWidgetMap, $builtWidgetMap, $slot, $widgetMaps, $view){
110 114
         $children = $currentWidgetMap->getChildren($view);
111 115
         foreach ($children as $child) {
Please login to merge, or discard this patch.