public function stopPrepend()
    {
        if (empty($this->pushStack)) {
            throw new InvalidArgumentException('Cannot end a prepend operation without first starting one.');
        }

        return tap(array_pop($this->pushStack), function ($last) {
            $this->extendPrepend($last, ob_get_clean());
        });
    }
public function stopPrepend()
    {
        if (empty($this->pushStack)) {
            throw new InvalidArgumentException('Cannot end a prepend operation without first starting one.');
        }

        return tap(array_pop($this->pushStack), function ($last) {
            $this->extendPrepend($last, ob_get_clean());
        });
    }
public function stopPrepend ( ) { if ( empty ( $ this -> pushStack ) ) { throw new InvalidArgumentException ( 'Cannot end a prepend operation without first starting one.' ) ; } return tap ( array_pop ( $ this -> pushStack ) , function ( $ last ) { $ this -> extendPrepend ( $ last , ob_get_clean ( ) ) ; } ) ; }
Stop prepending content into a push section.

@return string

@throws \InvalidArgumentException
Stop prepending content into a push section .