Ejemplo n.º 1
0
 /**
  * Returns a blob for the provided post.
  *
  * @param WordPress_GitHub_Sync_Post $post Post to retrieve blob for.
  *
  * @return WordPress_GitHub_Sync_Blob
  */
 protected function get_blob_for_post(WordPress_GitHub_Sync_Post $post)
 {
     if ($blob = $this->get_blob_by_sha($post->sha())) {
         return $blob;
     }
     if ($blob = $this->get_blob_by_path($post->github_path())) {
         return $blob;
     }
     return $post->to_blob();
 }