src/View.php
public function getContents()
    {
        ob_start();

        $callback = $this->hasContext() ? $this->getClosureForContextRender() : $this->callContextRender();

        call_user_func($callback, $this->getFilename(), $this->getData()->toArray());

        return ltrim(ob_get_clean());

    }
public function getContents()
    {
        ob_start();

        $callback = $this->hasContext() ? $this->getClosureForContextRender() : $this->callContextRender();

        call_user_func($callback, $this->getFilename(), $this->getData()->toArray());

        return ltrim(ob_get_clean());

    }
public function getContents ( ) { ob_start ( ) ; $ callback = $ this -> hasContext ( ) ? $ this -> getClosureForContextRender ( ) : $ this -> callContextRender ( ) ; call_user_func ( $ callback , $ this -> getFilename ( ) , $ this -> getData ( ) -> toArray ( ) ) ; return ltrim ( ob_get_clean ( ) ) ; }
Get the contents of View

@return string
Get the contents of View