private function _checkVariableNaming($text) {
		if ($this->_inClass || $this->_inInterface) {
			if ($this->_inFunctionStatement || $this->_inInterfaceStatement) {
				$this->_checkScopedVariableNaming($text, 'functionParameterNaming', 'FUNCTION_PARAMETER_NAMING');
			} else if ($this->_inFunction) {
				if (array_key_exists($text, $this->_functionParameters)) {
					$this->_checkScopedVariableNaming($text, 'functionParameterNaming', 'FUNCTION_PARAMETER_NAMING');
				} else {
					$this->_checkScopedVariableNaming($text, 'localVariableNaming', 'LOCAL_VARIABLE_NAMING');
				}
			} else {
				$this->_checkScopedVariableNaming($text, 'memberVariableNaming', 'MEMBER_VARIABLE_NAMING');
			}
		} else {
			$this->_checkScopedVariableNaming($text, 'topLevelVariableNaming', 'TOPLEVEL_VARIABLE_NAMING');
		}
	}
private function _checkVariableNaming($text) {
		if ($this->_inClass || $this->_inInterface) {
			if ($this->_inFunctionStatement || $this->_inInterfaceStatement) {
				$this->_checkScopedVariableNaming($text, 'functionParameterNaming', 'FUNCTION_PARAMETER_NAMING');
			} else if ($this->_inFunction) {
				if (array_key_exists($text, $this->_functionParameters)) {
					$this->_checkScopedVariableNaming($text, 'functionParameterNaming', 'FUNCTION_PARAMETER_NAMING');
				} else {
					$this->_checkScopedVariableNaming($text, 'localVariableNaming', 'LOCAL_VARIABLE_NAMING');
				}
			} else {
				$this->_checkScopedVariableNaming($text, 'memberVariableNaming', 'MEMBER_VARIABLE_NAMING');
			}
		} else {
			$this->_checkScopedVariableNaming($text, 'topLevelVariableNaming', 'TOPLEVEL_VARIABLE_NAMING');
		}
	}
private function _checkVariableNaming ( $ text ) { if ( $ this -> _inClass || $ this -> _inInterface ) { if ( $ this -> _inFunctionStatement || $ this -> _inInterfaceStatement ) { $ this -> _checkScopedVariableNaming ( $ text , 'functionParameterNaming' , 'FUNCTION_PARAMETER_NAMING' ) ; } else if ( $ this -> _inFunction ) { if ( array_key_exists ( $ text , $ this -> _functionParameters ) ) { $ this -> _checkScopedVariableNaming ( $ text , 'functionParameterNaming' , 'FUNCTION_PARAMETER_NAMING' ) ; } else { $ this -> _checkScopedVariableNaming ( $ text , 'localVariableNaming' , 'LOCAL_VARIABLE_NAMING' ) ; } } else { $ this -> _checkScopedVariableNaming ( $ text , 'memberVariableNaming' , 'MEMBER_VARIABLE_NAMING' ) ; } } else { $ this -> _checkScopedVariableNaming ( $ text , 'topLevelVariableNaming' , 'TOPLEVEL_VARIABLE_NAMING' ) ; } }
Checks to see if the variable follows the naming convention.

@param String $text
the string containing the variable.
Checks to see if the variable follows the naming convention .