src/SignatureVerifier.php
private static function paramValidator($param, $type)
    {
        $allowedTypes = explode('|', $type);

        foreach ($allowedTypes as $allowedType) {
            $validationFunction = 'is_' . $allowedType;
            if ($validationFunction($param)) {
                return true;
            }
        }

        return false;
    }
private static function paramValidator($param, $type)
    {
        $allowedTypes = explode('|', $type);

        foreach ($allowedTypes as $allowedType) {
            $validationFunction = 'is_' . $allowedType;
            if ($validationFunction($param)) {
                return true;
            }
        }

        return false;
    }
private static function paramValidator ( $ param , $ type ) { $ allowedTypes = explode ( '|' , $ type ) ; foreach ( $ allowedTypes as $ allowedType ) { $ validationFunction = 'is_' . $ allowedType ; if ( $ validationFunction ( $ param ) ) { return true ; } } return false ; }
Validates the type of a single parameter

@param mixed     $param  Parameter to validate
@param string    $type   The allowed type/s of the parameter. Pipe delimiter for multiple values

@return boolean
Validates the type of a single parameter