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); } }