Class Plugin_code_quality_null_redundant

Description

This class looks for cases in code like this:

foo.bar = f(); if (foo != null) { <-- this is redundant, since foo couldn't have been null ... on the previous line! FP Condition:

Located in /plugins/default/Code-Quality.Null.Redundant.php (line 16)

Plugin
   |
   --Plugin_code_quality_null_redundant
Variable Summary
Method Summary
void execute ()
Variables
mixed $valid_file_types = array("jsp", "java") (line 17)
  • access: public

Redefinition of:
Plugin::$valid_file_types
Valid file types that this Plugin can operate on.

Inherited Variables

Inherited from Plugin

Plugin::$context_size
Plugin::$description
Plugin::$filename
Plugin::$file_contents
Plugin::$initialized
Plugin::$is_multi_target
Plugin::$is_valid_filetype
Plugin::$result_list
Methods
execute (line 19)
void execute ()

Redefinition of:
Plugin::execute()
This function should not be called, since this class is abstract. The execute() function should be overridden by child classes.

Inherited Methods

Inherited From Plugin

Plugin::Plugin()
Plugin::check_for_java()
Plugin::destructor()
Plugin::execute()
Plugin::run()

Documentation generated on Mon, 28 Apr 2008 12:51:49 -0400 by phpDocumentor 1.4.0a2