Code Duplication    Length = 15-15 lines in 2 locations

controller/WebController.php 2 locations

@@ 332-346 (lines=15) @@
329
    /**
330
     * Invokes the about page for the Skosmos service.
331
     */
332
    public function invokeAboutPage($request)
333
    {
334
        $template = $this->twig->loadTemplate('about.twig');
335
        $this->setLanguageProperties($request->getLang());
336
        $url = $request->getServerConstant('HTTP_HOST');
337
        $version = $this->model->getVersion();
338
339
        echo $template->render(
340
            array(
341
                'languages' => $this->languages,
342
                'version' => $version,
343
                'server_instance' => $url,
344
                'request' => $request,
345
            ));
346
    }
347
348
    /**
349
     * Invokes the search for concepts in all the availible ontologies.
@@ 512-526 (lines=15) @@
509
     * Invokes the vocabulary group index page template.
510
     * @param boolean $stats set to true to get vocabulary statistics visible.
511
     */
512
    public function invokeGroupIndex($request, $stats = false)
513
    {
514
        $lang = $request->getLang();
515
        $this->setLanguageProperties($lang);
516
        $template = $this->twig->loadTemplate('group-index.twig');
517
        $vocab = $request->getVocab();
518
519
        echo $template->render(
520
            array(
521
                'languages' => $this->languages,
522
                'stats' => $stats,
523
                'vocab' => $vocab,
524
                'request' => $request,
525
            ));
526
    }
527
528
    /**
529
     * Loads and renders the view containing a specific vocabulary.