NatLibFi/Skosmos

View on GitHub

Showing 1,049 of 1,049 total issues

Missing class import via use statement (line '30', column '33').
Open

        $this->negotiator = new \Negotiation\Negotiator();
Severity: Minor
Found in src/controller/Controller.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 '56', column '27').
Open

        $langFilter = new \Twig\TwigFilter('lang_name', function ($langcode, $lang) {
Severity: Minor
Found in src/controller/WebController.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 '181', column '31').
Open

            $commitDate = new \DateTime(trim($commandOutput));
Severity: Minor
Found in src/controller/Controller.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 '709', column '33').
Open

        $linkUrlExtension = new LinkUrlExtension($this->model);
Severity: Minor
Found in src/controller/RestController.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 '53', column '39').
Open

        $this->twig->addExtension(new LinkUrlExtension($model));
Severity: Minor
Found in src/controller/WebController.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 '241', column '36').
Open

            $ifModifiedSince = new DateTime($ifModSinceHeader);
Severity: Minor
Found in src/controller/Controller.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 '42', column '27').
Open

        $this->twig = new \Twig\Environment($loader, array('cache' => $tmpDir,'auto_reload' => true));
Severity: Minor
Found in src/controller/WebController.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 '65', column '31').
Open

        $this->honeypot = new \Honeypot();
Severity: Minor
Found in src/controller/WebController.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 '337', column '27').
Open

        $parameters = new ConceptSearchParameters($request, $this->model->getConfig());
Severity: Minor
Found in src/controller/WebController.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 '99', column '33').
Open

        $this->negotiator = new \Negotiation\LanguageNegotiator();
Severity: Minor
Found in src/controller/WebController.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

Remove error control operator '@' on line 179.
Open

    protected function executeGitModifiedDateCommand($gitCommand)
    {
        $commitDate = null;
        $commandOutput = @exec($gitCommand);
        if ($commandOutput) {
Severity: Minor
Found in src/controller/Controller.php by phpmd

ErrorControlOperator

Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.

Example

function foo($filePath) {
    $file = @fopen($filPath); // hides exceptions
    $key = @$array[$notExistingKey]; // assigns null to $key
}

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

Missing class import via use statement (line '200', column '30').
Open

            $dateTime = (new DateTime())->setTimestamp($configModifiedTime);
Severity: Minor
Found in src/controller/Controller.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 '102', column '27').
Open

        $parameters = new ConceptSearchParameters($request, $this->model->getConfig(), true);
Severity: Minor
Found in src/controller/RestController.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 '33', column '27').
Open

        $negotiator = new \Negotiation\Negotiator();
Severity: Minor
Found in src/controller/RestController.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 '545', column '27').
Open

        $parameters = new ConceptSearchParameters($request, $this->model->getConfig(), true);
Severity: Minor
Found in src/controller/RestController.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 '40', column '23').
Open

        $loader = new \Twig\Loader\FilesystemLoader(__DIR__ . '/../view');
Severity: Minor
Found in src/controller/WebController.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

The method getBoolean has a boolean flag argument $default, which is a certain sign of a Single Responsibility Principle violation.
Open

    protected function getBoolean($property, $default = false)
Severity: Minor
Found in src/model/BaseConfig.php by phpmd

BooleanArgumentFlag

Since: 1.4.0

A boolean flag argument is a reliable indicator for a violation of the Single Responsibility Principle (SRP). You can fix this problem by extracting the logic in the boolean flag into its own class or method.

Example

class Foo {
    public function bar($flag = true) {
    }
}

Source https://phpmd.org/rules/cleancode.html#booleanargumentflag

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

                return new LabelSkosXL($this->model, $labres);
Severity: Minor
Found in src/model/Concept.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 '608', column '38').
Open

                        $value = new ConceptPropertyValue($this->model, $this->vocab, $val, $prop, $this->clang);
Severity: Minor
Found in src/model/Concept.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 '38', column '23').
Open

            throw new Exception('config.ttl file is missing, please provide one.');
Severity: Minor
Found in src/model/GlobalConfig.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