Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 7 | ||
Bugs | 1 | Features | 4 |
1 | <?php |
||
49 | 31 | public function __construct(Rule $rule, $needRoleName, $needResourceName) |
|
50 | { |
||
51 | 31 | static $idCountRuleResultSimpleAcl = 1; |
|
52 | |||
53 | 31 | $this->id = $idCountRuleResultSimpleAcl++; |
|
|
|||
54 | 31 | $this->rule = $rule; |
|
55 | 31 | $this->needRoleName = $needRoleName; |
|
56 | 31 | $this->needResourceName = $needResourceName; |
|
57 | 31 | } |
|
58 | |||
120 |
This check looks for assignments to scalar types that may be of the wrong type.
To ensure the code behaves as expected, it may be a good idea to add an explicit type cast.