filestack/FilestackSecurity.php
protected function validateOptions($options)
    {
        foreach ($options as $key => $value) {
            if (!in_array($key, $this->allowed_options)) {
                throw new FilestackException("Invalid policy option: $key:$value", 400);
            }
        }

        return true;
    }
protected function validateOptions($options)
    {
        foreach ($options as $key => $value) {
            if (!in_array($key, $this->allowed_options)) {
                throw new FilestackException("Invalid policy option: $key:$value", 400);
            }
        }

        return true;
    }
protected function validateOptions ( $ options ) { foreach ( $ options as $ key => $ value ) { if ( ! in_array ( $ key , $ this -> allowed_options ) ) { throw new FilestackException ( "Invalid policy option: $key:$value" , 400 ) ; } } return true ; }
Validate options are allowed

@param   array   $options    array of options

@throws FilestackException   e.g. policy option not allowed

@return bool
Validate options are allowed