private function _processClassStart() {
		$this->_inClass = true;
		$this->_classLevel = $this->statementStack->count();

		// Check the position of the open curly after the class declaration
		if ($this->_isActive('classOpenCurly')) {
			$pos = $this->_config->getTestProperty('classOpenCurly', '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('classOpenCurly', $msg);
			}
		}
	}
private function _processClassStart() {
		$this->_inClass = true;
		$this->_classLevel = $this->statementStack->count();

		// Check the position of the open curly after the class declaration
		if ($this->_isActive('classOpenCurly')) {
			$pos = $this->_config->getTestProperty('classOpenCurly', '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('classOpenCurly', $msg);
			}
		}
	}
private function _processClassStart ( ) { $ this -> _inClass = true ; $ this -> _classLevel = $ this -> statementStack -> count ( ) ; // Check the position of the open curly after the class declaration if ( $ this -> _isActive ( 'classOpenCurly' ) ) { $ pos = $ this -> _config -> getTestProperty ( 'classOpenCurly' , '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 ( 'classOpenCurly' , $ msg ) ; } } }
Process the start of a class.
Process the start of a class .