Code Duplication    Length = 5-5 lines in 7 locations

src/plugins/onTick/notifications.php 7 locations

@@ 211-215 (lines=5) @@
208
                            $aggCorpName = apiCharacterName($aggCorpID);
209
                            $msg = "@everyone | War declared by {$aggCorpName} against {$defCorpName}. Fighting begins in roughly 24 hours.";
210
                            break;
211
                        case 8: // Alliance war invalidated by CONCORD
212
                            $aggAllianceID = trim(explode(": ", $notificationString[2])[1]);
213
                            $aggAllianceName = apiCharacterName($aggAllianceID);
214
                            $msg = "War with {$aggAllianceName} has been invalidated. Fighting ends in roughly 24 hours.";
215
                            break;
216
                        case 10: // Bill issued
217
                            $msg = "skip";
218
                            break;
@@ 241-245 (lines=5) @@
238
                        case 21: // member left corp
239
                            $msg = "skip";
240
                            break;
241
                        case 31: // Alliance war invalidated by CONCORD
242
                            $aggAllianceID = trim(explode(": ", $notificationString[2])[1]);
243
                            $aggAllianceName = apiCharacterName($aggAllianceID);
244
                            $msg = "War with {$aggAllianceName} has been invalidated. Fighting ends in roughly 24 hours.";
245
                            break;
246
                        case 34: // Noob ship
247
                            $msg = "skip";
248
                            break;
@@ 397-401 (lines=5) @@
394
                            $typeName = apiTypeName($typeID);
395
                            $msg = "Entosis has disabled a module in **{$systemName}** on **{$typeName}** (Date: **{$sentDate}**)";
396
                            break;
397
                        case 160: // Entosis successful
398
                            $solarSystemID = trim(explode(": ", $notificationString[2])[1]);
399
                            $systemName = apiCharacterName($solarSystemID);
400
                            $msg = "Hostile entosis successful. A structure in **{$systemName}** has entered reinforced mode.";
401
                            break;
402
                        case 161: //  Command Nodes Decloaking
403
                            $solarSystemID = trim(explode(": ", $notificationString[2])[1]);
404
                            $systemName = apiCharacterName($solarSystemID);
@@ 402-406 (lines=5) @@
399
                            $systemName = apiCharacterName($solarSystemID);
400
                            $msg = "Hostile entosis successful. A structure in **{$systemName}** has entered reinforced mode.";
401
                            break;
402
                        case 161: //  Command Nodes Decloaking
403
                            $solarSystemID = trim(explode(": ", $notificationString[2])[1]);
404
                            $systemName = apiCharacterName($solarSystemID);
405
                            $msg = "Command nodes decloaking for **{$systemName}**";
406
                            break;
407
                        case 162: //  TCU Destroyed
408
                            $solarSystemID = trim(explode(": ", $notificationString[0])[1]);
409
                            $systemName = apiCharacterName($solarSystemID);
@@ 407-411 (lines=5) @@
404
                            $systemName = apiCharacterName($solarSystemID);
405
                            $msg = "Command nodes decloaking for **{$systemName}**";
406
                            break;
407
                        case 162: //  TCU Destroyed
408
                            $solarSystemID = trim(explode(": ", $notificationString[0])[1]);
409
                            $systemName = apiCharacterName($solarSystemID);
410
                            $msg = "Entosis successful, TCU in **{$systemName}** has been destroyed.";
411
                            break;
412
                        case 163: //  Outpost freeport
413
                            $solarSystemID = trim(explode(": ", $notificationString[1])[1]);
414
                            $systemName = apiCharacterName($solarSystemID);
@@ 412-416 (lines=5) @@
409
                            $systemName = apiCharacterName($solarSystemID);
410
                            $msg = "Entosis successful, TCU in **{$systemName}** has been destroyed.";
411
                            break;
412
                        case 163: //  Outpost freeport
413
                            $solarSystemID = trim(explode(": ", $notificationString[1])[1]);
414
                            $systemName = apiCharacterName($solarSystemID);
415
                            $msg = "Station in **{$systemName}** has now entered freeport mode.";
416
                            break;
417
                        case 182: //  Citadel being anchored
418
                            $corpName = trim(explode(": ", $notificationString[1])[1]);
419
                            $solarSystemID = trim(explode(": ", $notificationString[2])[1]);
@@ 434-438 (lines=5) @@
431
                            $systemName = apiCharacterName($solarSystemID);
432
                            $msg = "@everyone | Citadel under attack in **{$systemName}** by **{$aggCharacterName}** ({$aggCorpName} / {$aggAllianceName}).";
433
                            break;
434
                        case 185: //  Citadel online
435
                            $solarSystemID = trim(explode(": ", $notificationString[0])[1]);
436
                            $systemName = apiCharacterName($solarSystemID);
437
                            $msg = "Citadel now online in **{$systemName}**.";
438
                            break;
439
                        case 188: //  Citadel destroyed
440
                            $corpID = trim(explode("- ", $notificationString[3])[1]);
441
                            $corpName = apiCharacterName($corpID);