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

        $last = array_pop($this->pushStack);

        $this->extendPush($last, ob_get_clean());

        return $last;
    }
public function stopPush()
    {
        if (empty($this->pushStack)) {
            throw new \InvalidArgumentException('Cannot end a section without first starting one.');
        }

        $last = array_pop($this->pushStack);

        $this->extendPush($last, ob_get_clean());

        return $last;
    }
public function stopPush ( ) { if ( empty ( $ this -> pushStack ) ) { throw new \ InvalidArgumentException ( 'Cannot end a section without first starting one.' ) ; } $ last = array_pop ( $ this -> pushStack ) ; $ this -> extendPush ( $ last , ob_get_clean ( ) ) ; return $ last ; }
Stop injecting content into a push section.

@return string
@throws \InvalidArgumentException
Stop injecting content into a push section .