Code Duplication    Length = 11-11 lines in 2 locations

src/Twig/TwigExtensions.php 2 locations

@@ 77-87 (lines=11) @@
74
        $this->twig->addFunction($filter);
75
    }
76
77
    protected function extendForQueryParams() : void
78
    {
79
        $filter = new \Twig_SimpleFunction(
80
            'queryParams',
81
            function ($queryParams, $prefix = '?') {
82
                return $prefix . http_build_query($queryParams);
83
            },
84
            array('is_safe' => array('html'))
85
        );
86
        $this->twig->addFunction($filter);
87
    }
88
89
    protected function extendForSiteUrl() : void
90
    {
@@ 89-99 (lines=11) @@
86
        $this->twig->addFunction($filter);
87
    }
88
89
    protected function extendForSiteUrl() : void
90
    {
91
        $filter = new \Twig_SimpleFunction(
92
            'siteUrl',
93
            function ($path = '') {
94
                return $this->config['base_url'] . $path;
95
            },
96
            array('is_safe' => array('html'))
97
        );
98
        $this->twig->addFunction($filter);
99
    }
100
101
    protected function extendForVarDump() : void
102
    {