private function _processInterfaceStart() {
		$this->_inInterface = true;
		$this->_interfaceLevel = $this->statementStack->count();

		// Check the position of the open curly after the interface declaration
		if ($this->_isActive('interfaceOpenCurly')) {
			$pos = $this->_config->getTestProperty('interfaceOpenCurly', 'position');

			$currentToken = $this->tokenizer->getCurrentToken();
			$previousToken = $this->tokenizer->peekPrvsValidToken();

			if ($pos === NEW_LINE) {
				// The previous token should be on the previous line
				$isPosOk = ($previousToken->line < $currentToken->line);
			} else {
				// The previous token should be on the same line
				$isPosOk = ($previousToken->line === $currentToken->line);
			}

			if (!$isPosOk) {
				$tmp = ($pos === SAME_LINE) ? "the previous line." : "a new line.";
				$msg = $this->_getMessage('LEFT_CURLY_POS', $tmp);
				$this->_writeError('interfaceOpenCurly', $msg);
			}
		}
	}
private function _processInterfaceStart() {
		$this->_inInterface = true;
		$this->_interfaceLevel = $this->statementStack->count();

		// Check the position of the open curly after the interface declaration
		if ($this->_isActive('interfaceOpenCurly')) {
			$pos = $this->_config->getTestProperty('interfaceOpenCurly', 'position');

			$currentToken = $this->tokenizer->getCurrentToken();
			$previousToken = $this->tokenizer->peekPrvsValidToken();

			if ($pos === NEW_LINE) {
				// The previous token should be on the previous line
				$isPosOk = ($previousToken->line < $currentToken->line);
			} else {
				// The previous token should be on the same line
				$isPosOk = ($previousToken->line === $currentToken->line);
			}

			if (!$isPosOk) {
				$tmp = ($pos === SAME_LINE) ? "the previous line." : "a new line.";
				$msg = $this->_getMessage('LEFT_CURLY_POS', $tmp);
				$this->_writeError('interfaceOpenCurly', $msg);
			}
		}
	}
private function _processInterfaceStart ( ) { $ this -> _inInterface = true ; $ this -> _interfaceLevel = $ this -> statementStack -> count ( ) ; // Check the position of the open curly after the interface declaration if ( $ this -> _isActive ( 'interfaceOpenCurly' ) ) { $ pos = $ this -> _config -> getTestProperty ( 'interfaceOpenCurly' , 'position' ) ; $ currentToken = $ this -> tokenizer -> getCurrentToken ( ) ; $ previousToken = $ this -> tokenizer -> peekPrvsValidToken ( ) ; if ( $ pos === NEW_LINE ) { // The previous token should be on the previous line $ isPosOk = ( $ previousToken -> line < $ currentToken -> line ) ; } else { // The previous token should be on the same line $ isPosOk = ( $ previousToken -> line === $ currentToken -> line ) ; } if ( ! $ isPosOk ) { $ tmp = ( $ pos === SAME_LINE ) ? "the previous line." : "a new line." ; $ msg = $ this -> _getMessage ( 'LEFT_CURLY_POS' , $ tmp ) ; $ this -> _writeError ( 'interfaceOpenCurly' , $ msg ) ; } } }
Process the start of a interface.
Process the start of a interface .