| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 4 |
| Lines | 7 |
| Ratio | 100 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 54 | View Code Duplication | public function onPlayerDisconnect(Player $player, $disconnectionReason) |
|
| 55 | { |
||
| 56 | $msg = '$fffSee you, ' . $player->getNickName() . ' $n$fff($888' . $player->getLogin() . '$fff)'; |
||
| 57 | if ($this->enabled) { |
||
| 58 | $this->connection->chatSendServerMessage($msg); |
||
| 59 | } |
||
| 60 | } |
||
| 61 | |||
| 76 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.