Neos.Fusion/Classes/Core/Parser.php
protected function parseConfinementBlock($fusionLine, $isOpeningConfinement)
    {
        if ($isOpeningConfinement) {
            $result = trim(trim(trim($fusionLine), '{'));
            array_push($this->currentObjectPathStack, $this->getCurrentObjectPathPrefix() . $result);
        } else {
            if (count($this->currentObjectPathStack) < 1) {
                throw new Fusion\Exception('Unexpected closing confinement without matching opening confinement. Check the number of your curly braces.', 1181575973);
            }
            array_pop($this->currentObjectPathStack);
        }
    }
protected function parseConfinementBlock($fusionLine, $isOpeningConfinement)
    {
        if ($isOpeningConfinement) {
            $result = trim(trim(trim($fusionLine), '{'));
            array_push($this->currentObjectPathStack, $this->getCurrentObjectPathPrefix() . $result);
        } else {
            if (count($this->currentObjectPathStack) < 1) {
                throw new Fusion\Exception('Unexpected closing confinement without matching opening confinement. Check the number of your curly braces.', 1181575973);
            }
            array_pop($this->currentObjectPathStack);
        }
    }
protected function parseConfinementBlock ( $ fusionLine , $ isOpeningConfinement ) { if ( $ isOpeningConfinement ) { $ result = trim ( trim ( trim ( $ fusionLine ) , '{' ) ) ; array_push ( $ this -> currentObjectPathStack , $ this -> getCurrentObjectPathPrefix ( ) . $ result ) ; } else { if ( count ( $ this -> currentObjectPathStack ) < 1 ) { throw new Fusion \ Exception ( 'Unexpected closing confinement without matching opening confinement. Check the number of your curly braces.' , 1181575973 ) ; } array_pop ( $ this -> currentObjectPathStack ) ; } }
Parses a line which opens or closes a confinement

@param string $fusionLine One line of Fusion code
@param boolean $isOpeningConfinement Set to true, if an opening confinement is to be parsed and false if it's a closing confinement.
@return void
@throws Fusion\Exception
Parses a line which opens or closes a confinement