Code Duplication    Length = 4-4 lines in 2 locations

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

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