src/Output/BaseOutput.php
protected function printBoolean(OutputInterface $output, $success, $fail, $value, $line = true)
    {
        if ($value) {
            $message = '<info>' . $success . '</info>';
        } else {
            $message = '<error>' . $fail . '</error>';
        }

        if (false === $line) {
            return $message;
        }

        $output->writeln($message);
    }
protected function printBoolean(OutputInterface $output, $success, $fail, $value, $line = true)
    {
        if ($value) {
            $message = '<info>' . $success . '</info>';
        } else {
            $message = '<error>' . $fail . '</error>';
        }

        if (false === $line) {
            return $message;
        }

        $output->writeln($message);
    }
protected function printBoolean ( OutputInterface $ output , $ success , $ fail , $ value , $ line = true ) { if ( $ value ) { $ message = '<info>' . $ success . '</info>' ; } else { $ message = '<error>' . $ fail . '</error>' ; } if ( false === $ line ) { return $ message ; } $ output -> writeln ( $ message ) ; }
prints a simple boolean.

@param OutputInterface $output
@param string          $success
@param string          $fail
@param bool            $value
@param bool            $line

@return string
prints a simple boolean .