public function onRun()
 {
     foreach ($this->queries as $query) {
         if (($return = Utils::getURL(str_replace("{USERNAME}", urlencode($this->id), $query->getCheckURL()))) != false && is_array($return = json_decode($return, true)) && isset($return["voted"]) && is_bool($return["voted"]) && isset($return["claimed"]) && is_bool($return["claimed"])) {
             $query->setVoted($return["voted"] ? 1 : -1);
             $query->setClaimed($return["claimed"] ? 1 : -1);
             if ($query->hasVoted() && !$query->hasClaimed()) {
                 if (($return = Utils::getURL(str_replace("{USERNAME}", urlencode($this->id), $query->getClaimURL()))) != false && is_array($return = json_decode($return, true)) && isset($return["voted"]) && is_bool($return["voted"]) && isset($return["claimed"]) && is_bool($return["claimed"])) {
                     $query->setVoted($return["voted"] ? 1 : -1);
                     $query->setClaimed($return["claimed"] ? 1 : -1);
                     if ($query->hasVoted() && $query->hasClaimed()) {
                         $this->rewards++;
                     }
                 } else {
                     $this->error = "Error sending claim data for \"" . $this->id . "\" to \"" . str_replace("{USERNAME}", urlencode($this->id), $query->getClaimURL()) . "\". Invalid VRC file or bad Internet connection.";
                     $query->setVoted(-1);
                     $query->setClaimed(-1);
                 }
             }
         } else {
             $this->error = "Error fetching vote data for \"" . $this->id . "\" from \"" . str_replace("{USERNAME}", urlencode($this->id), $query->getCheckURL()) . "\". Invalid VRC file or bad Internet connection.";
             $query->setVoted(-1);
             $query->setClaimed(-1);
         }
     }
 }