Shared naming conventions allow teams to collaborate effectively. This rule raises an issue when a local variable or function parameter name does not match the provided regular expression.

Noncompliant Code Example

With the default regular expression ^[a-z][a-zA-Z0-9]*$:

public function doSomething($my_param){
  $LOCAL;
  ...
}

Compliant Solution

public function doSomething($myParam){
  $local;
  ...
}