/**
  * Gets an array of all our patches.
  * If we have these cached then use caches,
  * otherwise query the server.
  *
  * @return array
  */
 public static function get_patches()
 {
     $client = new self();
     if ($client->get_cached()) {
         self::$patches = $client->get_cached();
     } else {
         self::$patches = $client->query_patch_server();
         $client->cache_response();
     }
     return $client->prepare_patches(self::$patches);
 }