Code Duplication    Length = 7-7 lines in 2 locations

src/PlaygroundGame/Service/PostVote.php 1 location

@@ 37-43 (lines=7) @@
34
        return $path;
35
    }
36
37
    public function getMediaUrl($post)
38
    {
39
        $media_url = $this->getOptions()->getMediaUrl() . '/';
40
        $media_url .= 'game' . $post->getPostVote()->getId() . '/' . 'post'. $post->getId() . '/';
41
42
        return $media_url;
43
    }
44
45
    /**
46
     * @param boolean $entry

src/PlaygroundGame/Service/TradingCard.php 1 location

@@ 30-36 (lines=7) @@
27
        return $path;
28
    }
29
30
    public function getMediaUrl($model)
31
    {
32
        $media_url = $this->getOptions()->getMediaUrl() . '/';
33
        $media_url .= 'game' . $model->getGame()->getId() . '/' . 'model'. $model->getId() . '/';
34
35
        return $media_url;
36
    }
37
38
    /**
39
     * @param  array $data