| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 59 | private function complete(): bool |
||
| 60 | { |
||
| 61 | $this->optiStatus = new OptiStatus(); |
||
| 62 | |||
| 63 | if (!(new SameBookValidator($this->origin, $this->book))->validate()) { |
||
| 64 | $this->log->info('not same book'); |
||
| 65 | |||
| 66 | return false; |
||
| 67 | } |
||
| 68 | |||
| 69 | (new OuvrageMixComposite($this->origin, $this->book, $this->log, $this->optiStatus)) |
||
| 70 | ->handle(); |
||
| 71 | |||
| 72 | return true; |
||
| 73 | } |
||
| 80 |