NatLibFi/Skosmos

View on GitHub

Showing 1,049 of 1,049 total issues

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

    public function generateAlphabeticalListQuery($letter, $lang, $limit = null, $offset = null, $classes = null, $showDeprecated = false, $qualifier = null)
Severity: Minor
Found in src/model/sparql/JenaTextSparql.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 '7', column '22').
Open

        $graph = new EasyRdf\Graph($this->uri);
Severity: Minor
Found in src/model/resolver/LOCResource.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 getVocabularyList has a boolean flag argument $shortname, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getVocabularyList($categories = true, $shortname = false)
Severity: Minor
Found in src/model/Model.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 '583', column '20').
Open

        $res = new EasyRdf\Resource($uri);
Severity: Minor
Found in src/model/Model.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 '621', column '57').
Open

                $newpath = array_merge($path, array(new Breadcrumb($uri, $bTresult[$uri]['label'])));
Severity: Minor
Found in src/model/Vocabulary.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 queryProperty has a boolean flag argument $anylang, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function queryProperty($uri, $prop, $lang, $anylang = false)
Severity: Minor
Found in src/model/sparql/GenericSparql.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

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

    public function queryChangeList($prop, $lang, $offset, $limit, $showDeprecated = false)
Severity: Minor
Found in src/model/sparql/GenericSparql.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 '443', column '30').
Open

            return array(new VocabularyCategory($this, null));
Severity: Minor
Found in src/model/Model.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 '15', column '29').
Open

        $this->config = new VocabularyConfig($model, $resource, $model->getConfig()->getGlobalPlugins());
Severity: Minor
Found in src/model/Vocabulary.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 '239', column '31').
Open

            $serialiser = new EasyRdf\Serialiser\JsonLd();
Severity: Minor
Found in src/model/Model.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 generateAlphabeticalListQuery has a boolean flag argument $showDeprecated, which is a certain sign of a Single Responsibility Principle violation.
Open

    protected function generateAlphabeticalListQuery($letter, $lang, $limit, $offset, $classes, $showDeprecated = false, $qualifier = null)
Severity: Minor
Found in src/model/sparql/GenericSparql.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 '307', column '20').
Open

        return new PluginRegister($this->model->getConfig()->getGlobalPlugins());
Severity: Minor
Found in src/model/Request.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 generateChangeListQuery has a boolean flag argument $showDeprecated, which is a certain sign of a Single Responsibility Principle violation.
Open

    private function generateChangeListQuery($prop, $lang, $offset, $limit = 200, $showDeprecated = false)
Severity: Minor
Found in src/model/sparql/GenericSparql.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 '29', column '24').
Open

            $res = new LOCResource($this->model, $uri);
Severity: Minor
Found in src/model/resolver/Resolver.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 '49', column '29').
Open

        $this->client = new EasyRdf\Sparql\Client($endpoint);
Severity: Minor
Found in src/model/sparql/GenericSparql.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 queryTransitiveProperty has a boolean flag argument $anylang, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function queryTransitiveProperty($uri, $props, $lang, $limit, $anylang = false, $fallbacklang = '')
Severity: Minor
Found in src/model/sparql/GenericSparql.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 '11', column '23').
Open

            throw new InvalidArgumentException('Invalid constructor parameter given to DataObject.');
Severity: Minor
Found in src/model/VocabularyCategory.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 '44', column '27').
Open

            $client = new EasyRdf\Sparql\Client(self::WDQS_ENDPOINT);
Severity: Minor
Found in src/model/resolver/WDQSResource.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 '512', column '35').
Open

            $conceptArray[] = new Concept($this->model, $vocab, $conc, $result, $clang);
Severity: Minor
Found in src/model/sparql/GenericSparql.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 getVocabularyList has a boolean flag argument $categories, which is a certain sign of a Single Responsibility Principle violation.
Open

    public function getVocabularyList($categories = true, $shortname = false)
Severity: Minor
Found in src/model/Model.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

Severity
Category
Status
Source
Language