Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.2559 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
22 | 8 | public function __construct($resource = false) |
|
23 | { |
||
24 | 8 | if (false !== $resource) { |
|
25 | $this->setResource($resource); |
||
1 ignored issue
–
show
|
|||
26 | } |
||
27 | 8 | } |
|
28 | |||
65 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.