Code Duplication    Length = 15-15 lines in 2 locations

controller/WebController.php 2 locations

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