Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
34 | 22 | public function __construct( |
|
35 | Collection $collection, |
||
36 | int $type=self::TYPE_FIND, |
||
37 | array $querySettings=[], |
||
38 | array $options=[] |
||
39 | ) { |
||
40 | 22 | $this->collection = $collection; |
|
41 | 22 | $this->querySettings = $querySettings; |
|
42 | 22 | $this->options = $options; |
|
43 | 22 | $this->type = $type; |
|
44 | 22 | } |
|
45 | |||
84 |
The break statement is not necessary if it is preceded for example by a return statement:
If you would like to keep this construct to be consistent with other case statements, you can safely mark this issue as a false-positive.