{"action":"closed","number":8364,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/8364","id":35179243,"html_url":"https://github.com/yiisoft/yii2/pull/8364","diff_url":"https://github.com/yiisoft/yii2/pull/8364.diff","patch_url":"https://github.com/yiisoft/yii2/pull/8364.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8364","number":8364,"state":"closed","locked":false,"title":"Correcting beforeCopy example","user":{"login":"YasserHassan","id":9349772,"avatar_url":"https://avatars.githubusercontent.com/u/9349772?v=3","gravatar_id":"","url":"https://api.github.com/users/YasserHassan","html_url":"https://github.com/YasserHassan","followers_url":"https://api.github.com/users/YasserHassan/followers","following_url":"https://api.github.com/users/YasserHassan/following{/other_user}","gists_url":"https://api.github.com/users/YasserHassan/gists{/gist_id}","starred_url":"https://api.github.com/users/YasserHassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YasserHassan/subscriptions","organizations_url":"https://api.github.com/users/YasserHassan/orgs","repos_url":"https://api.github.com/users/YasserHassan/repos","events_url":"https://api.github.com/users/YasserHassan/events{/privacy}","received_events_url":"https://api.github.com/users/YasserHassan/received_events","type":"User","site_admin":false},"body":"The `$from` parameter takes values like `/folder1/folder2/folder3/css`. `dirname($from)` returns `/folder1/folder2/folder3` and therefore `basename(dirname($from))` returns `folder3` instead of the intended `css` in the given example to make it work right.","created_at":"2015-05-11T23:10:57Z","updated_at":"2015-05-11T23:38:13Z","closed_at":"2015-05-11T23:38:13Z","merged_at":null,"merge_commit_sha":"c5641fcb3deda54e26677e7066284e11547aa56c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8364/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2/pulls/8364/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8364/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/58df56430a0f248524b74f09d60797d1733e6145","head":{"label":"YasserHassan:patch-2","ref":"patch-2","sha":"58df56430a0f248524b74f09d60797d1733e6145","user":{"login":"YasserHassan","id":9349772,"avatar_url":"https://avatars.githubusercontent.com/u/9349772?v=3","gravatar_id":"","url":"https://api.github.com/users/YasserHassan","html_url":"https://github.com/YasserHassan","followers_url":"https://api.github.com/users/YasserHassan/followers","following_url":"https://api.github.com/users/YasserHassan/following{/other_user}","gists_url":"https://api.github.com/users/YasserHassan/gists{/gist_id}","starred_url":"https://api.github.com/users/YasserHassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YasserHassan/subscriptions","organizations_url":"https://api.github.com/users/YasserHassan/orgs","repos_url":"https://api.github.com/users/YasserHassan/repos","events_url":"https://api.github.com/users/YasserHassan/events{/privacy}","received_events_url":"https://api.github.com/users/YasserHassan/received_events","type":"User","site_admin":false},"repo":{"id":33216371,"name":"yii2","full_name":"YasserHassan/yii2","owner":{"login":"YasserHassan","id":9349772,"avatar_url":"https://avatars.githubusercontent.com/u/9349772?v=3","gravatar_id":"","url":"https://api.github.com/users/YasserHassan","html_url":"https://github.com/YasserHassan","followers_url":"https://api.github.com/users/YasserHassan/followers","following_url":"https://api.github.com/users/YasserHassan/following{/other_user}","gists_url":"https://api.github.com/users/YasserHassan/gists{/gist_id}","starred_url":"https://api.github.com/users/YasserHassan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YasserHassan/subscriptions","organizations_url":"https://api.github.com/users/YasserHassan/orgs","repos_url":"https://api.github.com/users/YasserHassan/repos","events_url":"https://api.github.com/users/YasserHassan/events{/privacy}","received_events_url":"https://api.github.com/users/YasserHassan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/YasserHassan/yii2","description":"Yii 2 framework main development repo","fork":true,"url":"https://api.github.com/repos/YasserHassan/yii2","forks_url":"https://api.github.com/repos/YasserHassan/yii2/forks","keys_url":"https://api.github.com/repos/YasserHassan/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YasserHassan/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YasserHassan/yii2/teams","hooks_url":"https://api.github.com/repos/YasserHassan/yii2/hooks","issue_events_url":"https://api.github.com/repos/YasserHassan/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/YasserHassan/yii2/events","assignees_url":"https://api.github.com/repos/YasserHassan/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/YasserHassan/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/YasserHassan/yii2/tags","blobs_url":"https://api.github.com/repos/YasserHassan/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YasserHassan/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YasserHassan/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/YasserHassan/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YasserHassan/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/YasserHassan/yii2/languages","stargazers_url":"https://api.github.com/repos/YasserHassan/yii2/stargazers","contributors_url":"https://api.github.com/repos/YasserHassan/yii2/contributors","subscribers_url":"https://api.github.com/repos/YasserHassan/yii2/subscribers","subscription_url":"https://api.github.com/repos/YasserHassan/yii2/subscription","commits_url":"https://api.github.com/repos/YasserHassan/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/YasserHassan/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/YasserHassan/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/YasserHassan/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/YasserHassan/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/YasserHassan/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YasserHassan/yii2/merges","archive_url":"https://api.github.com/repos/YasserHassan/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YasserHassan/yii2/downloads","issues_url":"https://api.github.com/repos/YasserHassan/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/YasserHassan/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/YasserHassan/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/YasserHassan/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YasserHassan/yii2/labels{/name}","releases_url":"https://api.github.com/repos/YasserHassan/yii2/releases{/id}","created_at":"2015-03-31T23:50:16Z","updated_at":"2015-03-31T23:50:19Z","pushed_at":"2015-05-11T23:10:37Z","git_url":"git://github.com/YasserHassan/yii2.git","ssh_url":"git@github.com:YasserHassan/yii2.git","clone_url":"https://github.com/YasserHassan/yii2.git","svn_url":"https://github.com/YasserHassan/yii2","homepage":"http://www.yiiframework.com","size":35908,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yiisoft:master","ref":"master","sha":"a9f48ee4a2a3b447a592b132c4e354015c3d588c","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":3431193,"name":"yii2","full_name":"yiisoft/yii2","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2","description":"Yii 2 framework main development repo","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2","forks_url":"https://api.github.com/repos/yiisoft/yii2/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2/releases{/id}","created_at":"2012-02-13T15:32:36Z","updated_at":"2015-05-11T22:52:49Z","pushed_at":"2015-05-11T23:10:57Z","git_url":"git://github.com/yiisoft/yii2.git","ssh_url":"git@github.com:yiisoft/yii2.git","clone_url":"https://github.com/yiisoft/yii2.git","svn_url":"https://github.com/yiisoft/yii2","homepage":"http://www.yiiframework.com","size":93259,"stargazers_count":5668,"watchers_count":5668,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3153,"mirror_url":null,"open_issues_count":740,"forks":3153,"open_issues":740,"watchers":5668,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8364"},"html":{"href":"https://github.com/yiisoft/yii2/pull/8364"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/8364"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2/issues/8364/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8364/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2/pulls/8364/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2/statuses/58df56430a0f248524b74f09d60797d1733e6145"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}