src/Command/ValidateCommand.php
protected function writeValidity($output, $message, $isValid = null) {
        if ($this->firstValidityWrite) {
            $output->writeln('');
            $this->firstValidityWrite = false;
        }

        if (is_bool($isValid)) {
            $message = sprintf(
                '%s - %s',
                $isValid ? '<fg=green>Valid</>' : '<fg=red>Invalid</>',
                $message
            );
        }

        $output->writeln($message);
    }
protected function writeValidity($output, $message, $isValid = null) {
        if ($this->firstValidityWrite) {
            $output->writeln('');
            $this->firstValidityWrite = false;
        }

        if (is_bool($isValid)) {
            $message = sprintf(
                '%s - %s',
                $isValid ? '<fg=green>Valid</>' : '<fg=red>Invalid</>',
                $message
            );
        }

        $output->writeln($message);
    }
protected function writeValidity ( $ output , $ message , $ isValid = null ) { if ( $ this -> firstValidityWrite ) { $ output -> writeln ( '' ) ; $ this -> firstValidityWrite = false ; } if ( is_bool ( $ isValid ) ) { $ message = sprintf ( '%s - %s' , $ isValid ? '<fg=green>Valid</>' : '<fg=red>Invalid</>' , $ message ) ; } $ output -> writeln ( $ message ) ; }
Write validity message for tests
The purpose of this method is to write a new line for the first
validity related message

@param OutputInterface $output
@param string $message
@param bool|null $isValid
Write validity message for tests The purpose of this method is to write a new line for the first validity related message