protected function ensureBlankLine() { if (!$this->writer->endsWith("\n\n") && strlen($this->writer->rtrim()->getContent()) > 0) { $this->writer->writeln(); } }