Code Duplication    Length = 8-8 lines in 4 locations

src/AppBundle/Twig/AppExtension.php 4 locations

@@ 151-158 (lines=8) @@
148
        return exec("git rev-parse HEAD");
149
    }
150
151
    public function tabEnabled($tool = "index")
152
    {
153
        $param = false;
154
        if ($this->container->hasParameter("enable.$tool")) {
155
            $param = boolval($this->container->getParameter("enable.$tool"));
156
        }
157
        return $param;
158
    }
159
160
    public function allTools()
161
    {
@@ 305-312 (lines=8) @@
302
        return $colors[$num % count($colors)];
303
    }
304
305
    public function isSingleWiki()
306
    {
307
        $param = true;
308
        if ($this->container->hasParameter("app.single_wiki")) {
309
            $param = boolval($this->container->getParameter("app.single_wiki"));
310
        }
311
        return $param;
312
    }
313
314
    public function getReplagThreshold()
315
    {
@@ 323-330 (lines=8) @@
320
        return $param;
321
    }
322
323
    public function loadStylesheetsFromCDN()
324
    {
325
        $param = false;
326
        if ($this->container->hasParameter("app.load_stylesheets_from_cdn")) {
327
            $param = boolval($this->container->getParameter("app.load_stylesheets_from_cdn"));
328
        }
329
        return $param;
330
    }
331
332
    public function isWMFLabs()
333
    {
@@ 332-339 (lines=8) @@
329
        return $param;
330
    }
331
332
    public function isWMFLabs()
333
    {
334
        $param = false;
335
        if ($this->container->hasParameter("app.is_labs")) {
336
            $param = boolval($this->container->getParameter("app.is_labs"));
337
        }
338
        return $param;
339
    }
340
341
    public function replag()
342
    {