| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | 4 | public function validateConsistency(Interval $interval): InconsistenciesResult |
|
| 26 | { |
||
| 27 | 4 | if ($this->fastConsistencyValidator->validateConsistency($interval)) { |
|
| 28 | 4 | return new InconsistenciesResult(); |
|
| 29 | } |
||
| 30 | |||
| 31 | 3 | $result = new InconsistenciesResult(); |
|
| 32 | 3 | foreach ($this->intervalManager->divideForSeeking($interval) as $interval) { |
|
| 33 | 3 | $result->includeFrom($this->inconsistencySeeker->seekForInconsistencies($interval)); |
|
| 34 | } |
||
| 35 | |||
| 36 | 3 | return $result; |
|
| 37 | } |
||
| 38 | } |
||
| 39 |