Showing 6 of 6 total issues
Avoid variables with short names like $r. Configured minimum length is 3. Open
Open
foreach ($configRulesets as &$r) {
- Exclude checks
Avoid using static access to class '\PHPMD\Category\Category' in method 'renderReport'. Open
Open
$content = Category::documentationFor($checkName);
- Exclude checks
Avoid using static access to class '\PHPMD\Category\Category' in method 'testCategoryFor'. Open
Open
$category = Category::categoryFor("Design/EvalExpression");
- Exclude checks
Avoid using static access to class '\PHPMD\Category\Category' in method 'renderReport'. Open
Open
$points = Category::pointsFor($checkName, $metric);
- Exclude checks
Avoid using static access to class '\PHPMD\Category\Category' in method 'renderReport'. Open
Open
$category = Category::categoryFor($checkName);
- Exclude checks
The method queueDirectory uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. Open
Open
} else {
$this->queuePaths($dir, $prefix, $this->config['exclude_paths']);
}
- Exclude checks