Code Duplication    Length = 8-8 lines in 2 locations

eZ/Bundle/EzPublishCoreBundle/Imagine/PlaceholderProvider/GenericProvider.php 1 location

@@ 80-87 (lines=8) @@
77
        return $path;
78
    }
79
80
    private function getPlaceholderText(string $pattern, ImageValue $value): string
81
    {
82
        return strtr($pattern, [
83
            '%width%' => $value->width,
84
            '%height%' => $value->height,
85
            '%id%' => $value->id,
86
        ]);
87
    }
88
89
    private function getTemporaryPath(): string
90
    {

eZ/Bundle/EzPublishCoreBundle/Imagine/PlaceholderProvider/RemoteProvider.php 1 location

@@ 51-58 (lines=8) @@
48
        return $path;
49
    }
50
51
    private function getPlaceholderUrl(string $urlPattern, ImageValue $value): string
52
    {
53
        return strtr($urlPattern, [
54
            '%id%' => $value->id,
55
            '%width%' => $value->width,
56
            '%height%' => $value->height,
57
        ]);
58
    }
59
60
    private function getTemporaryPath(): string
61
    {