Display a summary of the stack that will be created.

@param $output OutputInterface
338308
protected function displayResume(OutputInterface $output)
    {
        $output->write("Creation of a new stack [<info>{$this->collectedData['name']}</info>]", true);
        foreach ($this->collectedData['operations'] as $name => $operation) {
            $output->write(" * Operation [<info>$name</info>] with ".json_encode($operation->options), true);
        }
    }
441539
protected function finishCommand(OutputInterface $output)
    {
        $event = $this->stopStopWatch('command');
        $this
            ->printMessage(
                $output,
                $this->getProjectHeader(),
                'Command finished in ' . $event->getDuration() . ' milliseconds'
            );
        $this->printMessage(
                $output,
                $this->getProjectHeader(),
                'Max memory used: ' . $event->getMemory() . ' bytes'
            );
        $output->writeln('');
    }
1035568
public function showMigratingInfo($output, $level = 0)
    {
        $output->info(
            str_repeat("_",$level) . 'Migrating ' . class_basename($this) . ' ('. $this->id . ' | ' . $this->periodid
            . ') | Study ' . $this->study->name . ' ('. $this->study->id .
            ') | Course ' . $this->course->name . ' ('. $this->course->id .
            ') | Group ' . $this->group->name . ' ('. $this->group->id .
            ') | Person ' . $this->person->name . ' ('. $this->person->id .
            ') ...'
        );
    }
516416
function appendOutput($output) {
		if ($this->finalOutput == '') {
			$this->finalOutput = $output;
		} else {
			$this->finalOutput .= $output;
		}
		
		return $this;
	}
873370
public function setHandler($output)
	{
		$this->_whoops->popHandler();

		if ($output == OutputData::Json)
		{
			$this->_handler = new JsonResponseHandler();
		}
		else if ($output == OutputData::Xml)
		{
			$this->_handler = new XmlResponseHandler();
		}
		else
		{
			$this->_handler = new PrettyPageHandler();
			if (!Context::getInstance()->getDevelopmentStatus())
			{
				$this->_handler->addResourcePath(\WhoopsResources\Resource::getPath());
			}
		}

		$this->_whoops->pushHandler($this->_handler);
	}
441555
public function display ($output = TRUE)
	{
		
		// JSON encode
		
		$response	= json_encode ($this->response);
		
		// Output
		
		if ($output)
		{
			
			// Output headers

			header ('Cache-Control: no-cache, must-revalidate');
			header ('Content-type: application/json; charset=utf-8');
			
			// Output response
			
			echo $response;
			
		}
		
		// Return
		
		return $response;
		
	}
615416
public function showMigratingInfo($output, $level = 0)
    {
        $output->info(
            str_repeat("_",$level) . 'Migrating ' . class_basename($this) . ' ('. $this->id . ')' .
            ' | Start time ' . $this->start_time .
            ' | End time '   . $this->end_time .
            '...'
        );
    }
924386
public function innerCommand($output)
    {
        if ($this->output->isVeryVerbose()) {
            $this->write($output);
        }

        if (!$this->output->isVeryVerbose()) {
            $this->outputBuffer[] = $output;
        }
    }
943860
private function reportChange(OutputInterface $output)
    {
        $this->end = microtime(true);

        $output->writeLn(
            sprintf('[DROID-RESULT] %s', json_encode(array(
                'changed' => $this->change,
                'start' => $this->start,
                'end' => $this->end,
            )))
        );
    }
446264
public function processOutput($output)
	{
		$output=$this->transform($output);
		if($this->purifyOutput)
		{
			$purifier=new CHtmlPurifier;
			$output=$purifier->purify($output);
		}
		parent::processOutput($output);
	}
1289611
public function display()
    {
        if (OutputInterface::VERBOSITY_QUIET === $this->output->getVerbosity()) {
            return;
        }

        if (null === $this->format) {
            $this->setRealFormat($this->internalFormat ?: $this->determineBestFormat());
        }

        $this->overwrite($this->buildLine());
    }
1218738
protected function prepareHeaders($output)
    {
        $keys = $this->exportManager->getExport($this->exportAlias)->getQueryKeys($this->exportData);
        // we want to keep the order of the first row. So we will iterate on the first row of the results
        $first_row = count($this->result) > 0 ? $this->result[0] : array();
        $header_line = array();
        
        if ($this->formatterData['numerotation'] === true) {
                $header_line[] = $this->translator->trans('Number');
        }
        
        foreach ($first_row as $key => $value) {
            $header_line[] = $this->getLabel($key, '_header');
        }
        
        if (count($header_line) > 0) {
            fputcsv($output, $header_line);
        }
    }
711610
protected function showDebugger(array $output)
    {
        $output['queries'] = $this->connection->getQueryLog();
        $output['input']   = $this->request->all();

        return $output;
    }
364964
protected function reportErrors($output)
    {
        foreach ($output as $error) {
            $message = 'Class ' . $error['class'] . ' is missing a docblock.';
            $severity = PHPCI\Model\BuildError::SEVERITY_LOW;

            if ($error['type'] == 'method') {
                $message = $error['class'] . '::' . $error['method'] . ' is missing a docblock.';
                $severity = PHPCI\Model\BuildError::SEVERITY_NORMAL;
            }

            $this->build->reportError(
                $this->phpci,
                'php_docblock_checker',
                $message,
                $severity,
                $error['file'],
                $error['line']
            );
        }
    }
895450
public function render(OutputInterface $output, ResultCollection $results)
    {
        $data = array_map(function (array $result) {
            return [
                'file' => $result[0],
                'commits' => $result[1],
                'complexity' => $result[2],
                'score' => $result[3],
            ];
        }, $results->toArray());

        $output->write(json_encode($data));
    }
854520
public function setOutput(OutputInterface $output)
    {
        $this->output = $output;
        $this->stdErr = $output instanceof ConsoleOutputInterface
            ? $output->getErrorOutput()
            : $output;
    }
1037064
public function addOutput($output) {
        $output = $this->outputNormalizer->normalize([$output])[0];

        $this->outputs[] = $output;

        return $this;
    }