Code Duplication    Length = 4-6 lines in 2 locations

src/eXpansion/Bundle/CustomChat/Plugins/CustomChat.php 2 locations

@@ 147-152 (lines=6) @@
144
                        $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
145
146
                        return;
147
                    } else {
148
                        $this->sendChat($player, $text, '$ff0', null);
149
                        $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
150
151
                        return;
152
                    }
153
                } else {
154
                    $this->sendChat($player, $text, '$ff0', null);
155
                    $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
@@ 153-156 (lines=4) @@
150
151
                        return;
152
                    }
153
                } else {
154
                    $this->sendChat($player, $text, '$ff0', null);
155
                    $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
156
                }
157
            } else {
158
                $this->console->writeln('$333['.$nick.'$333] '.$text);
159
                $this->chatNotification->sendMessage('expansion_customchat.chat.disabledstate',