src/Formatter/Pretty.php
public function print()
    {
        // If there is no hints, print a message for that.
        if (count($this->hints) === 0) {
            $this->output->writeln('<fg=black;bg=green>Awesome! There is nothing from me to teach you!</>');
            $this->output->write("\n");
        } else {
            foreach ($this->hints as $hint) {
                $this->output->writeln('<info>'.$hint->filename.':'.$hint->lineno.'</>');
                $this->output->writeln("\t".$hint->type.': '.$hint->message." [$hint->link]");
                $this->output->write("\n");
            }
        }

        $this->output->writeln(count($this->files).' files checked, '.count($this->hints).' hints detected.');
    }
public function print()
    {
        // If there is no hints, print a message for that.
        if (count($this->hints) === 0) {
            $this->output->writeln('<fg=black;bg=green>Awesome! There is nothing from me to teach you!</>');
            $this->output->write("\n");
        } else {
            foreach ($this->hints as $hint) {
                $this->output->writeln('<info>'.$hint->filename.':'.$hint->lineno.'</>');
                $this->output->writeln("\t".$hint->type.': '.$hint->message." [$hint->link]");
                $this->output->write("\n");
            }
        }

        $this->output->writeln(count($this->files).' files checked, '.count($this->hints).' hints detected.');
    }
public function print ( ) { // If there is no hints, print a message for that. if ( count ( $ this -> hints ) === 0 ) { $ this -> output -> writeln ( '<fg=black;bg=green>Awesome! There is nothing from me to teach you!</>' ) ; $ this -> output -> write ( "\n" ) ; } else { foreach ( $ this -> hints as $ hint ) { $ this -> output -> writeln ( '<info>' . $ hint -> filename . ':' . $ hint -> lineno . '</>' ) ; $ this -> output -> writeln ( "\t" . $ hint -> type . ': ' . $ hint -> message . " [$hint->link]" ) ; $ this -> output -> write ( "\n" ) ; } } $ this -> output -> writeln ( count ( $ this -> files ) . ' files checked, ' . count ( $ this -> hints ) . ' hints detected.' ) ; }
Print hints to the console throught output interface of symfony console.

If there is no hints, a message of blessing will be displayed.

@return void
Print hints to the console throught output interface of symfony console .