Completed
Pull Request — master (#387)
by Paul
06:29
created
Bundle/WidgetMapBundle/Manager/WidgetMapManager.php 1 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/CriteriaBundle/Chain/DataSourceChain.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     public function addDataSource($dataSource, $parameters)
22 22
     {
23 23
         $method = $parameters['method'];
24
-        $data = function () use ($dataSource, $method) {
24
+        $data = function() use ($dataSource, $method) {
25 25
             return $dataSource->{$method}();
26 26
         };
27 27
         $this->dataSource[$parameters['alias']] = [
Please login to merge, or discard this patch.
Bundle/WidgetBundle/Entity/Widget.php 1 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/WidgetBundle/Command/MigrateWidgetOwningSideCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $widget = $widgetMap->getWidget();
44 44
             $widget->setWidgetMap($widgetMap);
45 45
             $widgetMap->setWidget(null);
46
-            if ($key % 100 == 0) {
46
+            if ($key%100 == 0) {
47 47
                 $entityManager->flush();
48 48
             }
49 49
             $progress->advance();
Please login to merge, or discard this patch.