Code Duplication    Length = 6-6 lines in 2 locations

model/Concept.php 2 locations

@@ 365-370 (lines=6) @@
362
        foreach ($pos_reifs as $pos_reif) {
363
            $lit = $pos_reif->getLiteral("rdf:object", $obj->getLang());
364
365
            if (!is_null($lit) && $lit->getValue() === $obj->getValue() &&
366
                $pos_reif->isA("rdf:Statement") &&
367
                $pos_reif->hasProperty("rdf:predicate", new EasyRdf\Resource($pred, $sub->getGraph())))
368
            {
369
                $this->addExternalTriplesToGraph($pos_reif, $seen);
370
            }
371
        }
372
    }
373
@@ 385-390 (lines=6) @@
382
    {
383
        $pos_reifs = $sub->getGraph()->resourcesMatching("rdf:subject", $sub);
384
        foreach ($pos_reifs as $pos_reif) {
385
            if ($pos_reif->isA("rdf:Statement") &&
386
                $pos_reif->hasProperty("rdf:object", $obj) &&
387
                $pos_reif->hasProperty("rdf:predicate", new EasyRdf\Resource($pred, $sub->getGraph())))
388
            {
389
                $this->addExternalTriplesToGraph($pos_reif, $seen);
390
            }
391
        }
392
    }
393