@@ -158,7 +158,7 @@ |
||
| 158 | 158 | if (array_key_exists('cache_timout', $widgetParams)) { |
| 159 | 159 | return $widgetParams['cache_timout']; |
| 160 | 160 | } else { |
| 161 | - return 7 * 24 * 60 * 1000; // one week by default |
|
| 161 | + return 7*24*60*1000; // one week by default |
|
| 162 | 162 | } |
| 163 | 163 | } |
| 164 | 164 | } |
@@ -64,7 +64,7 @@ |
||
| 64 | 64 | ->scalarNode('class')->end() |
| 65 | 65 | ->scalarNode('name')->end() |
| 66 | 66 | ->scalarNode('cache')->defaultTrue()->end() |
| 67 | - ->scalarNode('cache_timeout')->defaultValue(7 * 24 * 60 * 1000)->end() //one week |
|
| 67 | + ->scalarNode('cache_timeout')->defaultValue(7*24*60*1000)->end() //one week |
|
| 68 | 68 | ->end() |
| 69 | 69 | ->end() |
| 70 | 70 | ->defaultValue([]) |
@@ -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 | ], |