private function _processSwitchStop() {
		// If we already are in a "case", we remove it from the stack
		if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_CASE || $this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_DEFAULT) {

			// Test if the previous case had a break
			$this->_checkSwitchCaseNeedBreak();

			$this->statementStack->pop();
		}

		$this->_checkSwitchNeedDefault();
	}
private function _processSwitchStop() {
		// If we already are in a "case", we remove it from the stack
		if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_CASE || $this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_DEFAULT) {

			// Test if the previous case had a break
			$this->_checkSwitchCaseNeedBreak();

			$this->statementStack->pop();
		}

		$this->_checkSwitchNeedDefault();
	}
private function _processSwitchStop ( ) { // If we already are in a "case", we remove it from the stack if ( $ this -> statementStack -> getCurrentStackItem ( ) -> type === StatementItem :: TYPE_CASE || $ this -> statementStack -> getCurrentStackItem ( ) -> type === StatementItem :: TYPE_DEFAULT ) { // Test if the previous case had a break $ this -> _checkSwitchCaseNeedBreak ( ) ; $ this -> statementStack -> pop ( ) ; } $ this -> _checkSwitchNeedDefault ( ) ; }
Process the end of a switch block.
Process the end of a switch block .