Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 14 |
Lines | 18 |
Ratio | 100 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
72 | View Code Duplication | protected function getBuilderParameters() |
|
1 ignored issue
–
show
|
|||
73 | { |
||
74 | return [ |
||
75 | 'dom' => 'Bfrtip', |
||
76 | 'order' => [ [ 0, 'desc' ] ], |
||
77 | 'buttons' => [ |
||
78 | 'create', |
||
79 | 'export', |
||
80 | 'print', |
||
81 | 'reset', |
||
82 | 'reload', |
||
83 | ], |
||
84 | 'paging' => true, |
||
85 | 'searching' => true, |
||
86 | 'info' => true, |
||
87 | 'searchDelay' => 500, |
||
88 | ]; |
||
89 | } |
||
90 | |||
101 |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: