Code Duplication    Length = 4-6 lines in 2 locations

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

@@ 111-116 (lines=6) @@
108
                        $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
109
110
                        return;
111
                    } else {
112
                        $this->sendChat($player, $text, '$ff0', null);
113
                        $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
114
115
                        return;
116
                    }
117
                } else {
118
                    $this->sendChat($player, $text, '$ff0', null);
119
                    $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
@@ 117-120 (lines=4) @@
114
115
                        return;
116
                    }
117
                } else {
118
                    $this->sendChat($player, $text, '$ff0', null);
119
                    $this->console->writeln('$ff0['.$nick.'$ff0] '.$text);
120
                }
121
            } else {
122
                $this->console->writeln('$333['.$nick.'$333] '.$text);
123
                $this->chatNotification->sendMessage('expansion_customchat.chat.disabledstate',