protected function remoteImageExists($img) { try { $result = file_get_contents($img, false, null, 0, 1); } catch (Exception $ignored) { $this->LOG->error("remoteImageExists -> file_get_contents failed"); return false; } return $result !== false; }
public function plot($user) { if ($this->time != null) { $graph = new ChartPlotter($this->time, $user); $graph->render(); } else { $this->log->error("{$this->user} has no limits to show"); } }