Code Duplication    Length = 15-15 lines in 2 locations

controller/WebController.php 2 locations

@@ 310-324 (lines=15) @@
307
    /**
308
     * Invokes the about page for the Skosmos service.
309
     */
310
    public function invokeAboutPage($request)
311
    {
312
        $template = $this->twig->loadTemplate('about.twig');
313
        $this->setLanguageProperties($request->getLang());
314
        $url = $request->getServerConstant('HTTP_HOST');
315
        $version = $this->model->getVersion();
316
317
        echo $template->render(
318
            array(
319
                'languages' => $this->languages,
320
                'version' => $version,
321
                'server_instance' => $url,
322
                'request' => $request,
323
            ));
324
    }
325
326
    /**
327
     * Invokes the search for concepts in all the availible ontologies.
@@ 491-505 (lines=15) @@
488
     * Invokes the vocabulary group index page template.
489
     * @param boolean $stats set to true to get vocabulary statistics visible.
490
     */
491
    public function invokeGroupIndex($request, $stats = false)
492
    {
493
        $lang = $request->getLang();
494
        $this->setLanguageProperties($lang);
495
        $template = $this->twig->loadTemplate('group-index.twig');
496
        $vocab = $request->getVocab();
497
498
        echo $template->render(
499
            array(
500
                'languages' => $this->languages,
501
                'stats' => $stats,
502
                'vocab' => $vocab,
503
                'request' => $request,
504
            ));
505
    }
506
507
    /**
508
     * Loads and renders the view containing a specific vocabulary.