Code Duplication    Length = 14-14 lines in 2 locations

src/allejo/stakx/Filesystem/FilesystemPath.php 1 location

@@ 143-156 (lines=14) @@
140
     *
141
     * @return string
142
     */
143
    private function buildPath()
144
    {
145
        $paths = [];
146
147
        foreach (func_get_args() as $arg)
148
        {
149
            if ($arg !== '')
150
            {
151
                $paths[] = $arg;
152
            }
153
        }
154
155
        return preg_replace('#(?<!:)/+#', '/', join('/', $paths));
156
    }
157
158
    /**
159
     * Convert a Windows path into a blasphemous Unix path.

src/allejo/stakx/Templating/Twig/Extension/BaseUrlFunction.php 1 location

@@ 97-110 (lines=14) @@
94
     *
95
     * @return string
96
     */
97
    private function buildPermalink()
98
    {
99
        $paths = [];
100
101
        foreach (func_get_args() as $arg)
102
        {
103
            if ($arg !== '')
104
            {
105
                $paths[] = $arg;
106
            }
107
        }
108
109
        return preg_replace('#(?<!:)/+#', '/', join('/', $paths));
110
    }
111
}
112