{"action":"created","comment":{"url":"https://api.github.com/repos/bravo3/image-manager/pulls/comments/29637243","id":29637243,"diff_hunk":"@@ -255,17 +303,26 @@ public function setImageExists(Image $image, $exists)\n \n     /**\n      * Mark a file as existing on the remote.\n+     * If metadata object is populated, that metadata will be stored\n+     * against the image tag stored in the cache layer.\n      *\n-     * @param string $key\n+     * @param string        $key\n+     * @param ImageMetadata $metadata\n      */\n-    protected function tag($key)\n+    protected function tag($key, ImageMetadata $metadata = null)\n     {\n         if (!$this->cache_pool) {\n             return;\n         }\n \n         $item = $this->cache_pool->getItem('remote.'.$key);\n-        $item->set(1, null);\n+\n+        $value = 1;","path":"src/Bravo3/ImageManager/Services/ImageManager.php","position":113,"original_position":113,"commit_id":"4ade6852d75f9482230dbd69f92edec7c70919da","original_commit_id":"4ade6852d75f9482230dbd69f92edec7c70919da","user":{"login":"jordonsc","id":347611,"avatar_url":"https://avatars.githubusercontent.com/u/347611?v=3","gravatar_id":"","url":"https://api.github.com/users/jordonsc","html_url":"https://github.com/jordonsc","followers_url":"https://api.github.com/users/jordonsc/followers","following_url":"https://api.github.com/users/jordonsc/following{/other_user}","gists_url":"https://api.github.com/users/jordonsc/gists{/gist_id}","starred_url":"https://api.github.com/users/jordonsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordonsc/subscriptions","organizations_url":"https://api.github.com/users/jordonsc/orgs","repos_url":"https://api.github.com/users/jordonsc/repos","events_url":"https://api.github.com/users/jordonsc/events{/privacy}","received_events_url":"https://api.github.com/users/jordonsc/received_events","type":"User","site_admin":false},"body":"Put in an else statement","created_at":"2015-05-05T00:33:21Z","updated_at":"2015-05-05T00:33:21Z","html_url":"https://github.com/bravo3/image-manager/pull/11#discussion_r29637243","pull_request_url":"https://api.github.com/repos/bravo3/image-manager/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/bravo3/image-manager/pulls/comments/29637243"},"html":{"href":"https://github.com/bravo3/image-manager/pull/11#discussion_r29637243"},"pull_request":{"href":"https://api.github.com/repos/bravo3/image-manager/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/bravo3/image-manager/pulls/11","id":34684978,"html_url":"https://github.com/bravo3/image-manager/pull/11","diff_url":"https://github.com/bravo3/image-manager/pull/11.diff","patch_url":"https://github.com/bravo3/image-manager/pull/11.patch","issue_url":"https://api.github.com/repos/bravo3/image-manager/issues/11","number":11,"state":"open","locked":false,"title":"Feature/source image metadata","user":{"login":"purinda","id":3181510,"avatar_url":"https://avatars.githubusercontent.com/u/3181510?v=3","gravatar_id":"","url":"https://api.github.com/users/purinda","html_url":"https://github.com/purinda","followers_url":"https://api.github.com/users/purinda/followers","following_url":"https://api.github.com/users/purinda/following{/other_user}","gists_url":"https://api.github.com/users/purinda/gists{/gist_id}","starred_url":"https://api.github.com/users/purinda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/purinda/subscriptions","organizations_url":"https://api.github.com/users/purinda/orgs","repos_url":"https://api.github.com/users/purinda/repos","events_url":"https://api.github.com/users/purinda/events{/privacy}","received_events_url":"https://api.github.com/users/purinda/received_events","type":"User","site_admin":false},"body":"Store metadata about the source image within the cache layer for the source image. \r\n","created_at":"2015-05-04T23:21:52Z","updated_at":"2015-05-05T00:33:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09ceedb9ab39d05a4f10e2d8f23ea002c9b96c34","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bravo3/image-manager/pulls/11/commits","review_comments_url":"https://api.github.com/repos/bravo3/image-manager/pulls/11/comments","review_comment_url":"https://api.github.com/repos/bravo3/image-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bravo3/image-manager/issues/11/comments","statuses_url":"https://api.github.com/repos/bravo3/image-manager/statuses/4ade6852d75f9482230dbd69f92edec7c70919da","head":{"label":"bravo3:feature/source-image-metadata","ref":"feature/source-image-metadata","sha":"4ade6852d75f9482230dbd69f92edec7c70919da","user":{"login":"bravo3","id":7390697,"avatar_url":"https://avatars.githubusercontent.com/u/7390697?v=3","gravatar_id":"","url":"https://api.github.com/users/bravo3","html_url":"https://github.com/bravo3","followers_url":"https://api.github.com/users/bravo3/followers","following_url":"https://api.github.com/users/bravo3/following{/other_user}","gists_url":"https://api.github.com/users/bravo3/gists{/gist_id}","starred_url":"https://api.github.com/users/bravo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravo3/subscriptions","organizations_url":"https://api.github.com/users/bravo3/orgs","repos_url":"https://api.github.com/users/bravo3/repos","events_url":"https://api.github.com/users/bravo3/events{/privacy}","received_events_url":"https://api.github.com/users/bravo3/received_events","type":"Organization","site_admin":false},"repo":{"id":18726627,"name":"image-manager","full_name":"bravo3/image-manager","owner":{"login":"bravo3","id":7390697,"avatar_url":"https://avatars.githubusercontent.com/u/7390697?v=3","gravatar_id":"","url":"https://api.github.com/users/bravo3","html_url":"https://github.com/bravo3","followers_url":"https://api.github.com/users/bravo3/followers","following_url":"https://api.github.com/users/bravo3/following{/other_user}","gists_url":"https://api.github.com/users/bravo3/gists{/gist_id}","starred_url":"https://api.github.com/users/bravo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravo3/subscriptions","organizations_url":"https://api.github.com/users/bravo3/orgs","repos_url":"https://api.github.com/users/bravo3/repos","events_url":"https://api.github.com/users/bravo3/events{/privacy}","received_events_url":"https://api.github.com/users/bravo3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bravo3/image-manager","description":"A PHP 5.4 image variation manager intended for cloud storage use","fork":false,"url":"https://api.github.com/repos/bravo3/image-manager","forks_url":"https://api.github.com/repos/bravo3/image-manager/forks","keys_url":"https://api.github.com/repos/bravo3/image-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bravo3/image-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bravo3/image-manager/teams","hooks_url":"https://api.github.com/repos/bravo3/image-manager/hooks","issue_events_url":"https://api.github.com/repos/bravo3/image-manager/issues/events{/number}","events_url":"https://api.github.com/repos/bravo3/image-manager/events","assignees_url":"https://api.github.com/repos/bravo3/image-manager/assignees{/user}","branches_url":"https://api.github.com/repos/bravo3/image-manager/branches{/branch}","tags_url":"https://api.github.com/repos/bravo3/image-manager/tags","blobs_url":"https://api.github.com/repos/bravo3/image-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bravo3/image-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bravo3/image-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/bravo3/image-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bravo3/image-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/bravo3/image-manager/languages","stargazers_url":"https://api.github.com/repos/bravo3/image-manager/stargazers","contributors_url":"https://api.github.com/repos/bravo3/image-manager/contributors","subscribers_url":"https://api.github.com/repos/bravo3/image-manager/subscribers","subscription_url":"https://api.github.com/repos/bravo3/image-manager/subscription","commits_url":"https://api.github.com/repos/bravo3/image-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/bravo3/image-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/bravo3/image-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/bravo3/image-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/bravo3/image-manager/contents/{+path}","compare_url":"https://api.github.com/repos/bravo3/image-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bravo3/image-manager/merges","archive_url":"https://api.github.com/repos/bravo3/image-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bravo3/image-manager/downloads","issues_url":"https://api.github.com/repos/bravo3/image-manager/issues{/number}","pulls_url":"https://api.github.com/repos/bravo3/image-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/bravo3/image-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/bravo3/image-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bravo3/image-manager/labels{/name}","releases_url":"https://api.github.com/repos/bravo3/image-manager/releases{/id}","created_at":"2014-04-13T10:24:58Z","updated_at":"2015-04-21T02:48:29Z","pushed_at":"2015-05-04T23:21:52Z","git_url":"git://github.com/bravo3/image-manager.git","ssh_url":"git@github.com:bravo3/image-manager.git","clone_url":"https://github.com/bravo3/image-manager.git","svn_url":"https://github.com/bravo3/image-manager","homepage":null,"size":4882,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"base":{"label":"bravo3:master","ref":"master","sha":"2e5274c3ace06990be5dfe4e57eed17a2b44b754","user":{"login":"bravo3","id":7390697,"avatar_url":"https://avatars.githubusercontent.com/u/7390697?v=3","gravatar_id":"","url":"https://api.github.com/users/bravo3","html_url":"https://github.com/bravo3","followers_url":"https://api.github.com/users/bravo3/followers","following_url":"https://api.github.com/users/bravo3/following{/other_user}","gists_url":"https://api.github.com/users/bravo3/gists{/gist_id}","starred_url":"https://api.github.com/users/bravo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravo3/subscriptions","organizations_url":"https://api.github.com/users/bravo3/orgs","repos_url":"https://api.github.com/users/bravo3/repos","events_url":"https://api.github.com/users/bravo3/events{/privacy}","received_events_url":"https://api.github.com/users/bravo3/received_events","type":"Organization","site_admin":false},"repo":{"id":18726627,"name":"image-manager","full_name":"bravo3/image-manager","owner":{"login":"bravo3","id":7390697,"avatar_url":"https://avatars.githubusercontent.com/u/7390697?v=3","gravatar_id":"","url":"https://api.github.com/users/bravo3","html_url":"https://github.com/bravo3","followers_url":"https://api.github.com/users/bravo3/followers","following_url":"https://api.github.com/users/bravo3/following{/other_user}","gists_url":"https://api.github.com/users/bravo3/gists{/gist_id}","starred_url":"https://api.github.com/users/bravo3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bravo3/subscriptions","organizations_url":"https://api.github.com/users/bravo3/orgs","repos_url":"https://api.github.com/users/bravo3/repos","events_url":"https://api.github.com/users/bravo3/events{/privacy}","received_events_url":"https://api.github.com/users/bravo3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bravo3/image-manager","description":"A PHP 5.4 image variation manager intended for cloud storage use","fork":false,"url":"https://api.github.com/repos/bravo3/image-manager","forks_url":"https://api.github.com/repos/bravo3/image-manager/forks","keys_url":"https://api.github.com/repos/bravo3/image-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bravo3/image-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bravo3/image-manager/teams","hooks_url":"https://api.github.com/repos/bravo3/image-manager/hooks","issue_events_url":"https://api.github.com/repos/bravo3/image-manager/issues/events{/number}","events_url":"https://api.github.com/repos/bravo3/image-manager/events","assignees_url":"https://api.github.com/repos/bravo3/image-manager/assignees{/user}","branches_url":"https://api.github.com/repos/bravo3/image-manager/branches{/branch}","tags_url":"https://api.github.com/repos/bravo3/image-manager/tags","blobs_url":"https://api.github.com/repos/bravo3/image-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bravo3/image-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bravo3/image-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/bravo3/image-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bravo3/image-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/bravo3/image-manager/languages","stargazers_url":"https://api.github.com/repos/bravo3/image-manager/stargazers","contributors_url":"https://api.github.com/repos/bravo3/image-manager/contributors","subscribers_url":"https://api.github.com/repos/bravo3/image-manager/subscribers","subscription_url":"https://api.github.com/repos/bravo3/image-manager/subscription","commits_url":"https://api.github.com/repos/bravo3/image-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/bravo3/image-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/bravo3/image-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/bravo3/image-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/bravo3/image-manager/contents/{+path}","compare_url":"https://api.github.com/repos/bravo3/image-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bravo3/image-manager/merges","archive_url":"https://api.github.com/repos/bravo3/image-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bravo3/image-manager/downloads","issues_url":"https://api.github.com/repos/bravo3/image-manager/issues{/number}","pulls_url":"https://api.github.com/repos/bravo3/image-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/bravo3/image-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/bravo3/image-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bravo3/image-manager/labels{/name}","releases_url":"https://api.github.com/repos/bravo3/image-manager/releases{/id}","created_at":"2014-04-13T10:24:58Z","updated_at":"2015-04-21T02:48:29Z","pushed_at":"2015-05-04T23:21:52Z","git_url":"git://github.com/bravo3/image-manager.git","ssh_url":"git@github.com:bravo3/image-manager.git","clone_url":"https://github.com/bravo3/image-manager.git","svn_url":"https://github.com/bravo3/image-manager","homepage":null,"size":4882,"stargazers_count":6,"watchers_count":6,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bravo3/image-manager/pulls/11"},"html":{"href":"https://github.com/bravo3/image-manager/pull/11"},"issue":{"href":"https://api.github.com/repos/bravo3/image-manager/issues/11"},"comments":{"href":"https://api.github.com/repos/bravo3/image-manager/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/bravo3/image-manager/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/bravo3/image-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bravo3/image-manager/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/bravo3/image-manager/statuses/4ade6852d75f9482230dbd69f92edec7c70919da"}}}}