private function _checkUnusedVariables() {
		if ($this->_isActive('checkUnusedVariables')) {

			foreach ($this->_variables as $variable) {

				if ((!$variable->isUsed) && !($this->_isClass || $this->_isView) && !$this->_config->isException('checkUnusedVariables', $variable->name)) {
					$msg = $this->_getMessage('UNUSED_VARIABLE', $variable->name);
					$this->_writeError('checkUnusedVariables', $msg, $variable->line, $this->_config->getTestLevel('checkUnusedVariables'));
				}
			}
		}
	}
private function _checkUnusedVariables() {
		if ($this->_isActive('checkUnusedVariables')) {

			foreach ($this->_variables as $variable) {

				if ((!$variable->isUsed) && !($this->_isClass || $this->_isView) && !$this->_config->isException('checkUnusedVariables', $variable->name)) {
					$msg = $this->_getMessage('UNUSED_VARIABLE', $variable->name);
					$this->_writeError('checkUnusedVariables', $msg, $variable->line, $this->_config->getTestLevel('checkUnusedVariables'));
				}
			}
		}
	}
private function _checkUnusedVariables ( ) { if ( $ this -> _isActive ( 'checkUnusedVariables' ) ) { foreach ( $ this -> _variables as $ variable ) { if ( ( ! $ variable -> isUsed ) && ! ( $ this -> _isClass || $ this -> _isView ) && ! $ this -> _config -> isException ( 'checkUnusedVariables' , $ variable -> name ) ) { $ msg = $ this -> _getMessage ( 'UNUSED_VARIABLE' , $ variable -> name ) ; $ this -> _writeError ( 'checkUnusedVariables' , $ msg , $ variable -> line , $ this -> _config -> getTestLevel ( 'checkUnusedVariables' ) ) ; } } } }
Check for unused variables in the file.

This function is launched at the end of a file.
Check for unused variables in the file .