Code Duplication    Length = 8-8 lines in 2 locations

src/Docker/Dns/DnsDockResolver.php 2 locations

@@ 26-33 (lines=8) @@
23
     *
24
     * @return string
25
     */
26
    private function stripTagNameFromImageName($imageName)
27
    {
28
        if (false !== ($position = strpos($imageName, ':'))) {
29
            $imageName = substr($imageName, 0, $position);
30
        }
31
32
        return $imageName;
33
    }
34
    
35
    private function stripSlashFromImageName($imageName)
36
    {
@@ 35-42 (lines=8) @@
32
        return $imageName;
33
    }
34
    
35
    private function stripSlashFromImageName($imageName)
36
    {
37
        if (false !== ($position = strpos($imageName, '/'))) {
38
            $imageName = substr($imageName, $position+1 );
39
        }
40
41
        return $imageName;
42
    }
43
}
44