NatLibFi/Skosmos

View on GitHub
src/model/Concept.php

Summary

Maintainability
F
1 wk
Test Coverage
B
83%

Function getProperties has a Cognitive Complexity of 117 (exceeds 5 allowed). Consider refactoring.
Open

    public function getProperties()
    {
        $properties = array();
        $narrowersByUri = array();
        $inCollection = array();
Severity: Minor
Found in src/model/Concept.php - About 2 days to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

File Concept.php has 655 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

/**
 * Dataobject for a single concept.
 */
Severity: Major
Found in src/model/Concept.php - About 1 day to fix

    Function getMappingProperties has a Cognitive Complexity of 38 (exceeds 5 allowed). Consider refactoring.
    Open

        public function getMappingProperties(array $whitelist = null)
        {
            $ret = array();
    
            $longUris = $this->resource->propertyUris();
    Severity: Minor
    Found in src/model/Concept.php - About 5 hrs to fix

    Cognitive Complexity

    Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

    A method's cognitive complexity is based on a few simple rules:

    • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
    • Code is considered more complex for each "break in the linear flow of the code"
    • Code is considered more complex when "flow breaking structures are nested"

    Further reading

    Method getProperties has 129 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getProperties()
        {
            $properties = array();
            $narrowersByUri = array();
            $inCollection = array();
    Severity: Major
    Found in src/model/Concept.php - About 5 hrs to fix

      Concept has 38 functions (exceeds 20 allowed). Consider refactoring.
      Open

      class Concept extends VocabularyDataObject implements Modifiable
      {
          /**
           * Stores a label string if the concept has been found through
           * a altLabel/label in a another language than the ui.
      Severity: Minor
      Found in src/model/Concept.php - About 5 hrs to fix

        Function getCollections has a Cognitive Complexity of 24 (exceeds 5 allowed). Consider refactoring.
        Open

            private function getCollections($includeArrays)
            {
                $groups = array();
                $collections = $this->graph->resourcesMatching('skos:member', $this->resource);
                if (isset($collections)) {
        Severity: Minor
        Found in src/model/Concept.php - About 3 hrs to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        The class Concept has an overall complexity of 198 which is very high. The configured complexity threshold is 50.
        Open

        class Concept extends VocabularyDataObject implements Modifiable
        {
            /**
             * Stores a label string if the concept has been found through
             * a altLabel/label in a another language than the ui.
        Severity: Minor
        Found in src/model/Concept.php by phpmd

        Function removeDuplicatePropertyValues has a Cognitive Complexity of 15 (exceeds 5 allowed). Consider refactoring.
        Open

            public function removeDuplicatePropertyValues($ret, $duplicates)
            {
                $propertyValues = array();
        
                foreach ($ret as $prop) {
        Severity: Minor
        Found in src/model/Concept.php - About 1 hr to fix

        Cognitive Complexity

        Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

        A method's cognitive complexity is based on a few simple rules:

        • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
        • Code is considered more complex for each "break in the linear flow of the code"
        • Code is considered more complex when "flow breaking structures are nested"

        Further reading

        Method dumpJsonLd has 39 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            public function dumpJsonLd()
            {
                $context = array(
                    'skos' => EasyRdf\RdfNamespace::get("skos"),
                    'isothes' => EasyRdf\RdfNamespace::get("isothes"),
        Severity: Minor
        Found in src/model/Concept.php - About 1 hr to fix

          Method getMappingProperties has 39 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function getMappingProperties(array $whitelist = null)
              {
                  $ret = array();
          
                  $longUris = $this->resource->propertyUris();
          Severity: Minor
          Found in src/model/Concept.php - About 1 hr to fix

            Function addExternalTriplesToGraph has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

                private function addExternalTriplesToGraph($res, &$seen, $props = null)
                {
                    if (array_key_exists($res->getUri(), $seen) && $seen[$res->getUri()] === 0) {
                        return;
                    }
            Severity: Minor
            Found in src/model/Concept.php - About 1 hr to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function getLabel has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getLabel()
                {
                    foreach ($this->vocab->getConfig()->getLanguageOrder($this->clang) as $fallback) {
                        if ($this->resource->label($fallback) !== null) {
                            return $this->resource->label($fallback);
            Severity: Minor
            Found in src/model/Concept.php - About 1 hr to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Function getDate has a Cognitive Complexity of 11 (exceeds 5 allowed). Consider refactoring.
            Open

                public function getDate()
                {
                    $ret = '';
                    $created = '';
                    try {
            Severity: Minor
            Found in src/model/Concept.php - About 1 hr to fix

            Cognitive Complexity

            Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

            A method's cognitive complexity is based on a few simple rules:

            • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
            • Code is considered more complex for each "break in the linear flow of the code"
            • Code is considered more complex when "flow breaking structures are nested"

            Further reading

            Method getCollections has 31 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                private function getCollections($includeArrays)
                {
                    $groups = array();
                    $collections = $this->graph->resourcesMatching('skos:member', $this->resource);
                    if (isset($collections)) {
            Severity: Minor
            Found in src/model/Concept.php - About 1 hr to fix

              Method getDate has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function getDate()
                  {
                      $ret = '';
                      $created = '';
                      try {
              Severity: Minor
              Found in src/model/Concept.php - About 1 hr to fix

                Function getCollectionMembers has a Cognitive Complexity of 10 (exceeds 5 allowed). Consider refactoring.
                Open

                    private function getCollectionMembers($coll, $narrowers)
                    {
                        $membersArray = array();
                        if ($coll->label()) {
                            $collLabel = $coll->label()->getValue($this->clang) ? $coll->label($this->clang) : $coll->label();
                Severity: Minor
                Found in src/model/Concept.php - About 1 hr to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Function dumpJsonLd has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                Open

                    public function dumpJsonLd()
                    {
                        $context = array(
                            'skos' => EasyRdf\RdfNamespace::get("skos"),
                            'isothes' => EasyRdf\RdfNamespace::get("isothes"),
                Severity: Minor
                Found in src/model/Concept.php - About 45 mins to fix

                Cognitive Complexity

                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                A method's cognitive complexity is based on a few simple rules:

                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                • Code is considered more complex for each "break in the linear flow of the code"
                • Code is considered more complex when "flow breaking structures are nested"

                Further reading

                Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    public function __construct($model, $vocab, $resource, $graph, $clang)
                Severity: Minor
                Found in src/model/Concept.php - About 35 mins to fix

                  Function getForeignLabels has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      public function getForeignLabels()
                      {
                          $prefLabels = $this->getForeignLabelList('skos:prefLabel', 'prefLabel');
                          $altLabels = $this->getForeignLabelList('skos:altLabel', 'altLabel');
                          $ret = array_merge_recursive($prefLabels, $altLabels);
                  Severity: Minor
                  Found in src/model/Concept.php - About 35 mins to fix

                  Cognitive Complexity

                  Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                  A method's cognitive complexity is based on a few simple rules:

                  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                  • Code is considered more complex for each "break in the linear flow of the code"
                  • Code is considered more complex when "flow breaking structures are nested"

                  Further reading

                  Avoid too many return statements within this method.
                  Open

                          return "";
                  Severity: Major
                  Found in src/model/Concept.php - About 30 mins to fix

                    The method getCollections() has an NPath complexity of 201. The configured NPath complexity threshold is 200.
                    Open

                        private function getCollections($includeArrays)
                        {
                            $groups = array();
                            $collections = $this->graph->resourcesMatching('skos:member', $this->resource);
                            if (isset($collections)) {
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    NPathComplexity

                    Since: 0.1

                    The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                    Example

                    class Foo {
                        function bar() {
                            // lots of complicated code
                        }
                    }

                    Source https://phpmd.org/rules/codesize.html#npathcomplexity

                    The method getProperties() has 185 lines of code. Current threshold is set to 100. Avoid really long methods.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    The method getProperties() has an NPath complexity of 15467412996. The configured NPath complexity threshold is 200.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    NPathComplexity

                    Since: 0.1

                    The NPath complexity of a method is the number of acyclic execution paths through that method. A threshold of 200 is generally considered the point where measures should be taken to reduce complexity.

                    Example

                    class Foo {
                        function bar() {
                            // lots of complicated code
                        }
                    }

                    Source https://phpmd.org/rules/codesize.html#npathcomplexity

                    The method getMappingProperties() has a Cyclomatic Complexity of 14. The configured cyclomatic complexity threshold is 10.
                    Open

                        public function getMappingProperties(array $whitelist = null)
                        {
                            $ret = array();
                    
                            $longUris = $this->resource->propertyUris();
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CyclomaticComplexity

                    Since: 0.1

                    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                    Example

                    // Cyclomatic Complexity = 11
                    class Foo {
                    1   public function example() {
                    2       if ($a == $b) {
                    3           if ($a1 == $b1) {
                                    fiddle();
                    4           } elseif ($a2 == $b2) {
                                    fiddle();
                                } else {
                                    fiddle();
                                }
                    5       } elseif ($c == $d) {
                    6           while ($c == $d) {
                                    fiddle();
                                }
                    7        } elseif ($e == $f) {
                    8           for ($n = 0; $n < $h; $n++) {
                                    fiddle();
                                }
                            } else {
                                switch ($z) {
                    9               case 1:
                                        fiddle();
                                        break;
                    10              case 2:
                                        fiddle();
                                        break;
                    11              case 3:
                                        fiddle();
                                        break;
                                    default:
                                        fiddle();
                                        break;
                                }
                            }
                        }
                    }

                    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                    The method removeDuplicatePropertyValues() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
                    Open

                        public function removeDuplicatePropertyValues($ret, $duplicates)
                        {
                            $propertyValues = array();
                    
                            foreach ($ret as $prop) {
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CyclomaticComplexity

                    Since: 0.1

                    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                    Example

                    // Cyclomatic Complexity = 11
                    class Foo {
                    1   public function example() {
                    2       if ($a == $b) {
                    3           if ($a1 == $b1) {
                                    fiddle();
                    4           } elseif ($a2 == $b2) {
                                    fiddle();
                                } else {
                                    fiddle();
                                }
                    5       } elseif ($c == $d) {
                    6           while ($c == $d) {
                                    fiddle();
                                }
                    7        } elseif ($e == $f) {
                    8           for ($n = 0; $n < $h; $n++) {
                                    fiddle();
                                }
                            } else {
                                switch ($z) {
                    9               case 1:
                                        fiddle();
                                        break;
                    10              case 2:
                                        fiddle();
                                        break;
                    11              case 3:
                                        fiddle();
                                        break;
                                    default:
                                        fiddle();
                                        break;
                                }
                            }
                        }
                    }

                    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                    The method getCollections() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10.
                    Open

                        private function getCollections($includeArrays)
                        {
                            $groups = array();
                            $collections = $this->graph->resourcesMatching('skos:member', $this->resource);
                            if (isset($collections)) {
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CyclomaticComplexity

                    Since: 0.1

                    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                    Example

                    // Cyclomatic Complexity = 11
                    class Foo {
                    1   public function example() {
                    2       if ($a == $b) {
                    3           if ($a1 == $b1) {
                                    fiddle();
                    4           } elseif ($a2 == $b2) {
                                    fiddle();
                                } else {
                                    fiddle();
                                }
                    5       } elseif ($c == $d) {
                    6           while ($c == $d) {
                                    fiddle();
                                }
                    7        } elseif ($e == $f) {
                    8           for ($n = 0; $n < $h; $n++) {
                                    fiddle();
                                }
                            } else {
                                switch ($z) {
                    9               case 1:
                                        fiddle();
                                        break;
                    10              case 2:
                                        fiddle();
                                        break;
                    11              case 3:
                                        fiddle();
                                        break;
                                    default:
                                        fiddle();
                                        break;
                                }
                            }
                        }
                    }

                    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                    The method getProperties() has a Cyclomatic Complexity of 53. The configured cyclomatic complexity threshold is 10.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CyclomaticComplexity

                    Since: 0.1

                    Complexity is determined by the number of decision points in a method plus one for the method entry. The decision points are 'if', 'while', 'for', and 'case labels'. Generally, 1-4 is low complexity, 5-7 indicates moderate complexity, 8-10 is high complexity, and 11+ is very high complexity.

                    Example

                    // Cyclomatic Complexity = 11
                    class Foo {
                    1   public function example() {
                    2       if ($a == $b) {
                    3           if ($a1 == $b1) {
                                    fiddle();
                    4           } elseif ($a2 == $b2) {
                                    fiddle();
                                } else {
                                    fiddle();
                                }
                    5       } elseif ($c == $d) {
                    6           while ($c == $d) {
                                    fiddle();
                                }
                    7        } elseif ($e == $f) {
                    8           for ($n = 0; $n < $h; $n++) {
                                    fiddle();
                                }
                            } else {
                                switch ($z) {
                    9               case 1:
                                        fiddle();
                                        break;
                    10              case 2:
                                        fiddle();
                                        break;
                    11              case 3:
                                        fiddle();
                                        break;
                                    default:
                                        fiddle();
                                        break;
                                }
                            }
                        }
                    }

                    Source https://phpmd.org/rules/codesize.html#cyclomaticcomplexity

                    The class Concept has a coupling between objects value of 17. Consider to reduce the number of dependencies under 13.
                    Open

                    class Concept extends VocabularyDataObject implements Modifiable
                    {
                        /**
                         * Stores a label string if the concept has been found through
                         * a altLabel/label in a another language than the ui.
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CouplingBetweenObjects

                    Since: 1.1.0

                    A class with too many dependencies has negative impacts on several quality aspects of a class. This includes quality criteria like stability, maintainability and understandability

                    Example

                    class Foo {
                        /**
                         * @var \foo\bar\X
                         */
                        private $x = null;
                    
                        /**
                         * @var \foo\bar\Y
                         */
                        private $y = null;
                    
                        /**
                         * @var \foo\bar\Z
                         */
                        private $z = null;
                    
                        public function setFoo(\Foo $foo) {}
                        public function setBar(\Bar $bar) {}
                        public function setBaz(\Baz $baz) {}
                    
                        /**
                         * @return \SplObjectStorage
                         * @throws \OutOfRangeException
                         * @throws \InvalidArgumentException
                         * @throws \ErrorException
                         */
                        public function process(\Iterator $it) {}
                    
                        // ...
                    }

                    Source https://phpmd.org/rules/design.html#couplingbetweenobjects

                    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 '622', column '29').
                    Open

                            $groupPropObj = new ConceptProperty($this->model, 'skosmos:memberOf', null);
                    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 '785', column '65').
                    Open

                                        $membersArray[$collLabel]->addSubMember(new ConceptPropertyValue($this->model, $this->vocab, $narrower, 'skos:member', $this->clang), $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 '371', column '61').
                    Open

                                    $pos_reif->hasProperty("rdf:predicate", new EasyRdf\Resource($pred, $sub->getGraph()))) {
                    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 '442', column '59').
                    Open

                                                    $ret[$prop]->addValue(new ConceptMappingPropertyValue($this->model, $this->vocab, $response, $this->resource, $prop));
                    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 '832', column '46').
                    Open

                                                $superprop = new ConceptPropertyValue($this->model, $this->vocab, $res, 'skosmos:memberOfSuper', $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 '418', column '32').
                    Open

                                    $propres = new EasyRdf\Resource($prop, $this->graph);
                    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 '565', column '32').
                    Open

                                    $propobj = new ConceptProperty($this->model, $prop, $proplabel, $prophelp, $superprop, $sort_by_notation);
                    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 '420', column '32').
                    Open

                                    $propobj = new ConceptProperty($this->model, $prop, $proplabel);
                    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 '449', column '51').
                    Open

                                            $ret[$prop]->addValue(new ConceptMappingPropertyValue($this->model, $this->vocab, $val, $this->resource, $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 '630', column '29').
                    Open

                            $arrayPropObj = new ConceptProperty($this->model, 'skosmos:memberOfArray', null);
                    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 '880', column '47').
                    Open

                                    $ret[$langCode][$key][] = new ConceptPropertyValueLiteral($this->model, $this->vocab, $this->resource, $lit, $prop);
                    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 '780', column '41').
                    Open

                            $membersArray[$collLabel] = new ConceptPropertyValue($this->model, $this->vocab, $coll, 'skos:narrower', $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 '826', column '34').
                    Open

                                        $group = new ConceptPropertyValue($this->model, $this->vocab, $collection, $property, $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 '390', column '61').
                    Open

                                    $pos_reif->hasProperty("rdf:predicate", new EasyRdf\Resource($pred, $sub->getGraph()))) {
                    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 '516', column '32').
                    Open

                                    $propres = new EasyRdf\Resource($prop, $this->graph);
                    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 '582', column '36').
                    Open

                                        $literal = new ConceptPropertyValueLiteral($this->model, $this->vocab, $this->resource, $val, $prop);
                    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 '925', column '89').
                    Open

                                $labels[Punic\Language::getName($lit->getLang(), $this->getLang())][] = new ConceptPropertyValueLiteral($this->model, $this->vocab, $this->resource, $lit, $property);
                    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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getProperties'.
                    Open

                                        $superprop = EasyRdf\RdfNamespace::shorten($superprop) ? EasyRdf\RdfNamespace::shorten($superprop) : $superprop;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getMappingProperties'.
                    Open

                                    $prop = $sprop = EasyRdf\RdfNamespace::shorten($prop);
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    The method getDate uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                                    } else {
                                        $ret .= ' ' . ucfirst($this->model->getText('skosmos:modified')) . ' ' . (Punic\Calendar::formatDate($modified, 'short', $this->getLang()));
                                    }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ElseExpression

                    Since: 1.4.0

                    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                    Example

                    class Foo
                    {
                        public function bar($flag)
                        {
                            if ($flag) {
                                // one branch
                            } else {
                                // another branch
                            }
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getMappingProperties'.
                    Open

                                if (EasyRdf\RdfNamespace::shorten($prop) !== null) {
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getProperties'.
                    Open

                                if (EasyRdf\RdfNamespace::shorten($prop) !== null) {
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'Punic\Calendar' in method 'getDate'.
                    Open

                                        $ret .= ', ' . $this->model->getText('skosmos:modified') . ' ' . (Punic\Calendar::formatDate($modified, 'short', $this->getLang()));
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'owl' => EasyRdf\RdfNamespace::get("owl"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'isGroup'.
                    Open

                                $groupClass = EasyRdf\RdfNamespace::shorten($groupClass) !== null ? EasyRdf\RdfNamespace::shorten($groupClass) : $groupClass;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'Punic\Calendar' in method 'getDate'.
                    Open

                                        $ret .= ' ' . ucfirst($this->model->getText('skosmos:modified')) . ' ' . (Punic\Calendar::formatDate($modified, 'short', $this->getLang()));
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    The method getCollectionMembers uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                            } else {
                                $collLabel = $coll->getUri();
                            }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ElseExpression

                    Since: 1.4.0

                    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                    Example

                    class Foo
                    {
                        public function bar($flag)
                        {
                            if ($flag) {
                                // one branch
                            } else {
                                // another branch
                            }
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getProperties'.
                    Open

                                    $prop = $sprop = EasyRdf\RdfNamespace::shorten($prop);
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    The method getProperties uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                                } else {
                                    // EasyRdf requires full URIs to be in angle brackets
                                    $sprop = "<$prop>";
                                }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ElseExpression

                    Since: 1.4.0

                    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                    Example

                    class Foo
                    {
                        public function bar($flag)
                        {
                            if ($flag) {
                                // one branch
                            } else {
                                // another branch
                            }
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getProperties'.
                    Open

                                        $superprop = EasyRdf\RdfNamespace::shorten($superprop) ? EasyRdf\RdfNamespace::shorten($superprop) : $superprop;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    The method addExternalTriplesToGraph uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                            } else {
                                foreach ($props as $prop) {
                                    if ($res->hasProperty($prop)) {
                                        $this->addPropertyValues($res, $prop, $seen);
                                    }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ElseExpression

                    Since: 1.4.0

                    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                    Example

                    class Foo
                    {
                        public function bar($flag)
                        {
                            if ($flag) {
                                // one branch
                            } else {
                                // another branch
                            }
                        }
                    }

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

                    The method getMappingProperties uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                                } else {
                                    // EasyRdf requires full URIs to be in angle brackets
                                    $sprop = "<$prop>";
                                }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ElseExpression

                    Since: 1.4.0

                    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                    Example

                    class Foo
                    {
                        public function bar($flag)
                        {
                            if ($flag) {
                                // one branch
                            } else {
                                // another branch
                            }
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'dct' => EasyRdf\RdfNamespace::get("dcterms"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'wd' => EasyRdf\RdfNamespace::get("wd"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\Literal' in method 'getLabel'.
                    Open

                                return EasyRdf\Literal::create($label->getValue(), $label->getLang());
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'Punic\Language' in method 'langToString'.
                    Open

                                $langName = Punic\Language::getName($langCode, $this->getLang()) !== $langCode ? Punic\Language::getName($langCode, $this->getLang()) : $this->model->getText($langCode);
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getAllLabels'.
                    Open

                            $property = (EasyRdf\RdfNamespace::shorten($property) !== null) ? EasyRdf\RdfNamespace::shorten($property) : "<$property>";
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'Punic\Calendar' in method 'getDate'.
                    Open

                                    $ret = $this->model->getText('skosmos:created') . ' ' . (Punic\Calendar::formatDate($created, 'short', $this->getLang()));
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'Punic\Language' in method 'langToString'.
                    Open

                                $langName = Punic\Language::getName($langCode, $this->getLang()) !== $langCode ? Punic\Language::getName($langCode, $this->getLang()) : $this->model->getText($langCode);
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'Punic\Language' in method 'getAllLabels'.
                    Open

                                $labels[Punic\Language::getName($lit->getLang(), $this->getLang())][] = new ConceptPropertyValueLiteral($this->model, $this->vocab, $this->resource, $lit, $property);
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'schema' => EasyRdf\RdfNamespace::get("schema"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'wdt' => EasyRdf\RdfNamespace::get("wdt"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class '\ML\JsonLD\JsonLD' in method 'dumpJsonLd'.
                    Open

                            $compactJsonLD = \ML\JsonLD\JsonLD::compact($this->graph->serialise('jsonld'), json_encode($context));
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\Literal' in method 'getLabel'.
                    Open

                                        return EasyRdf\Literal::create($label, $fallback);
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'isothes' => EasyRdf\RdfNamespace::get("isothes"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'rdfs' => EasyRdf\RdfNamespace::get("rdfs"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    The method __construct uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                            } else {
                                $this->order = VocabularyConfig::DEFAULT_PROPERTY_ORDER;
                            }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ElseExpression

                    Since: 1.4.0

                    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                    Example

                    class Foo
                    {
                        public function bar($flag)
                        {
                            if ($flag) {
                                // one branch
                            } else {
                                // another branch
                            }
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getProperties'.
                    Open

                                            $suburi = EasyRdf\RdfNamespace::shorten($subi) ? EasyRdf\RdfNamespace::shorten($subi) : $subi;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'isGroup'.
                    Open

                                $groupClass = EasyRdf\RdfNamespace::shorten($groupClass) !== null ? EasyRdf\RdfNamespace::shorten($groupClass) : $groupClass;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'dc11' => EasyRdf\RdfNamespace::get("dc11"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getAllLabels'.
                    Open

                            $property = (EasyRdf\RdfNamespace::shorten($property) !== null) ? EasyRdf\RdfNamespace::shorten($property) : "<$property>";
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class '\ML\JsonLD\JsonLD' in method 'dumpJsonLd'.
                    Open

                            return \ML\JsonLD\JsonLD::toString($compactJsonLD);
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    The method getProperties uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
                    Open

                                        } else {
                                            if ($defaultPropLabel) {
                                                $proplabel = $defaultPropLabel[''];
                                            }
                                        }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ElseExpression

                    Since: 1.4.0

                    An if expression with an else branch is basically not necessary. You can rewrite the conditions in a way that the else clause is not necessary and the code becomes simpler to read. To achieve this, use early return statements, though you may need to split the code it several smaller methods. For very simple assignments you could also use the ternary operations.

                    Example

                    class Foo
                    {
                        public function bar($flag)
                        {
                            if ($flag) {
                                // one branch
                            } else {
                                // another branch
                            }
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getProperties'.
                    Open

                                            $suburi = EasyRdf\RdfNamespace::shorten($subi) ? EasyRdf\RdfNamespace::shorten($subi) : $subi;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'getCollections'.
                    Open

                                $arrayClass = $arrayClassURI !== null ? EasyRdf\RdfNamespace::shorten($arrayClassURI) : null;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid using static access to class 'EasyRdf\RdfNamespace' in method 'dumpJsonLd'.
                    Open

                                'skos' => EasyRdf\RdfNamespace::get("skos"),
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    StaticAccess

                    Since: 1.4.0

                    Static access causes unexchangeable dependencies to other classes and leads to hard to test code. Avoid using static access at all costs and instead inject dependencies through the constructor. The only case when static access is acceptable is when used for factory methods.

                    Example

                    class Foo
                    {
                        public function bar()
                        {
                            Bar::baz();
                        }
                    }

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

                    Avoid excessively long variable names like $DEFAULT_EXT_PROPERTIES. Keep variable name length under 20.
                    Open

                        private $DEFAULT_EXT_PROPERTIES = array(
                            "dc11:title",
                            "dcterms:title",
                            "skos:prefLabel",
                            "skos:exactMatch",
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    LongVariable

                    Since: 0.2

                    Detects when a field, formal or local variable is declared with a long name.

                    Example

                    class Something {
                        protected $reallyLongIntName = -3; // VIOLATION - Field
                        public static function main( array $interestingArgumentsList[] ) { // VIOLATION - Formal
                            $otherReallyLongName = -5; // VIOLATION - Local
                            for ($interestingIntIndex = 0; // VIOLATION - For
                                 $interestingIntIndex < 10;
                                 $interestingIntIndex++ ) {
                            }
                        }
                    }

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

                    The property $DELETED_PROPERTIES is not named in camelCase.
                    Open

                    class Concept extends VocabularyDataObject implements Modifiable
                    {
                        /**
                         * Stores a label string if the concept has been found through
                         * a altLabel/label in a another language than the ui.
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CamelCasePropertyName

                    Since: 0.2

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

                    Example

                    class ClassName {
                        protected $property_name;
                    }

                    Source

                    Avoid variables with short names like $i. Configured minimum length is 3.
                    Open

                                    $i = 2;
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    ShortVariable

                    Since: 0.2

                    Detects when a field, local, or parameter has a very short name.

                    Example

                    class Something {
                        private $q = 15; // VIOLATION - Field
                        public static function main( array $as ) { // VIOLATION - Formal
                            $r = 20 + $this->q; // VIOLATION - Local
                            for (int $i = 0; $i < 10; $i++) { // Not a Violation (inside FOR)
                                $r += $this->q;
                            }
                        }
                    }

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

                    The property $DEFAULT_EXT_PROPERTIES is not named in camelCase.
                    Open

                    class Concept extends VocabularyDataObject implements Modifiable
                    {
                        /**
                         * Stores a label string if the concept has been found through
                         * a altLabel/label in a another language than the ui.
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CamelCasePropertyName

                    Since: 0.2

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

                    Example

                    class ClassName {
                        protected $property_name;
                    }

                    Source

                    The property $MAPPING_PROPERTIES is not named in camelCase.
                    Open

                    class Concept extends VocabularyDataObject implements Modifiable
                    {
                        /**
                         * Stores a label string if the concept has been found through
                         * a altLabel/label in a another language than the ui.
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    CamelCasePropertyName

                    Since: 0.2

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

                    Example

                    class ClassName {
                        protected $property_name;
                    }

                    Source

                    The 'getDeprecated()' method which returns a boolean should be named 'is...()' or 'has...()'
                    Open

                        public function getDeprecated()
                        {
                            $deprecatedValue = $this->resource->getLiteral('owl:deprecated');
                            return ($deprecatedValue !== null && filter_var($deprecatedValue->getValue(), FILTER_VALIDATE_BOOLEAN));
                        }
                    Severity: Minor
                    Found in src/model/Concept.php by phpmd

                    BooleanGetMethodName

                    Since: 0.2

                    Looks for methods named 'getX()' with 'boolean' as the return type. The convention is to name these methods 'isX()' or 'hasX()'.

                    Example

                    class Foo {
                        /**
                         * @return boolean
                         */
                        public function getFoo() {} // bad
                        /**
                         * @return bool
                         */
                        public function isFoo(); // ok
                        /**
                         * @return boolean
                         */
                        public function getFoo($bar); // ok, unless checkParameterizedMethods=true
                    }

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

                    The variable $pos_reif is not named in camelCase.
                    Open

                        private function addLiteralReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reifs is not named in camelCase.
                    Open

                        private function addResourceReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                if ($pos_reif->isA("rdf:Statement") &&
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addResourceReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                if ($pos_reif->isA("rdf:Statement") &&
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addLiteralReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addResourceReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                if ($pos_reif->isA("rdf:Statement") &&
                    Severity: Minor
                    Found in src/model/Concept.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 $sort_by_notation is not named in camelCase.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addLiteralReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
                    Severity: Minor
                    Found in src/model/Concept.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 $is_well_known is not named in camelCase.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.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 $sort_by_notation is not named in camelCase.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reifs is not named in camelCase.
                    Open

                        private function addLiteralReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reifs is not named in camelCase.
                    Open

                        private function addResourceReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                if ($pos_reif->isA("rdf:Statement") &&
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addLiteralReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addResourceReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                if ($pos_reif->isA("rdf:Statement") &&
                    Severity: Minor
                    Found in src/model/Concept.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 $is_well_known is not named in camelCase.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.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 $is_well_known is not named in camelCase.
                    Open

                        public function getProperties()
                        {
                            $properties = array();
                            $narrowersByUri = array();
                            $inCollection = array();
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addResourceReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                if ($pos_reif->isA("rdf:Statement") &&
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addResourceReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                if ($pos_reif->isA("rdf:Statement") &&
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reif is not named in camelCase.
                    Open

                        private function addLiteralReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
                    Severity: Minor
                    Found in src/model/Concept.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 $pos_reifs is not named in camelCase.
                    Open

                        private function addLiteralReifications($sub, $pred, $obj, &$seen)
                        {
                            $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
                            foreach ($pos_reifs as $pos_reif) {
                                $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
                    Severity: Minor
                    Found in src/model/Concept.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

                    There are no issues that match your filters.

                    Category
                    Status