Code Duplication    Length = 6-6 lines in 2 locations

model/Concept.php 2 locations

@@ 223-228 (lines=6) @@
220
221
        $long_uris = $this->resource->propertyUris();
222
        foreach ($long_uris as &$prop) {
223
            if (EasyRdf_Namespace::shorten($prop) !== null) {
224
                // shortening property labels if possible
225
                $prop = $sprop = EasyRdf_Namespace::shorten($prop);
226
            } else {
227
                $sprop = "<$prop>";
228
            }
229
            // EasyRdf requires full URIs to be in angle brackets
230
231
            if (in_array($prop, $this->MAPPING_PROPERTIES) && !in_array($prop, $this->DELETED_PROPERTIES)) {
@@ 316-321 (lines=6) @@
313
        }
314
315
        foreach ($long_uris as &$prop) {
316
            if (EasyRdf_Namespace::shorten($prop) !== null) {
317
                // shortening property labels if possible
318
                $prop = $sprop = EasyRdf_Namespace::shorten($prop);
319
            } else {
320
                $sprop = "<$prop>";
321
            }
322
            // EasyRdf requires full URIs to be in angle brackets
323
324
            if (!in_array($prop, $this->DELETED_PROPERTIES)) {