| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 2 | public function correct(FeedInterface $feed) |
|
| 24 | { |
||
| 25 | 2 | if (is_null($feed->getLastModified())) { |
|
| 26 | 1 | $this->logger->notice("correct last modified date for feed {$feed->getTitle()}"); |
|
| 27 | 1 | $feed->setLastModified( |
|
| 28 | 1 | $this->searchLastModified($feed) |
|
| 29 | 1 | ); |
|
| 30 | 1 | } |
|
| 31 | |||
| 32 | 2 | return $this; |
|
| 33 | } |
||
| 34 | |||
| 52 |