Adds a line to the STDOUT stream.

@internal

@param string $line The line to append
342079
public function addOutput($line)
    {
        $this->lastOutputTime = microtime(true);

        fseek($this->stdout, 0, SEEK_END);
        fwrite($this->stdout, $line);
        fseek($this->stdout, $this->incrementalOutputOffset);
    }
1302715
private function appendLine(?string $line, bool $trim): void
  {
    if ($line===null) return;

    if ($trim) $line = trim($line);

    $this->lines[] = $line;
  }
329308
public function addErrorOutput($line)
    {
        $this->lastOutputTime = microtime(true);

        fseek($this->stderr, 0, SEEK_END);
        fwrite($this->stderr, $line);
        fseek($this->stderr, $this->incrementalErrorOutputOffset);
    }
551890
private function writeLine($line)
    {
        $this->text .= str_repeat(' ', $this->indent * 4);
        $this->text .= $line;
        $this->text .= PHP_EOL;
    }
488371
function _writeln($line)
    {
        /* Add this line to our output buffer. */
        $this->_buffer[] = $line;

        /* Buffer the output until this page's headers have been sent. */
        if (!headers_sent()) {
            return;
        }

        /* If we haven't already opened the output window, do so now. */
        if (!$this->_opened && !$this->open()) {
            return;
        }

        /* Drain the buffer to the output window. */
        $this->_drainBuffer();
    }
542715
public function logNotice($line, $args = self::NO_ARGUMENTS)
	{
        $this->log($line, self::NOTICE, $args);
    }
1284618
public function appendLines($lines, $indent = 0)
    {
        foreach ($lines as $line) {
            $this->appendLine($line, $indent);
        }
    }
267673
public void addLine(String line) {
        int sep = line.indexOf('=');
        if(sep > 0) {
            put(line.substring(0,sep),line.substring(sep+1));
        }
    }
834891
public function addLine(string $line): Source
    {
        if (strpos($line, "\n") !== false) {
            throw new MultilineException(
                "New line character is forbidden in addLine method argument"
            );
        }

        $this->lines[] = $line;

        return $this;
    }
589854
public function debug(int $line, string $src)
    {
        $this->line = $line;
        $this->src = $src;
    }
998718
protected function line($text)
    {
        if($this->console) {
            $this->console->line($text);
        }

        if($this->logger) {
            $this->logger->line($text);
        }
    }
1152340
public function writeLineF($line, $args)
    {
        $args = func_get_args();
        if (count($args) < 2) {
            throw new \OutOfBoundsException('Missing argument #2');
        }

        return $this->writeLine(vsprintf(array_shift($args), $args));
    }
853455
public function logFatal($line, $args = self::NO_ARGUMENTS)
	{
        $this->log($line, self::FATAL, $args);
    }
950065
def insert_line(self, line):
        """"""
        if self.current_block is not None:
            self.current_block.append(line)
        else:
            self.header.append(line)
1309707
protected function outputInProgress(string $line): void {
    if ($this->progress) {
      $this->progress->clear();
      $this->getOutput()->writeln($line);
      $this->progress->display();
    }
  }
461131
public function removeLine(int $line): void
    {
        foreach ($this->file->getTokens() as $tagPtr => $tagToken) {
            if ($tagToken['line'] !== $line) {
                continue;
            }

            $this->fixer->replaceToken($tagPtr, '');

            if ($tagToken['line'] > $line) {
                break;
            }
        }
    }
779380
protected function addYamlFrontmatter($lines)
    {
        $text = implode("\n", $lines);
        $parsed = $this->parseYaml($text);

        if (!is_array($parsed)) {
            $parsed = [$parsed];
        }

        $this->frontmatter = array_merge($this->frontmatter, $parsed);
    }