Code Duplication    Length = 13-14 lines in 2 locations

src/plugins/onTick/evemails.php 1 location

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

src/plugins/onTick/notifications.php 1 location

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