lib/Bugs/Bug.php
The parameter $bug_id is not named in camelCase. Open
Open
public function __construct($bug_id = bull) {
parent::__construct();
if (filter_var($bug_id, FILTER_VALIDATE_INT)) {
- Read upRead up
- Exclude checks
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
Open
- Exclude checks
Blank line found at start of control structure Open
Open
if (filter_var($bug_id, FILTER_VALIDATE_INT)) {
- Exclude checks
Function closing brace must go on the next line following the body; found 1 blank lines before brace Open
Open
}
- Exclude checks