src/Response/LushResponse.php
protected function formatContent($content)
    {
        if ($this->request->method == 'HEAD') {
            return (object) $this->headers;
        }

        if ($this->isXml()) {
            return json_decode($this->parseXml($content));
        }

        if ($this->isJson()) {
            return json_decode($content);
        }
    }
protected function formatContent($content)
    {
        if ($this->request->method == 'HEAD') {
            return (object) $this->headers;
        }

        if ($this->isXml()) {
            return json_decode($this->parseXml($content));
        }

        if ($this->isJson()) {
            return json_decode($content);
        }
    }
protected function formatContent ( $ content ) { if ( $ this -> request -> method == 'HEAD' ) { return ( object ) $ this -> headers ; } if ( $ this -> isXml ( ) ) { return json_decode ( $ this -> parseXml ( $ content ) ) ; } if ( $ this -> isJson ( ) ) { return json_decode ( $ content ) ; } }
format content.

@param $content

@return mixed
format content .