| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __invoke(RequestException $exception, $index) |
||
| 25 | { |
||
| 26 | $crawlUrl = $this->crawlQueue->getUrlById($index); |
||
| 27 | |||
| 28 | foreach ($this->crawlObservers as $crawlObserver) { |
||
| 29 | $crawlObserver->crawlFailed( |
||
| 30 | $crawlUrl->url, |
||
| 31 | $exception, |
||
| 32 | $crawlUrl->foundOnUrl |
||
| 33 | ); |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 |