| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | class NoContentTagToString extends TagToString |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @param ChangeText $text |
||
| 22 | */ |
||
| 23 | 1 | public function getAddedDescription(ChangeText $text): void |
|
| 24 | { |
||
| 25 | 1 | $text->characters(\sprintf('%s %s ', $this->getChangedTo(), \mb_strtolower($this->getArticle()))); |
|
| 26 | 1 | $text->startElement('b'); |
|
| 27 | 1 | $text->characters(\mb_strtolower($this->getDescription())); |
|
| 28 | 1 | $text->endElement('b'); |
|
| 29 | |||
| 30 | 1 | $this->addAttributes($text, $this->node->getAttributes()); |
|
| 31 | 1 | $text->characters('.'); |
|
| 32 | 1 | } |
|
| 33 | |||
| 34 | /** |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | 1 | private function getChangedTo(): string |
|
| 38 | { |
||
| 39 | 1 | return $this->getString('diff-changedto'); |
|
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @param ChangeText $text |
||
| 44 | */ |
||
| 45 | 1 | public function getRemovedDescription(ChangeText $text): void |
|
| 54 | 1 | } |
|
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | 1 | private function getChangedFrom(): string |
|
| 64 |