Code Duplication    Length = 4-4 lines in 2 locations

src/eXpansion/Framework/Core/Helpers/ChatNotification.php 2 locations

@@ 66-69 (lines=4) @@
63
            $message = $this->translations->getTranslation($messageId, $parameters, strtolower($player->getLanguage()));
64
        }
65
66
        if (is_array($to)) {
67
            $to = implode(",", $to);
68
            $message = $this->translations->getTranslations($messageId, $parameters);
69
        }
70
71
        if ($to === null) {
72
            $message = $this->translations->getTranslations($messageId, $parameters);
@@ 71-74 (lines=4) @@
68
            $message = $this->translations->getTranslations($messageId, $parameters);
69
        }
70
71
        if ($to === null) {
72
            $message = $this->translations->getTranslations($messageId, $parameters);
73
            $this->console->writeln(end($message)['Text']);
74
        }
75
76
        try {
77
            $this->connection->chatSendServerMessage($message, $to);