src/Helper/Placeholder.php
public function captureEnd(array $params = [])
    {
        if (! $this->captureStarted) {
            throw new RuntimeException('Capture has not been started.');
        }
        $params['capture'] = ob_get_clean();
        $this->attach($params);
        $this->captureStarted = false;

        return $this;
    }
public function captureEnd(array $params = [])
    {
        if (! $this->captureStarted) {
            throw new RuntimeException('Capture has not been started.');
        }
        $params['capture'] = ob_get_clean();
        $this->attach($params);
        $this->captureStarted = false;

        return $this;
    }
public function captureEnd ( array $ params = [ ] ) { if ( ! $ this -> captureStarted ) { throw new RuntimeException ( 'Capture has not been started.' ) ; } $ params [ 'capture' ] = ob_get_clean ( ) ; $ this -> attach ( $ params ) ; $ this -> captureStarted = false ; return $ this ; }
Ends the capture.

@param array $params Optional; the capture parameters

@throws \RuntimeException If the capture has not been started

@return self
Ends the capture .