Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
42 | 11 | public function __construct(Collection $collection, int $type=self::TYPE_FIND, array $filters=[], array $options=[]) |
|
43 | { |
||
44 | 11 | $this->collection = $collection; |
|
45 | 11 | $this->filters = $filters; |
|
46 | 11 | $this->options = $options; |
|
47 | 11 | $this->type = $type; |
|
48 | 11 | } |
|
49 | |||
85 |
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.