@@ -88,7 +88,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -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(); |
@@ -264,7 +264,7 @@ |
||
| 264 | 264 | |
| 265 | 265 | private function formatAttributes($attributes) |
| 266 | 266 | { |
| 267 | - array_walk($attributes, function (&$item, $key) { |
|
| 267 | + array_walk($attributes, function(&$item, $key) { |
|
| 268 | 268 | if (is_array($item)) { |
| 269 | 269 | $item = implode($item, ' '); |
| 270 | 270 | } |
@@ -152,7 +152,7 @@ |
||
| 152 | 152 | while ($file = readdir($openFolder)) { |
| 153 | 153 | if ($file != '.' && $file != '..') { |
| 154 | 154 | // Remove file |
| 155 | - $recursiveDelete = function ($str) use (&$recursiveDelete) { |
|
| 155 | + $recursiveDelete = function($str) use (&$recursiveDelete) { |
|
| 156 | 156 | if (is_file($str)) { |
| 157 | 157 | return @unlink($str); |
| 158 | 158 | } elseif (is_dir($str)) { |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | 'options' => [ |
| 51 | 51 | 'choices' => $this->getAllAvailableRoles($this->roleHierarchy), |
| 52 | 52 | 'choices_as_values' => true, |
| 53 | - 'choice_label' => function ($value) { |
|
| 53 | + 'choice_label' => function($value) { |
|
| 54 | 54 | return $value; |
| 55 | 55 | }, |
| 56 | 56 | ], |
@@ -443,7 +443,7 @@ |
||
| 443 | 443 | */ |
| 444 | 444 | private function getPageRoles(View $view) |
| 445 | 445 | { |
| 446 | - $insertAncestorRole = function (View $view = null) use (&$insertAncestorRole) { |
|
| 446 | + $insertAncestorRole = function(View $view = null) use (&$insertAncestorRole) { |
|
| 447 | 447 | if ($view === null) { |
| 448 | 448 | return; |
| 449 | 449 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | 'class' => 'Victoire\Bundle\BlogBundle\Entity\Blog', |
| 27 | 27 | 'property' => 'name', |
| 28 | 28 | 'preferred_choices' => $options['blog'] ? [$options['blog']] : [], |
| 29 | - 'query_builder' => function (EntityRepository $er) use ($options) { |
|
| 29 | + 'query_builder' => function(EntityRepository $er) use ($options) { |
|
| 30 | 30 | return $er->joinTranslations($options['locale'])->getInstance(); |
| 31 | 31 | }, |
| 32 | 32 | ] |