Code Duplication    Length = 7-8 lines in 2 locations

src/plugins/onTick/siloFull.php 1 location

@@ 632-639 (lines=8) @@
629
            setPermCache("siloLastChecked{$keyID}", $cacheClr);
630
        }
631
632
        if ($siloCount > 0) {
633
            $msg = "Next Silo Check At: {$cacheTimer} EVE Time";
634
            // Send the msg to the channel;
635
            $channelID = $this->toDiscordChannel;
636
            $guild = $discord->guilds->get('id', $this->guild);
637
            $channel = $guild->channels->get('id', $channelID);
638
            $channel->sendMessage($msg, false);
639
        }
640
        $this->logger->addInfo("Silo Check Complete Next Check At {$cacheTimer}");
641
        return null;
642

src/plugins/onTick/siphons.php 1 location

@@ 162-168 (lines=7) @@
159
            $cacheTimer = gmdate("Y-m-d H:i:s", $cacheClr);
160
            setPermCache("siphonLastChecked{$keyID}", $cacheClr);
161
        }
162
        if ($siphonCount > 0) {
163
            $msg = "Next Siphon Check At: {$cacheTimer} EVE Time";
164
            $channelID = $this->toDiscordChannel;
165
            $guild = $discord->guilds->get('id', $this->guild);
166
            $channel = $guild->channels->get('id', $channelID);
167
            $channel->sendMessage($msg, false);
168
        }
169
        $this->logger->addInfo("Siphon Check Complete Next Check At {$cacheTimer}");
170
        return null;
171
    }