Code Duplication    Length = 6-6 lines in 2 locations

model/Concept.php 2 locations

@@ 247-252 (lines=6) @@
244
245
        $longUris = $this->resource->propertyUris();
246
        foreach ($longUris as &$prop) {
247
            if (EasyRdf\RdfNamespace::shorten($prop) !== null) {
248
                // shortening property labels if possible
249
                $prop = $sprop = EasyRdf\RdfNamespace::shorten($prop);
250
            } else {
251
                $sprop = "<$prop>";
252
            }
253
            // EasyRdf requires full URIs to be in angle brackets
254
255
            if (in_array($prop, $this->MAPPING_PROPERTIES) && !in_array($prop, $this->DELETED_PROPERTIES)) {
@@ 343-348 (lines=6) @@
340
        foreach ($longUris as &$prop) {
341
            // storing full URI without brackets in a separate variable
342
            $longUri = $prop;
343
            if (EasyRdf\RdfNamespace::shorten($prop) !== null) {
344
                // shortening property labels if possible
345
                $prop = $sprop = EasyRdf\RdfNamespace::shorten($prop);
346
            } else {
347
                $sprop = "<$prop>";
348
            }
349
            // EasyRdf requires full URIs to be in angle brackets
350
351
            if (!in_array($prop, $this->DELETED_PROPERTIES) || ($this->isGroup() === false && $prop === 'skos:member')) {