@@ -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 |
@@ -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 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | /** |
173 | 173 | * Get businessEntityName. |
174 | 174 | * |
175 | - * @return int |
|
175 | + * @return string |
|
176 | 176 | */ |
177 | 177 | public function getBusinessEntityName() |
178 | 178 | { |
@@ -369,7 +369,7 @@ discard block |
||
369 | 369 | /** |
370 | 370 | * Set widgets. |
371 | 371 | * |
372 | - * @param [WidgetMap] $widgetMaps |
|
372 | + * @param [WidgetMap] $widgetMap |
|
373 | 373 | * |
374 | 374 | * @return Widget |
375 | 375 | */ |
@@ -500,7 +500,7 @@ discard block |
||
500 | 500 | } |
501 | 501 | |
502 | 502 | /** |
503 | - * @param $criteriaAlias |
|
503 | + * @param string $criteriaAlias |
|
504 | 504 | * |
505 | 505 | * @return bool |
506 | 506 | */ |
@@ -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(); |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | * |
64 | 64 | * @param string $name |
65 | 65 | * |
66 | - * @return View |
|
66 | + * @return ArticleTranslation |
|
67 | 67 | */ |
68 | 68 | public function setName($name) |
69 | 69 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * |
78 | 78 | * @param string $slug |
79 | 79 | * |
80 | - * @return View |
|
80 | + * @return ArticleTranslation |
|
81 | 81 | */ |
82 | 82 | public function setSlug($slug) |
83 | 83 | { |
@@ -109,9 +109,8 @@ discard block |
||
109 | 109 | /** |
110 | 110 | * Set category. |
111 | 111 | * |
112 | - * @param string $category |
|
113 | 112 | * |
114 | - * @return Article |
|
113 | + * @return ArticleTranslation |
|
115 | 114 | */ |
116 | 115 | public function setDescription($description) |
117 | 116 | { |
@@ -215,7 +215,7 @@ |
||
215 | 215 | /** |
216 | 216 | * @param VirtualBusinessPage $page |
217 | 217 | * @param BusinessTemplate $businessTemplate |
218 | - * @param array $businessProperties |
|
218 | + * @param BusinessProperty[] $businessProperties |
|
219 | 219 | * @param EntityManager $em |
220 | 220 | * @param $entity |
221 | 221 | * |
@@ -98,7 +98,7 @@ |
||
98 | 98 | * @param bool $autoload |
99 | 99 | * @return array |
100 | 100 | */ |
101 | - $class_uses_deep = function ($class, $autoload = true) { |
|
101 | + $class_uses_deep = function($class, $autoload = true) { |
|
102 | 102 | $traits = []; |
103 | 103 | do { |
104 | 104 | $traits = array_merge(class_uses($class, $autoload), $traits); |