Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
58 | 3 | public function execute() { |
|
59 | |||
60 | 3 | $groupIds = array(); |
|
61 | |||
62 | 3 | foreach ( $this->options as $name => $value ) { |
|
63 | 2 | if ( strpos( $name, 'swl_watchgroup_' ) === 0 && $value ) { |
|
64 | 2 | $groupIds[] = (int)substr( $name, strrpos( $name, '_' ) + 1 ); |
|
65 | } |
||
66 | } |
||
67 | |||
68 | 3 | return $this->performUpdate( $groupIds ); |
|
69 | } |
||
70 | |||
79 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..