Conditions | 3 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
23 | public function correct(FeedInterface $feed) : FixerAbstract |
||
24 | { |
||
25 | $date = new \DateTime('@0'); |
||
26 | if (is_null($feed->getLastModified()) || $feed->getLastModified() == $date) { |
||
27 | $this->logger->notice("correct last modified date for feed {$feed->getTitle()}"); |
||
28 | $feed->setLastModified( |
||
29 | $this->searchLastModified($feed) |
||
30 | ); |
||
31 | } |
||
32 | |||
33 | return $this; |
||
34 | } |
||
35 | |||
53 |