NatLibFi/Skosmos

View on GitHub

Showing 1,049 of 1,049 total issues

The variable $script_name is not named in camelCase.
Open

    public function getLangUrl($newlang = null)
    {
        $script_name = str_replace('/src/index.php', '', $this->getServerConstant('SCRIPT_NAME'));
        $langurl = substr(str_replace($script_name, '', strval($this->getServerConstant('REQUEST_URI'))), 1);
        if ($newlang !== null) {
Severity: Minor
Found in src/model/Request.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $quoted_values is not named in camelCase.
Open

    private function generateCountLangConceptsQuery($langs, $classes, $props)
    {
        $gcl = $this->graphClause;
        $classes = ($classes) ? $classes : array('http://www.w3.org/2004/02/skos/core#Concept');

Severity: Minor
Found in src/model/sparql/GenericSparql.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $quoted_values is not named in camelCase.
Open

    private function generateCountLangConceptsQuery($langs, $classes, $props)
    {
        $gcl = $this->graphClause;
        $classes = ($classes) ? $classes : array('http://www.w3.org/2004/02/skos/core#Concept');

Severity: Minor
Found in src/model/sparql/GenericSparql.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

The variable $quote_string is not named in camelCase.
Open

    private function generateCountLangConceptsQuery($langs, $classes, $props)
    {
        $gcl = $this->graphClause;
        $classes = ($classes) ? $classes : array('http://www.w3.org/2004/02/skos/core#Concept');

Severity: Minor
Found in src/model/sparql/GenericSparql.php by phpmd

CamelCaseVariableName

Since: 0.2

It is considered best practice to use the camelCase notation to name variables.

Example

class ClassName {
    public function doSomething() {
        $data_module = new DataModule();
    }
}

Source

TODO found
Open

            // @TODO : in a global search showDeprecated will always be false and cannot be set globally
Severity: Minor
Found in src/model/Model.php by fixme

TODO found
Open

      // TODO: get the results list form cache if it is implemented
Severity: Minor
Found in resource/js/vocab-search.js by fixme

TODO found
Open

     * TODO: Showing labels in other languages, extra concept information and such goes here
Severity: Minor
Found in resource/js/vocab-search.js by fixme

TODO found
Open

        # TODO: sort by URI as last resort
Severity: Minor
Found in src/model/ConceptProperty.php by fixme

TODO found
Open

      // TODO: if the search term is in cache, use the cache
Severity: Minor
Found in resource/js/vocab-search.js by fixme
Severity
Category
Status
Source
Language