agorlov/lipid

View on GitHub
src/Tpl/Twig.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '28', column '21').
Open

                new \Twig\Loader\FilesystemLoader($tplPath),
Severity: Minor
Found in src/Tpl/Twig.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 '34', column '23').
Open

            throw new \Exception("\$tplPath must be string or \Twig\Environment." . print_r($tplPath, true));
Severity: Minor
Found in src/Tpl/Twig.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 '27', column '31').
Open

            $this->twig = new \Twig\Environment(
Severity: Minor
Found in src/Tpl/Twig.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

There are no issues that match your filters.

Category
Status