vakata/views

View on GitHub

Showing 3 of 3 total issues

Avoid using short method names like View::e(). The configured minimum method name length is 3.
Open

    protected function e($var, $funcs = '')
    {
        if (is_callable($funcs)) {
            $var = call_user_func($funcs, $var);
        } else {
Severity: Minor
Found in src/View.php by phpmd

ShortMethodName

Since: 0.2

Detects when very short method names are used.

Example

class ShortMethod {
    public function a( $index ) { // Violation
    }
}

Source https://phpmd.org/rules/naming.html#shortmethodname

Missing class import via use statement (line '68', column '23').
Open

            throw new \Exception('Template not found: ' . $template);
Severity: Minor
Found in src/Views.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Missing class import via use statement (line '64', column '23').
Open

            throw new \Exception('Unknown directory: ' . $dir);
Severity: Minor
Found in src/Views.php by phpmd

MissingImport

Since: 2.7.0

Importing all external classes in a file through use statements makes them clearly visible.

Example

function make() {
    return new \stdClass();
}

Source http://phpmd.org/rules/cleancode.html#MissingImport

Severity
Category
Status
Source
Language