public function stop()
    {
        if (!$this->openSlots) {
            throw new \LogicException('No slot started.');
        }

        $name = array_pop($this->openSlots);

        $this->slots[$name] = ob_get_clean();
    }
public function stop()
    {
        if (!$this->openSlots) {
            throw new \LogicException('No slot started.');
        }

        $name = array_pop($this->openSlots);

        $this->slots[$name] = ob_get_clean();
    }
public function stop ( ) { if ( ! $ this -> openSlots ) { throw new \ LogicException ( 'No slot started.' ) ; } $ name = array_pop ( $ this -> openSlots ) ; $ this -> slots [ $ name ] = ob_get_clean ( ) ; }
Stops a slot.

@throws \LogicException if no slot has been started
Stops a slot .