Code Duplication    Length = 10-10 lines in 2 locations

src/allejo/stakx/Website.php 2 locations

@@ 393-402 (lines=10) @@
390
                $this->creationQueue[$filePath] = true;
391
            }
392
        }
393
        elseif ($this->dm->shouldBeTracked($filePath))
394
        {
395
            $change = $this->dm->createNewItem($filePath);
396
            TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems());
397
398
            $this->compiler->compileSome(array(
399
                'namespace'  => 'data',
400
                'dependency' => $change,
401
            ));
402
        }
403
        elseif (!is_null($this->tm) && $this->tm->shouldBeTracked($filePath))
404
        {
405
            $this->tm->createNewItem($filePath);
@@ 452-461 (lines=10) @@
449
                'dependency' => $contentItem->getNamespace(),
450
            ));
451
        }
452
        elseif ($this->dm->isTracked($filePath))
453
        {
454
            $change = $this->dm->refreshItem($filePath);
455
            TwigManager::getInstance()->addGlobal('data', $this->dm->getDataItems());
456
457
            $this->compiler->compileSome(array(
458
                'namespace'  => 'data',
459
                'dependency' => $change,
460
            ));
461
        }
462
        elseif (!is_null($this->tm) && $this->tm->isTracked($filePath))
463
        {
464
            $this->tm->refreshItem($filePath);