@@ -58,7 +58,7 @@ |
||
58 | 58 | ->getQuery() |
59 | 59 | ->getResult(); |
60 | 60 | $templates = []; |
61 | - $recursiveGetTemplates = function ($template) use (&$recursiveGetTemplates, &$templates) { |
|
61 | + $recursiveGetTemplates = function($template) use (&$recursiveGetTemplates, &$templates) { |
|
62 | 62 | array_push($templates, $template); |
63 | 63 | foreach ($template->getInheritors() as $template) { |
64 | 64 | if ($template instanceof Template) { |
@@ -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([]) |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * WidgetCache constructor. |
23 | 23 | * |
24 | - * @param Client $cache |
|
24 | + * @param WidgetCache $cache |
|
25 | 25 | */ |
26 | 26 | public function __construct(WidgetCache $cache) |
27 | 27 | { |
@@ -29,7 +29,6 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
32 | - * @param Widget $widget |
|
33 | 32 | * |
34 | 33 | * @return string |
35 | 34 | */ |
@@ -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; |
@@ -34,7 +34,7 @@ |
||
34 | 34 | /** |
35 | 35 | * This method save a tree of viewReferences. |
36 | 36 | * |
37 | - * @param array $viewReferences |
|
37 | + * @param \Victoire\Bundle\CoreBundle\Entity\WebViewInterface[] $viewReferences |
|
38 | 38 | * @param string $parentId |
39 | 39 | * @param string $parentLocale |
40 | 40 | * @param bool $reset |
@@ -118,9 +118,10 @@ discard block |
||
118 | 118 | * |
119 | 119 | * @param string $slot |
120 | 120 | * @param View $view |
121 | - * @param Widget $widget |
|
121 | + * @param Widget $widgets |
|
122 | 122 | * @param BusinessEntity[] $classes |
123 | 123 | * @param int $position |
124 | + * @param \Victoire\Bundle\WidgetBundle\Model\Widget $activeWidget |
|
124 | 125 | * |
125 | 126 | * @throws \Exception |
126 | 127 | * |
@@ -275,6 +276,7 @@ discard block |
||
275 | 276 | * @param string $namespace the namespace |
276 | 277 | * @param string $formMode the form mode |
277 | 278 | * @param int $position |
279 | + * @param string $slotId |
|
278 | 280 | * |
279 | 281 | * @throws \Exception |
280 | 282 | * |
@@ -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 | } |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | /** |
365 | 365 | * Set widgets. |
366 | 366 | * |
367 | - * @param [WidgetMap] $widgetMaps |
|
367 | + * @param [WidgetMap] $widgetMap |
|
368 | 368 | * |
369 | 369 | * @return Widget |
370 | 370 | */ |
@@ -494,7 +494,7 @@ discard block |
||
494 | 494 | } |
495 | 495 | |
496 | 496 | /** |
497 | - * @param $criteriaAlias |
|
497 | + * @param string $criteriaAlias |
|
498 | 498 | * |
499 | 499 | * @return bool |
500 | 500 | */ |