private function _checkCyclomaticComplexity() {
		if ($this->_isActive('cyclomaticComplexity')) {
			$warningLevel = $this->_config->getTestProperty('cyclomaticComplexity', 'warningLevel');
			$errorLevel = $this->_config->getTestProperty('cyclomaticComplexity', 'errorLevel');
			$msg = $this->_getMessage('CYCLOMATIC_COMPLEXITY', $this->_currentFunctionName, $this->_cyclomaticComplexity, $warningLevel);

			// Direct call to the reporter to allow different error levels for a single test.
			if ($this->_cyclomaticComplexity > $warningLevel) {
				$this->_writeError('cyclomaticComplexity', $msg, $this->_functionStartLine, WARNING);
			} else if ($this->_cyclomaticComplexity > $errorLevel) {
				$this->_writeError('cyclomaticComplexity', $msg, $this->_functionStartLine, ERROR);
			}
		}
	}
private function _checkCyclomaticComplexity() {
		if ($this->_isActive('cyclomaticComplexity')) {
			$warningLevel = $this->_config->getTestProperty('cyclomaticComplexity', 'warningLevel');
			$errorLevel = $this->_config->getTestProperty('cyclomaticComplexity', 'errorLevel');
			$msg = $this->_getMessage('CYCLOMATIC_COMPLEXITY', $this->_currentFunctionName, $this->_cyclomaticComplexity, $warningLevel);

			// Direct call to the reporter to allow different error levels for a single test.
			if ($this->_cyclomaticComplexity > $warningLevel) {
				$this->_writeError('cyclomaticComplexity', $msg, $this->_functionStartLine, WARNING);
			} else if ($this->_cyclomaticComplexity > $errorLevel) {
				$this->_writeError('cyclomaticComplexity', $msg, $this->_functionStartLine, ERROR);
			}
		}
	}
private function _checkCyclomaticComplexity ( ) { if ( $ this -> _isActive ( 'cyclomaticComplexity' ) ) { $ warningLevel = $ this -> _config -> getTestProperty ( 'cyclomaticComplexity' , 'warningLevel' ) ; $ errorLevel = $ this -> _config -> getTestProperty ( 'cyclomaticComplexity' , 'errorLevel' ) ; $ msg = $ this -> _getMessage ( 'CYCLOMATIC_COMPLEXITY' , $ this -> _currentFunctionName , $ this -> _cyclomaticComplexity , $ warningLevel ) ; // Direct call to the reporter to allow different error levels for a single test. if ( $ this -> _cyclomaticComplexity > $ warningLevel ) { $ this -> _writeError ( 'cyclomaticComplexity' , $ msg , $ this -> _functionStartLine , WARNING ) ; } else if ( $ this -> _cyclomaticComplexity > $ errorLevel ) { $ this -> _writeError ( 'cyclomaticComplexity' , $ msg , $ this -> _functionStartLine , ERROR ) ; } } }
Check the cyclomatic complexity of a function.

Called by _processFunctionStop().
Check the cyclomatic complexity of a function .