railpage/railpagecore

View on GitHub
lib/Statistics/StatsInterface.php

Summary

Maintainability
A
0 mins
Test Coverage

The parameter $stat_id is not named in camelCase.
Open

        public function getStatistic($stat_id); 
Severity: Minor
Found in lib/Statistics/StatsInterface.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

Line indented incorrectly; expected 0 spaces, found 4
Open

    interface StatsInterface {

Line indented incorrectly; expected 4 spaces, found 8
Open

        public function getStatistic($stat_id); 

Line indented incorrectly; expected 0 spaces, found 4
Open

    }

There are no issues that match your filters.

Category
Status