| 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 | 9 | public function __construct(Collection $collection, int $type=self::TYPE_FIND, array $filters=[], array $options=[]) |
|
| 43 | { |
||
| 44 | 9 | $this->collection = $collection; |
|
| 45 | 9 | $this->filters = $filters; |
|
| 46 | 9 | $this->options = $options; |
|
| 47 | 9 | $this->type = $type; |
|
| 48 | 9 | } |
|
| 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.