| 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 | 20 | public function __construct( |
|
| 35 | Collection $collection, |
||
| 36 | int $type=self::TYPE_FIND, |
||
| 37 | array $querySettings=[], |
||
| 38 | array $options=[] |
||
| 39 | ) { |
||
| 40 | 20 | $this->collection = $collection; |
|
| 41 | 20 | $this->querySettings = $querySettings; |
|
| 42 | 20 | $this->options = $options; |
|
| 43 | 20 | $this->type = $type; |
|
| 44 | 20 | } |
|
| 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.