Code Duplication    Length = 10-10 lines in 3 locations

src/plugins/onTick/periodicStatusCheck.php 1 location

@@ 47-56 (lines=10) @@
44
     * @param $discord
45
     * @param $logger
46
     */
47
    public function init($config, $discord, $logger)
48
    {
49
        $this->config = $config;
50
        $this->discord = $discord;
51
        $this->logger = $logger;
52
        $this->guild = $config['bot']['guild'];
53
        $this->toDiscordChannel = $config['plugins']['notifications']['channelID'];
54
        //Refresh check at bot start
55
        setPermCache('statusLastChecked', time() - 5);
56
    }
57
58
    /**
59
     *

src/plugins/onTick/getKillmails.php 1 location

@@ 46-55 (lines=10) @@
43
     * @param $discord
44
     * @param $logger
45
     */
46
    public function init($config, $discord, $logger)
47
    {
48
        $this->config = $config;
49
        $this->discord = $discord;
50
        $this->logger = $logger;
51
        $this->groupConfig = $config['plugins']['getKillmails']['groupConfig'];
52
        $this->guild = $config['bot']['guild'];
53
        //Refresh check at bot start
54
        setPermCache('killmailCheck', time() - 5);
55
    }
56
57
    /**
58
     *

src/plugins/onTick/getKillmailsOld.php 1 location

@@ 46-55 (lines=10) @@
43
     * @param $discord
44
     * @param $logger
45
     */
46
    public function init($config, $discord, $logger)
47
    {
48
        $this->config = $config;
49
        $this->discord = $discord;
50
        $this->logger = $logger;
51
        $this->groupConfig = $config['plugins']['getKillmails']['groupConfig'];
52
        $this->guild = $config['bot']['guild'];
53
        //Refresh check at bot start
54
        setPermCache('killmailCheck', time() - 5);
55
    }
56
57
    /**
58
     *