Code Duplication    Length = 8-9 lines in 2 locations

source/commands/Send.php 2 locations

@@ 38-45 (lines=8) @@
35
     * @param string $mailText
36
     * @return array|string
37
     */
38
    public function mail(string $playerName, string $mailSubject, string $mailText)
39
    {
40
        return $this->executeCommand(__FUNCTION__, [
41
            'playerName'    =>  $playerName,
42
            'mailSubject'   =>  $this->inQuotes($mailSubject),
43
            'mailText'      =>  $this->inQuotes($mailText)
44
        ]);
45
    }
46
47
    /**
48
     * Send message to the player which will appear in the middle of the screen
@@ 66-74 (lines=9) @@
63
     * @param int $amount
64
     * @return array|string
65
     */
66
    public function money(string $playerName, string $mailSubject, string $mailText, int $amount)
67
    {
68
        return $this->executeCommand(__FUNCTION__, [
69
            'playerName'    =>  $playerName,
70
            'mailSubject'   =>  $this->inQuotes($mailSubject),
71
            'mailText'      =>  $this->inQuotes($mailText),
72
            'amount'        =>  $amount
73
        ]);
74
    }
75
}
76