Completed
Pull Request — master (#325)
by Paul
08:40
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.