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

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