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

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