PhpGitHooks\Module\Git\Contract\Response\BadJobLogoResponse::paint PHP Method

paint() public static method

public static paint ( string $message ) : string
$message string
return string
    public static function paint($message)
    {
        return sprintf("<fg=red;options=bold;>\n                @@@@@@@@@@@@@@@\n             @@@@@@@@@@@@@@@@@@@@\n           @@@@@@@@  @@@@@  @@@@@@@\n          @@@@@@@@@@  @@@  @@@@@@@@@@\n         @@@@@@@@@@@@  @  @@@@@@@@@@@@\n        @@@@@@@@@@@  @@@@@  @@@@@@@@@@@\n       @@@@@@@@@@@@  @@@@@  @@@@@@@@@@@@\n       @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n       @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n        @@@@@@@@@@@@       @@@@@@@@@@@@\n         @@@@@@@@@@  @@@@@  @@@@@@@@@@\n          @@@@@@@@  @@@@@@@  @@@@@@@@\n           @@@@@@@@@@@@@@@@@@@@@@@@@\n             @@@@@@@@@@@@@@@@@@@@@\n                @@@@@@@@@@@@@@@\n        </fg=red;options=bold;>\n\n        <fg=white;bg=red;options=bold;>   %s    </fg=white;bg=red;options=bold;>\n", $message);
    }

Usage Example

Beispiel #1
0
 /**
  * @param bool   $jsonFile
  * @param bool   $lockFile
  * @param string $errorMessage
  *
  * @throws ComposerFilesNotFoundException *
  */
 private function executeTool($jsonFile, $lockFile, $errorMessage)
 {
     if (true === $jsonFile && false === $lockFile) {
         $this->output->writeln($this->outputMessage->getFailMessage());
         $this->output->writeln(BadJobLogoResponse::paint($errorMessage));
         throw new ComposerFilesNotFoundException();
     }
 }
All Usage Examples Of PhpGitHooks\Module\Git\Contract\Response\BadJobLogoResponse::paint
BadJobLogoResponse