| Total Complexity | 7 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | class Mailcode_Parser_Safeguard_Formatter_SingleLines extends Mailcode_Parser_Safeguard_Formatter |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private $eol; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var int |
||
| 33 | */ |
||
| 34 | private $eolLength; |
||
| 35 | |||
| 36 | protected function initFormatting(string $subject) : string |
||
| 37 | { |
||
| 38 | $this->eol = $this->resolveNewlineChar($subject); |
||
| 39 | $this->eolLength = strlen($this->eol); |
||
| 40 | |||
| 41 | return $subject; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function getEOLChar() : string |
||
| 45 | { |
||
| 46 | return $this->eol; |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getEOLLength() : int |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * We only use placeholders that contain commands that do |
||
| 56 | * not generate contents, since these are the only ones |
||
| 57 | * that may need adjusting. |
||
| 58 | * |
||
| 59 | * @return \Mailcode\Mailcode_Parser_Safeguard_Placeholder[] |
||
| 60 | */ |
||
| 61 | protected function filterPlaceholders() |
||
| 76 | } |
||
| 77 | |||
| 78 | public function getReplaceNeedle(Mailcode_Parser_Safeguard_Placeholder $placeholder) : string |
||
| 81 | } |
||
| 82 | } |
||
| 83 | |||
| 84 |