protected function shouldUsePostData()
    {
        if (!isset($this->postData)) {
            return false;
        }
        
        $contentType = $this->getContentType();
        
        return
            in_array($contentType, ['application/x-www-form-urlencoded', 'multipart/form-data']) ||
            empty($contentType) && !array_key_exists('SERVER_PROTOCOL', $this->getServerParams());
    }
protected function shouldUsePostData()
    {
        if (!isset($this->postData)) {
            return false;
        }
        
        $contentType = $this->getContentType();
        
        return
            in_array($contentType, ['application/x-www-form-urlencoded', 'multipart/form-data']) ||
            empty($contentType) && !array_key_exists('SERVER_PROTOCOL', $this->getServerParams());
    }
protected function shouldUsePostData ( ) { if ( ! isset ( $ this -> postData ) ) { return false ; } $ contentType = $ this -> getContentType ( ) ; return in_array ( $ contentType , [ 'application/x-www-form-urlencoded' , 'multipart/form-data' ] ) || empty ( $ contentType ) && ! array_key_exists ( 'SERVER_PROTOCOL' , $ this -> getServerParams ( ) ) ; }
Check if we should use post data rather than parsing the body

@return boolean
Check if we should use post data rather than parsing the body