railpage/railpagecore

View on GitHub
lib/Bugs/Bug.php

Summary

Maintainability
A
0 mins
Test Coverage

The parameter $bug_id is not named in camelCase.
Open

    public function __construct($bug_id = bull) {
        
        parent::__construct();
        
        if (filter_var($bug_id, FILTER_VALIDATE_INT)) {
Severity: Minor
Found in lib/Bugs/Bug.php by phpmd

CamelCaseParameterName

Since: 0.2

It is considered best practice to use the camelCase notation to name parameters.

Example

class ClassName {
    public function doSomething($user_name) {
    }
}

Source

Blank line found at end of control structure
Open

            
Severity: Minor
Found in lib/Bugs/Bug.php by phpcodesniffer

Blank line found at start of control structure
Open

        if (filter_var($bug_id, FILTER_VALIDATE_INT)) {
Severity: Minor
Found in lib/Bugs/Bug.php by phpcodesniffer

Function closing brace must go on the next line following the body; found 1 blank lines before brace
Open

    }
Severity: Minor
Found in lib/Bugs/Bug.php by phpcodesniffer

There are no issues that match your filters.

Category
Status