Code Duplication    Length = 10-10 lines in 2 locations

src/allejo/stakx/Object/Website.php 2 locations

@@ 373-382 (lines=10) @@
370
                'dependency' => $contentItem->getCollection()
371
            ));
372
        }
373
        elseif ($this->dm->isHandled($filePath))
374
        {
375
            $change = $this->dm->createNewItem($filePath);
376
            TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems());
377
378
            $this->compiler->compileSome(array(
379
                'namespace' => 'data',
380
                'dependency' => $change
381
            ));
382
        }
383
        elseif (!is_null($this->tm) && $this->tm->isHandled($filePath))
384
        {
385
            $this->tm->createNewItem($filePath);
@@ 412-421 (lines=10) @@
409
                'dependency' => $contentItem->getCollection()
410
            ));
411
        }
412
        elseif ($this->dm->isTracked($filePath))
413
        {
414
            $change = $this->dm->refreshItem($filePath);
415
            TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems());
416
417
            $this->compiler->compileSome(array(
418
                'namespace' => 'data',
419
                'dependency' => $change
420
            ));
421
        }
422
        elseif (!is_null($this->tm) && $this->tm->isTracked($filePath))
423
        {
424
            $this->tm->refreshItem($filePath);