Code Duplication    Length = 11-11 lines in 2 locations

src/Twig/TwigExtensions.php 2 locations

@@ 110-120 (lines=11) @@
107
        $this->twig->addFunction($filter);
108
    }
109
110
    protected function extendForQueryParams() : void
111
    {
112
        $filter = new \Twig_SimpleFunction(
113
            'queryParams',
114
            function ($queryParams, $prefix = '?') {
115
                return $prefix . http_build_query($queryParams);
116
            },
117
            array('is_safe' => array('html'))
118
        );
119
        $this->twig->addFunction($filter);
120
    }
121
122
    protected function extendForSiteUrl() : void
123
    {
@@ 122-132 (lines=11) @@
119
        $this->twig->addFunction($filter);
120
    }
121
122
    protected function extendForSiteUrl() : void
123
    {
124
        $filter = new \Twig_SimpleFunction(
125
            'siteUrl',
126
            function ($path = '') {
127
                return $this->config['base_url'] . $path;
128
            },
129
            array('is_safe' => array('html'))
130
        );
131
        $this->twig->addFunction($filter);
132
    }
133
134
    protected function extendForVarDump() : void
135
    {