private function setupMessageHook(Config\Hook $config) : void
    {
        $answer = $this->io->ask(
            '  <info>Do you want to validate your commit messages?</info> <comment>[y,n]</comment> ',
            'n'
        );

        if (IOUtil::answerToBool($answer)) {
            $call    = '\\CaptainHook\\App\\Hook\\Message\\Action\\Beams';
            $options = ['subjectLength' => 50, 'bodyLineLength' => 72];
            $config->addAction(new Config\Action($call, $options));
        }
    }
private function setupMessageHook(Config\Hook $config) : void
    {
        $answer = $this->io->ask(
            '  <info>Do you want to validate your commit messages?</info> <comment>[y,n]</comment> ',
            'n'
        );

        if (IOUtil::answerToBool($answer)) {
            $call    = '\\CaptainHook\\App\\Hook\\Message\\Action\\Beams';
            $options = ['subjectLength' => 50, 'bodyLineLength' => 72];
            $config->addAction(new Config\Action($call, $options));
        }
    }
private function setupMessageHook ( Config \ Hook $ config ) : void { $ answer = $ this -> io -> ask ( '  <info>Do you want to validate your commit messages?</info> <comment>[y,n]</comment> ' , 'n' ) ; if ( IOUtil :: answerToBool ( $ answer ) ) { $ call = '\\CaptainHook\\App\\Hook\\Message\\Action\\Beams' ; $ options = [ 'subjectLength' => 50 , 'bodyLineLength' => 72 ] ; $ config -> addAction ( new Config \ Action ( $ call , $ options ) ) ; } }
Setup the commit message hook

@param  \CaptainHook\App\Config\Hook $config
@return void
@throws \Exception
Setup the commit message hook