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'));
				}
			}
		}
	}