Code Duplication    Length = 8-8 lines in 2 locations

File/Locator.php 1 location

@@ 124-131 (lines=8) @@
121
     *
122
     * @return string
123
     */
124
    private function removeLastSlash($string)
125
    {
126
        if ('/' === substr($string, strlen($string) - 1)) {
127
            $string = substr($string, 0, strlen($string) - 1);
128
        }
129
        
130
        return $string;
131
    }
132
}
133

Filter/Copy/CopyFilter.php 1 location

@@ 90-97 (lines=8) @@
87
     *
88
     * @return string
89
     */
90
    private function removeLastSlash($string)
91
    {
92
        if ('/' === substr($string, strlen($string) - 1)) {
93
            $string = substr($string, 0, strlen($string) - 1);
94
        }
95
        
96
        return $string;
97
    }
98
}
99