Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function displayResults(OutputStyle $style, $lockFile, array $packages, $showTaggedDev)
 {
     if (defined('JSON_PRETTY_PRINT')) {
         $style->write(json_encode($packages, JSON_PRETTY_PRINT));
     } else {
         $style->write(json_encode($packages));
     }
 }
Exemplo n.º 2
0
 /**
  * {@inheritdoc}
  */
 public function write($messages, $newline = false, $type = self::OUTPUT_NORMAL)
 {
     parent::write($messages, $newline, $type);
     $this->bufferedOutput->write($this->reduceBuffer($messages), $newline, $type);
 }