Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
39 | 3 | public function createElement(\DomDocument $document, NodeInterface $node) |
|
40 | { |
||
41 | 3 | $date = is_null($node->getLastModified()) ? new \DateTime():$node->getLastModified(); |
|
42 | |||
43 | 3 | return $document->createElement( |
|
44 | 3 | $this->getNodeName(), |
|
45 | 3 | $date->format($this->getDefaultFormat()) |
|
46 | 3 | ); |
|
47 | } |
||
48 | } |
||
49 |