Code Duplication    Length = 9-12 lines in 2 locations

model/VocabularyConfig.php 2 locations

@@ 216-224 (lines=9) @@
213
    {
214
        $resources = $this->resource->allResources("skosmos:showPropertyInSearch");
215
        $ret = array();
216
        foreach ($resources as $res) {
217
            $prop = $res->getURI();
218
            if (EasyRdf_Namespace::shorten($prop) !== null) // shortening property labels if possible
219
            {
220
                $prop = EasyRdf_Namespace::shorten($prop);
221
            }
222
223
            $ret[] = $prop;
224
        }
225
        return $ret;
226
    }
227
@@ 236-247 (lines=12) @@
233
    public function hasMultiLingualProperty($property)
234
    {
235
        $resources = $this->resource->allResources("skosmos:hasMultiLingualProperty");
236
        foreach ($resources as $res) {
237
            $prop = $res->getURI();
238
            if (EasyRdf_Namespace::shorten($prop) !== null) // shortening property labels if possible
239
            {
240
                $prop = EasyRdf_Namespace::shorten($prop);
241
            }
242
243
            if ($prop === $property) {
244
                return true;
245
            }
246
247
        }
248
        return false;
249
    }
250