Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | 1 | public function open($vars = '', $caption = '') |
|
12 | { |
||
13 | 1 | $vars = $this->values($vars); |
|
14 | 1 | if (isset($vars['class'])) { |
|
15 | 1 | $vars['class'] = $this->prefixClasses('table', array('responsive', 'bordered', 'striped', 'hover', 'condensed'), $vars['class']); |
|
16 | 1 | } |
|
17 | |||
18 | 1 | return parent::open($vars, $caption); |
|
|
|||
19 | } |
||
20 | } |
||
21 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: