Code Duplication    Length = 4-7 lines in 2 locations

model/Concept.php 2 locations

@@ 432-438 (lines=7) @@
429
                                $response = $this->model->getResourceFromUri($exuri);
430
                            }
431
432
                            if ($response) {
433
                                $ret[$prop]->addValue(new ConceptMappingPropertyValue($this->model, $this->vocab, $response, $prop), $this->clang);
434
435
                                $this->processExternalResource($response);
436
437
                                continue;
438
                            }
439
                        }
440
                        $ret[$prop]->addValue(new ConceptMappingPropertyValue($this->model, $this->vocab, $val, $prop, $this->clang), $this->clang);
441
                    }
@@ 597-600 (lines=4) @@
594
                    if (isset($ret[$prop])) {
595
                        // checking if the property value is not in the current vocabulary
596
                        $exvoc = $this->model->guessVocabularyFromURI($val->getUri());
597
                        if ($exvoc && $exvoc->getId() !== $this->vocab->getId()) {
598
                            $ret[$prop]->addValue(new ConceptMappingPropertyValue($this->model, $this->vocab, $val, $prop, $this->clang), $this->clang);
599
                            continue;
600
                        }
601
                        $ret[$prop]->addValue(new ConceptPropertyValue($this->model, $this->vocab, $val, $prop, $this->clang), $this->clang);
602
                    }
603