private function _processParenthesisClose($token) {
		$this->statementStack->getCurrentStackItem()->openParentheses -= 1;

		// Decrease the number of opened brackets
		if ($this->_inFuncCall) {
			$this->_fcLeftParenthesis -= 1;
		} elseif ($this->_inControlStatement || $this->_inFunctionStatement) {
			$this->_csLeftParenthesis -= 1;
		}
		// If 0 we are not in the call anymore
		if ($this->_fcLeftParenthesis === 0) {
			$this->_inFuncCall = false;
			array_pop($this->_currentFuncCall);
		}
		// If 0 we are not in the statement anymore
		if ($this->_csLeftParenthesis === 0) {
			if ($this->_inControlStatement) {
				$this->_inControlStatement = false;
				$this->_justAfterControlStmt = true;
				$this->_checkNeedBraces();
			} elseif ($this->_inFunctionStatement && !$this->_inInterface) {
				$this->_inFunctionStatement = false;
				$this->_justAfterFuncStmt = true;
			}
		}

		// We the count arrive to 0 we probably have something to do
		if ($this->statementStack->getCurrentStackItem()->openParentheses === 0) {

			// We are in a array declaration, we unstack
			if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_ARRAY && $this->statementStack->getCurrentStackItem()->name !== 'square_bracket_open') {
				$this->statementStack->pop();
			}
		}
	}
private function _processParenthesisClose($token) {
		$this->statementStack->getCurrentStackItem()->openParentheses -= 1;

		// Decrease the number of opened brackets
		if ($this->_inFuncCall) {
			$this->_fcLeftParenthesis -= 1;
		} elseif ($this->_inControlStatement || $this->_inFunctionStatement) {
			$this->_csLeftParenthesis -= 1;
		}
		// If 0 we are not in the call anymore
		if ($this->_fcLeftParenthesis === 0) {
			$this->_inFuncCall = false;
			array_pop($this->_currentFuncCall);
		}
		// If 0 we are not in the statement anymore
		if ($this->_csLeftParenthesis === 0) {
			if ($this->_inControlStatement) {
				$this->_inControlStatement = false;
				$this->_justAfterControlStmt = true;
				$this->_checkNeedBraces();
			} elseif ($this->_inFunctionStatement && !$this->_inInterface) {
				$this->_inFunctionStatement = false;
				$this->_justAfterFuncStmt = true;
			}
		}

		// We the count arrive to 0 we probably have something to do
		if ($this->statementStack->getCurrentStackItem()->openParentheses === 0) {

			// We are in a array declaration, we unstack
			if ($this->statementStack->getCurrentStackItem()->type === StatementItem::TYPE_ARRAY && $this->statementStack->getCurrentStackItem()->name !== 'square_bracket_open') {
				$this->statementStack->pop();
			}
		}
	}
private function _processParenthesisClose ( $ token ) { $ this -> statementStack -> getCurrentStackItem ( ) -> openParentheses -= 1 ; // Decrease the number of opened brackets if ( $ this -> _inFuncCall ) { $ this -> _fcLeftParenthesis -= 1 ; } elseif ( $ this -> _inControlStatement || $ this -> _inFunctionStatement ) { $ this -> _csLeftParenthesis -= 1 ; } // If 0 we are not in the call anymore if ( $ this -> _fcLeftParenthesis === 0 ) { $ this -> _inFuncCall = false ; array_pop ( $ this -> _currentFuncCall ) ; } // If 0 we are not in the statement anymore if ( $ this -> _csLeftParenthesis === 0 ) { if ( $ this -> _inControlStatement ) { $ this -> _inControlStatement = false ; $ this -> _justAfterControlStmt = true ; $ this -> _checkNeedBraces ( ) ; } elseif ( $ this -> _inFunctionStatement && ! $ this -> _inInterface ) { $ this -> _inFunctionStatement = false ; $ this -> _justAfterFuncStmt = true ; } } // We the count arrive to 0 we probably have something to do if ( $ this -> statementStack -> getCurrentStackItem ( ) -> openParentheses === 0 ) { // We are in a array declaration, we unstack if ( $ this -> statementStack -> getCurrentStackItem ( ) -> type === StatementItem :: TYPE_ARRAY && $ this -> statementStack -> getCurrentStackItem ( ) -> name !== 'square_bracket_open' ) { $ this -> statementStack -> pop ( ) ; } } }
Launched when a ) sign is encountered.

@param TokenInfo $token
the current token
Launched when a ) sign is encountered .