private function _checkDocBlockParameters() {

		// For anonymous functions, we don't check the docblock
		$isAnonymous = $this->statementStack->getCurrentStackItem()->visibility === 'ANONYMOUS';

		if ($this->_isActive('docBlocks') && !$isAnonymous && !$this->_config->isException('docBlocks', $this->_currentFunctionName) && !$this->statementStack->getParentStackItem()->docblocInheritDoc) {

			// If the function is not private and we check the doc
			$isPrivateExcluded = $this->_config->getTestProperty('docBlocks', 'excludePrivateMembers');
			if (!($isPrivateExcluded && $this->_functionVisibility === 'PRIVATE')) {

				// Check the docblock @return
				if (($this->_config->getTestProperty('docBlocks', 'testReturn') !== 'false')) {

					if ($this->_functionReturns && ($this->statementStack->getParentStackItem()->docblocNbReturns === 0)) {
						$msg = $this->_getMessage('DOCBLOCK_RETURN', $this->_currentFunctionName);
						$this->_writeError('docBlocks', $msg);
					}
				}

				// Check the docblock @param
				if (($this->_config->getTestProperty('docBlocks', 'testParam') !== 'false')) {
					if ($this->_nbFunctionParameters !== $this->statementStack->getParentStackItem()->docblocNbParams) {
						$msg = $this->_getMessage('DOCBLOCK_PARAM', $this->_currentFunctionName);
						$this->_writeError('docBlocks', $msg);
					}
				}

				// Check the docblock @throw
				if (($this->_config->getTestProperty('docBlocks', 'testThrow') !== 'false')) {

					if ($this->_functionThrows && ($this->statementStack->getParentStackItem()->docblocNbThrows === 0)) {
						$msg = $this->_getMessage('DOCBLOCK_THROW', $this->_currentFunctionName);
						$this->_writeError('docBlocks', $msg);
					}
				}
			}
		}
	}
private function _checkDocBlockParameters() {

		// For anonymous functions, we don't check the docblock
		$isAnonymous = $this->statementStack->getCurrentStackItem()->visibility === 'ANONYMOUS';

		if ($this->_isActive('docBlocks') && !$isAnonymous && !$this->_config->isException('docBlocks', $this->_currentFunctionName) && !$this->statementStack->getParentStackItem()->docblocInheritDoc) {

			// If the function is not private and we check the doc
			$isPrivateExcluded = $this->_config->getTestProperty('docBlocks', 'excludePrivateMembers');
			if (!($isPrivateExcluded && $this->_functionVisibility === 'PRIVATE')) {

				// Check the docblock @return
				if (($this->_config->getTestProperty('docBlocks', 'testReturn') !== 'false')) {

					if ($this->_functionReturns && ($this->statementStack->getParentStackItem()->docblocNbReturns === 0)) {
						$msg = $this->_getMessage('DOCBLOCK_RETURN', $this->_currentFunctionName);
						$this->_writeError('docBlocks', $msg);
					}
				}

				// Check the docblock @param
				if (($this->_config->getTestProperty('docBlocks', 'testParam') !== 'false')) {
					if ($this->_nbFunctionParameters !== $this->statementStack->getParentStackItem()->docblocNbParams) {
						$msg = $this->_getMessage('DOCBLOCK_PARAM', $this->_currentFunctionName);
						$this->_writeError('docBlocks', $msg);
					}
				}

				// Check the docblock @throw
				if (($this->_config->getTestProperty('docBlocks', 'testThrow') !== 'false')) {

					if ($this->_functionThrows && ($this->statementStack->getParentStackItem()->docblocNbThrows === 0)) {
						$msg = $this->_getMessage('DOCBLOCK_THROW', $this->_currentFunctionName);
						$this->_writeError('docBlocks', $msg);
					}
				}
			}
		}
	}
private function _checkDocBlockParameters ( ) { // For anonymous functions, we don't check the docblock $ isAnonymous = $ this -> statementStack -> getCurrentStackItem ( ) -> visibility === 'ANONYMOUS' ; if ( $ this -> _isActive ( 'docBlocks' ) && ! $ isAnonymous && ! $ this -> _config -> isException ( 'docBlocks' , $ this -> _currentFunctionName ) && ! $ this -> statementStack -> getParentStackItem ( ) -> docblocInheritDoc ) { // If the function is not private and we check the doc $ isPrivateExcluded = $ this -> _config -> getTestProperty ( 'docBlocks' , 'excludePrivateMembers' ) ; if ( ! ( $ isPrivateExcluded && $ this -> _functionVisibility === 'PRIVATE' ) ) { // Check the docblock @return if ( ( $ this -> _config -> getTestProperty ( 'docBlocks' , 'testReturn' ) !== 'false' ) ) { if ( $ this -> _functionReturns && ( $ this -> statementStack -> getParentStackItem ( ) -> docblocNbReturns === 0 ) ) { $ msg = $ this -> _getMessage ( 'DOCBLOCK_RETURN' , $ this -> _currentFunctionName ) ; $ this -> _writeError ( 'docBlocks' , $ msg ) ; } } // Check the docblock @param if ( ( $ this -> _config -> getTestProperty ( 'docBlocks' , 'testParam' ) !== 'false' ) ) { if ( $ this -> _nbFunctionParameters !== $ this -> statementStack -> getParentStackItem ( ) -> docblocNbParams ) { $ msg = $ this -> _getMessage ( 'DOCBLOCK_PARAM' , $ this -> _currentFunctionName ) ; $ this -> _writeError ( 'docBlocks' , $ msg ) ; } } // Check the docblock @throw if ( ( $ this -> _config -> getTestProperty ( 'docBlocks' , 'testThrow' ) !== 'false' ) ) { if ( $ this -> _functionThrows && ( $ this -> statementStack -> getParentStackItem ( ) -> docblocNbThrows === 0 ) ) { $ msg = $ this -> _getMessage ( 'DOCBLOCK_THROW' , $ this -> _currentFunctionName ) ; $ this -> _writeError ( 'docBlocks' , $ msg ) ; } } } } }
Check that the declared parameters in the docblock match the content of the function.

Called by _processFunctionStop().
Check that the declared parameters in the docblock match the content of the function .