public function isAll(array $types)
    {
        $result = array_filter(array_map([$this, 'is'], $types));

        return count($result) === count($types);
    }
public function isAll(array $types)
    {
        $result = array_filter(array_map([$this, 'is'], $types));

        return count($result) === count($types);
    }
public function isAll ( array $ types ) { $ result = array_filter ( array_map ( [ $ this , 'is' ] , $ types ) ) ; return count ( $ result ) === count ( $ types ) ; }
Check that a request matches all the given types.

Allows you to test multiple types and union the results.
See Request::is() for how to add additional types and the
built-in types.

@param array $types The types to check.
@return bool Success.
@see \Cake\Http\ServerRequest::is()
Check that a request matches all the given types .