@@ -19,7 +19,6 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * add a view Manager. |
| 21 | 21 | * |
| 22 | - * @param DataTransformerInterface $viewManager |
|
| 23 | 22 | * @param string $viewNamespace |
| 24 | 23 | */ |
| 25 | 24 | public function addTransformer(DataTransformerInterface $transformer, $viewNamespace, $outputFormat) |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * compute the viewReference relative to a View + entity. |
| 26 | 26 | * |
| 27 | - * @param WebViewInterface $view |
|
| 27 | + * @param View $view |
|
| 28 | 28 | * |
| 29 | 29 | * @return ViewReference |
| 30 | 30 | */ |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | * SimpleXMLElement to ViewReference |
| 20 | 20 | * {@inheritdoc} |
| 21 | 21 | * |
| 22 | - * @param \SimpleXMLElement $xml |
|
| 23 | 22 | * |
| 24 | 23 | * @return ViewReference |
| 25 | 24 | */ |
@@ -48,7 +48,7 @@ |
||
| 48 | 48 | /** |
| 49 | 49 | * register twig functions. |
| 50 | 50 | * |
| 51 | - * @return array The list of extensions |
|
| 51 | + * @return \Twig_SimpleFunction[] The list of extensions |
|
| 52 | 52 | */ |
| 53 | 53 | public function getFunctions() |
| 54 | 54 | { |
@@ -37,7 +37,6 @@ |
||
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | - * @param array $options |
|
| 41 | 40 | */ |
| 42 | 41 | public function add($key, $value) |
| 43 | 42 | { |
@@ -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; |