PhpGitHooks\Module\Configuration\Domain\PhpCsStandard::guard PHP Method

guard() protected method

protected guard ( string $value ) : boolean | void
$value string
return boolean | void
    protected function guard($value)
    {
        parent::guard($value);
        $standard = ['PSR1', 'PSR2', 'PHPCS', 'MySource', 'Zend', 'Squiz', 'PEAR'];
        if (false === in_array($value, $standard)) {
            throw new InvalidPhpCsStandardException($value);
        }
    }
PhpCsStandard