Code Duplication    Length = 13-15 lines in 2 locations

src/eXpansion/Bundle/VoteManager/Services/VoteFactories/RestartMap.php 1 location

@@ 30-42 (lines=13) @@
27
    /** @var ChatNotification */
28
    protected $chatNotification;
29
30
    public function __construct(
31
        int $duration,
32
        float $ration,
33
        JukeboxService $jukebox,
34
        MapStorage $mapStorage,
35
        ChatNotification $chatNotification
36
    ) {
37
        parent::__construct($duration, $ration);
38
39
        $this->jukebox = $jukebox;
40
        $this->mapStorage = $mapStorage;
41
        $this->chatNotification = $chatNotification;
42
    }
43
44
    /**
45
     * @inheritdoc

src/eXpansion/Bundle/VoteManager/Structures/RestartMapVote.php 1 location

@@ 39-53 (lines=15) @@
36
     * @param MapStorage $mapStorage
37
     * @param ChatNotification $chatNotification
38
     */
39
    public function __construct(
40
        Player $player,
41
        string $type,
42
        int $duration = 30,
43
        float $ration = 0.57,
44
        JukeboxService $jukebox,
45
        MapStorage $mapStorage,
46
        ChatNotification $chatNotification
47
    ) {
48
        parent::__construct($player, $type, $duration, $ration);
49
50
        $this->jukebox = $jukebox;
51
        $this->mapStorage = $mapStorage;
52
        $this->chatNotification = $chatNotification;
53
    }
54
55
56
    /**