Code Duplication    Length = 15-15 lines in 2 locations

controller/WebController.php 2 locations

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