public function acceptsAnyContentType()
    {
        $acceptable = $this->getAcceptableContentTypes();

        return count($acceptable) === 0 || (
            isset($acceptable[0]) && ($acceptable[0] === '*/*' || $acceptable[0] === '*')
        );
    }
public function acceptsAnyContentType()
    {
        $acceptable = $this->getAcceptableContentTypes();

        return count($acceptable) === 0 || (
            isset($acceptable[0]) && ($acceptable[0] === '*/*' || $acceptable[0] === '*')
        );
    }
public function acceptsAnyContentType ( ) { $ acceptable = $ this -> getAcceptableContentTypes ( ) ; return count ( $ acceptable ) === 0 || ( isset ( $ acceptable [ 0 ] ) && ( $ acceptable [ 0 ] === '*/*' || $ acceptable [ 0 ] === '*' ) ) ; }
Determine if the current request accepts any content type.

@return bool
Determine if the current request accepts any content type .