Total Complexity | 3 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class IsArrayViewHelper extends AbstractViewHelper |
||
22 | { |
||
23 | public function initializeArguments() |
||
24 | { |
||
25 | parent::initializeArguments(); |
||
26 | $this->registerArgument('subject', 'string', 'The subject'); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return bool |
||
31 | */ |
||
32 | public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
||
40 | } |
||
41 | } |
||
42 |
In the issue above, the returned value is violating the contract defined by the mentioned interface.
Let's take a look at an example: