Neos.Media/Classes/Validator/ImageTypeValidator.php
protected function validateOptions()
    {
        if (!isset($this->options['allowedTypes'])) {
            throw new InvalidValidationOptionsException('The option "allowedTypes" was not specified.', 1327947194);
        } elseif (!is_array($this->options['allowedTypes']) || $this->options['allowedTypes'] === []) {
            throw new InvalidValidationOptionsException('The option "allowedTypes" must be an array with at least one item.', 1327947224);
        }
    }
protected function validateOptions()
    {
        if (!isset($this->options['allowedTypes'])) {
            throw new InvalidValidationOptionsException('The option "allowedTypes" was not specified.', 1327947194);
        } elseif (!is_array($this->options['allowedTypes']) || $this->options['allowedTypes'] === []) {
            throw new InvalidValidationOptionsException('The option "allowedTypes" must be an array with at least one item.', 1327947224);
        }
    }
protected function validateOptions ( ) { if ( ! isset ( $ this -> options [ 'allowedTypes' ] ) ) { throw new InvalidValidationOptionsException ( 'The option "allowedTypes" was not specified.' , 1327947194 ) ; } elseif ( ! is_array ( $ this -> options [ 'allowedTypes' ] ) || $ this -> options [ 'allowedTypes' ] === [ ] ) { throw new InvalidValidationOptionsException ( 'The option "allowedTypes" must be an array with at least one item.' , 1327947224 ) ; } }
Checks if this validator is correctly configured

@return void
@throws InvalidValidationOptionsException if the configured validation options are incorrect
Checks if this validator is correctly configured