protected function downloadJSON() { $json = file_get_contents('https://raw.github.com/antirez/redis-doc/master/commands.json'); if (empty($json)) { throw new \Exception('Can not fetch json doc'); } return $json; }