Code Duplication    Length = 13-14 lines in 2 locations

src/plugins/onTick/evemails.php 1 location

@@ 110-123 (lines=14) @@
107
    /**
108
     *
109
     */
110
    function tick()
111
    {
112
        $lastChecked = getPermCache("mailLastChecked{$this->keyID}");
113
        $keyID = $this->keyID;
114
        $vCode = $this->vCode;
115
        $characterID = $this->characterID;
116
        $discord = $this->discord;
117
118
        if ($lastChecked <= time()) {
119
            $this->logger->addInfo("Checking API Key {$keyID} for new mail..");
120
            $this->checkMails($keyID, $vCode, $characterID, $discord);
121
        }
122
123
    }
124
125
    function checkMails($keyID, $vCode, $characterID, $discord)
126
    {

src/plugins/onTick/notifications.php 1 location

@@ 119-131 (lines=13) @@
116
    /**
117
     *
118
     */
119
    function tick()
120
    {
121
        $lastChecked = getPermCache("notificationsLastChecked{$this->keyID}");
122
        $keyID = $this->keyID;
123
        $vCode = $this->vCode;
124
        $characterID = $this->characterID;
125
126
        if ($lastChecked <= time()) {
127
            $this->logger->addInfo("Checking API Key {$keyID} for notifications..");
128
            $this->getNotifications($keyID, $vCode, $characterID);
129
        }
130
131
    }
132
133
    /**
134
     * @param $keyID