@@ -28,10 +28,10 @@ |
||
| 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); |
@@ -21,7 +21,7 @@ |
||
| 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']] = [ |
@@ -495,7 +495,7 @@ |
||
| 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 | } |
@@ -43,7 +43,7 @@ |
||
| 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(); |