Code Duplication    Length = 15-15 lines in 2 locations

controller/WebController.php 2 locations

@@ 482-496 (lines=15) @@
479
    /**
480
     * Invokes the about page for the Skosmos service.
481
     */
482
    public function invokeAboutPage($request)
483
    {
484
        $template = $this->twig->loadTemplate('about.twig');
485
        $this->setLanguageProperties($request->getLang());
486
        $url = $request->getServerConstant('HTTP_HOST');
487
        $version = $this->model->getVersion();
488
489
        echo $template->render(
490
            array(
491
                'languages' => $this->languages,
492
                'version' => $version,
493
                'server_instance' => $url,
494
                'request' => $request,
495
            ));
496
    }
497
498
    /**
499
     * Invokes the search for concepts in all the availible ontologies.
@@ 667-681 (lines=15) @@
664
     * Invokes the vocabulary group index page template.
665
     * @param boolean $stats set to true to get vocabulary statistics visible.
666
     */
667
    public function invokeGroupIndex($request, $stats = false)
668
    {
669
        $lang = $request->getLang();
670
        $this->setLanguageProperties($lang);
671
        $template = $this->twig->loadTemplate('group-index.twig');
672
        $vocab = $request->getVocab();
673
674
        echo $template->render(
675
            array(
676
                'languages' => $this->languages,
677
                'stats' => $stats,
678
                'vocab' => $vocab,
679
                'request' => $request,
680
            ));
681
    }
682
683
    /**
684
     * Loads and renders the view containing a specific vocabulary.