src/Http/Response.php
public function prepareContent()
    {
        $content = $this->content;

        if ($content instanceof Renderable) {
            $content = $content->render();
        } else if ($this->shouldBeJson($content)) {
            $content = $this->toJson($content);
        }

        return $content;
    }
public function prepareContent()
    {
        $content = $this->content;

        if ($content instanceof Renderable) {
            $content = $content->render();
        } else if ($this->shouldBeJson($content)) {
            $content = $this->toJson($content);
        }

        return $content;
    }
public function prepareContent ( ) { $ content = $ this -> content ; if ( $ content instanceof Renderable ) { $ content = $ content -> render ( ) ; } else if ( $ this -> shouldBeJson ( $ content ) ) { $ content = $ this -> toJson ( $ content ) ; } return $ content ; }
Prepare content to be printed out

@return string
Prepare content to be printed out