Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
23 | public function correct(Result $result): FixerAbstract |
||
24 | { |
||
25 | $feed = $result->getFeed(); |
||
26 | $response = $result->getResponse(); |
||
27 | |||
28 | if ($response->getLastModified() instanceof \DateTime) { |
||
29 | $this->logger->debug("found last modified: " . $response->getLastModified()->format(\DateTime::RSS)); |
||
30 | $feed->setLastModified($response->getLastModified()); |
||
31 | } |
||
32 | |||
33 | return $this; |
||
34 | } |
||
35 | } |
||
36 |