Code Duplication    Length = 6-6 lines in 2 locations

model/Concept.php 2 locations

@@ 400-405 (lines=6) @@
397
398
        $longUris = $this->resource->propertyUris();
399
        foreach ($longUris as &$prop) {
400
            if (EasyRdf\RdfNamespace::shorten($prop) !== null) {
401
                // shortening property labels if possible
402
                $prop = $sprop = EasyRdf\RdfNamespace::shorten($prop);
403
            } else {
404
                $sprop = "<$prop>";
405
            }
406
            // EasyRdf requires full URIs to be in angle brackets
407
408
            if (in_array($prop, $this->MAPPING_PROPERTIES) && !in_array($prop, $this->DELETED_PROPERTIES)) {
@@ 499-504 (lines=6) @@
496
        foreach ($longUris as &$prop) {
497
            // storing full URI without brackets in a separate variable
498
            $longUri = $prop;
499
            if (EasyRdf\RdfNamespace::shorten($prop) !== null) {
500
                // shortening property labels if possible
501
                $prop = $sprop = EasyRdf\RdfNamespace::shorten($prop);
502
            } else {
503
                $sprop = "<$prop>";
504
            }
505
            // EasyRdf requires full URIs to be in angle brackets
506
507
            if (!in_array($prop, $this->DELETED_PROPERTIES) || ($this->isGroup() === false && $prop === 'skos:member')) {