{"action":"closed","number":230,"pull_request":{"url":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/230","id":49443177,"html_url":"https://github.com/rcrowe/TwigBridge/pull/230","diff_url":"https://github.com/rcrowe/TwigBridge/pull/230.diff","patch_url":"https://github.com/rcrowe/TwigBridge/pull/230.patch","issue_url":"https://api.github.com/repos/rcrowe/TwigBridge/issues/230","number":230,"state":"closed","locked":false,"title":"Check if alias is already registered before creating the alias","user":{"login":"Sinius15","id":4204151,"avatar_url":"https://avatars.githubusercontent.com/u/4204151?v=3","gravatar_id":"","url":"https://api.github.com/users/Sinius15","html_url":"https://github.com/Sinius15","followers_url":"https://api.github.com/users/Sinius15/followers","following_url":"https://api.github.com/users/Sinius15/following{/other_user}","gists_url":"https://api.github.com/users/Sinius15/gists{/gist_id}","starred_url":"https://api.github.com/users/Sinius15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sinius15/subscriptions","organizations_url":"https://api.github.com/users/Sinius15/orgs","repos_url":"https://api.github.com/users/Sinius15/repos","events_url":"https://api.github.com/users/Sinius15/events{/privacy}","received_events_url":"https://api.github.com/users/Sinius15/received_events","type":"User","site_admin":false},"body":"In commit 2d57cd6b7b7e6cd4a1ed9246d4bf1087785e5fc4 new code is added that creates a alias. When using default [Laravel TestCase](https://github.com/laravel/laravel/blob/master/tests/TestCase.php) this alias code causes the following crash:\r\n`cannot redeclare class TwigBridge\\Extension\\Laravel\\String`.\r\nWhen adding a `class_exists` statement to check if the alias already exist, this error is fixed.\r\n\r\nEDIT: this is a fix for issue https://github.com/rcrowe/TwigBridge/issues/229","created_at":"2015-11-02T15:17:04Z","updated_at":"2015-11-02T17:37:16Z","closed_at":"2015-11-02T17:37:16Z","merged_at":"2015-11-02T17:37:16Z","merge_commit_sha":"d8447c91e05a115d271372b50ac36df04e5e19ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/230/commits","review_comments_url":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/230/comments","review_comment_url":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rcrowe/TwigBridge/issues/230/comments","statuses_url":"https://api.github.com/repos/rcrowe/TwigBridge/statuses/780371af0bcfc5feadba1e100d7888ed6f2b7e6e","head":{"label":"Sinius15:master","ref":"master","sha":"780371af0bcfc5feadba1e100d7888ed6f2b7e6e","user":{"login":"Sinius15","id":4204151,"avatar_url":"https://avatars.githubusercontent.com/u/4204151?v=3","gravatar_id":"","url":"https://api.github.com/users/Sinius15","html_url":"https://github.com/Sinius15","followers_url":"https://api.github.com/users/Sinius15/followers","following_url":"https://api.github.com/users/Sinius15/following{/other_user}","gists_url":"https://api.github.com/users/Sinius15/gists{/gist_id}","starred_url":"https://api.github.com/users/Sinius15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sinius15/subscriptions","organizations_url":"https://api.github.com/users/Sinius15/orgs","repos_url":"https://api.github.com/users/Sinius15/repos","events_url":"https://api.github.com/users/Sinius15/events{/privacy}","received_events_url":"https://api.github.com/users/Sinius15/received_events","type":"User","site_admin":false},"repo":{"id":45401515,"name":"TwigBridge","full_name":"Sinius15/TwigBridge","owner":{"login":"Sinius15","id":4204151,"avatar_url":"https://avatars.githubusercontent.com/u/4204151?v=3","gravatar_id":"","url":"https://api.github.com/users/Sinius15","html_url":"https://github.com/Sinius15","followers_url":"https://api.github.com/users/Sinius15/followers","following_url":"https://api.github.com/users/Sinius15/following{/other_user}","gists_url":"https://api.github.com/users/Sinius15/gists{/gist_id}","starred_url":"https://api.github.com/users/Sinius15/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sinius15/subscriptions","organizations_url":"https://api.github.com/users/Sinius15/orgs","repos_url":"https://api.github.com/users/Sinius15/repos","events_url":"https://api.github.com/users/Sinius15/events{/privacy}","received_events_url":"https://api.github.com/users/Sinius15/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sinius15/TwigBridge","description":"Give the power of Twig to Laravel 4","fork":true,"url":"https://api.github.com/repos/Sinius15/TwigBridge","forks_url":"https://api.github.com/repos/Sinius15/TwigBridge/forks","keys_url":"https://api.github.com/repos/Sinius15/TwigBridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sinius15/TwigBridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sinius15/TwigBridge/teams","hooks_url":"https://api.github.com/repos/Sinius15/TwigBridge/hooks","issue_events_url":"https://api.github.com/repos/Sinius15/TwigBridge/issues/events{/number}","events_url":"https://api.github.com/repos/Sinius15/TwigBridge/events","assignees_url":"https://api.github.com/repos/Sinius15/TwigBridge/assignees{/user}","branches_url":"https://api.github.com/repos/Sinius15/TwigBridge/branches{/branch}","tags_url":"https://api.github.com/repos/Sinius15/TwigBridge/tags","blobs_url":"https://api.github.com/repos/Sinius15/TwigBridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sinius15/TwigBridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sinius15/TwigBridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sinius15/TwigBridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sinius15/TwigBridge/statuses/{sha}","languages_url":"https://api.github.com/repos/Sinius15/TwigBridge/languages","stargazers_url":"https://api.github.com/repos/Sinius15/TwigBridge/stargazers","contributors_url":"https://api.github.com/repos/Sinius15/TwigBridge/contributors","subscribers_url":"https://api.github.com/repos/Sinius15/TwigBridge/subscribers","subscription_url":"https://api.github.com/repos/Sinius15/TwigBridge/subscription","commits_url":"https://api.github.com/repos/Sinius15/TwigBridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sinius15/TwigBridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sinius15/TwigBridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sinius15/TwigBridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sinius15/TwigBridge/contents/{+path}","compare_url":"https://api.github.com/repos/Sinius15/TwigBridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sinius15/TwigBridge/merges","archive_url":"https://api.github.com/repos/Sinius15/TwigBridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sinius15/TwigBridge/downloads","issues_url":"https://api.github.com/repos/Sinius15/TwigBridge/issues{/number}","pulls_url":"https://api.github.com/repos/Sinius15/TwigBridge/pulls{/number}","milestones_url":"https://api.github.com/repos/Sinius15/TwigBridge/milestones{/number}","notifications_url":"https://api.github.com/repos/Sinius15/TwigBridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sinius15/TwigBridge/labels{/name}","releases_url":"https://api.github.com/repos/Sinius15/TwigBridge/releases{/id}","created_at":"2015-11-02T15:02:59Z","updated_at":"2015-11-02T15:03:00Z","pushed_at":"2015-11-02T15:08:33Z","git_url":"git://github.com/Sinius15/TwigBridge.git","ssh_url":"git@github.com:Sinius15/TwigBridge.git","clone_url":"https://github.com/Sinius15/TwigBridge.git","svn_url":"https://github.com/Sinius15/TwigBridge","homepage":"","size":1637,"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":"rcrowe:master","ref":"master","sha":"ef9ba9aadf63f48fd20d9b57a352a124d4320e4f","user":{"login":"rcrowe","id":282571,"avatar_url":"https://avatars.githubusercontent.com/u/282571?v=3","gravatar_id":"","url":"https://api.github.com/users/rcrowe","html_url":"https://github.com/rcrowe","followers_url":"https://api.github.com/users/rcrowe/followers","following_url":"https://api.github.com/users/rcrowe/following{/other_user}","gists_url":"https://api.github.com/users/rcrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/rcrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcrowe/subscriptions","organizations_url":"https://api.github.com/users/rcrowe/orgs","repos_url":"https://api.github.com/users/rcrowe/repos","events_url":"https://api.github.com/users/rcrowe/events{/privacy}","received_events_url":"https://api.github.com/users/rcrowe/received_events","type":"User","site_admin":false},"repo":{"id":6834113,"name":"TwigBridge","full_name":"rcrowe/TwigBridge","owner":{"login":"rcrowe","id":282571,"avatar_url":"https://avatars.githubusercontent.com/u/282571?v=3","gravatar_id":"","url":"https://api.github.com/users/rcrowe","html_url":"https://github.com/rcrowe","followers_url":"https://api.github.com/users/rcrowe/followers","following_url":"https://api.github.com/users/rcrowe/following{/other_user}","gists_url":"https://api.github.com/users/rcrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/rcrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcrowe/subscriptions","organizations_url":"https://api.github.com/users/rcrowe/orgs","repos_url":"https://api.github.com/users/rcrowe/repos","events_url":"https://api.github.com/users/rcrowe/events{/privacy}","received_events_url":"https://api.github.com/users/rcrowe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rcrowe/TwigBridge","description":"Give the power of Twig to Laravel 4","fork":false,"url":"https://api.github.com/repos/rcrowe/TwigBridge","forks_url":"https://api.github.com/repos/rcrowe/TwigBridge/forks","keys_url":"https://api.github.com/repos/rcrowe/TwigBridge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rcrowe/TwigBridge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rcrowe/TwigBridge/teams","hooks_url":"https://api.github.com/repos/rcrowe/TwigBridge/hooks","issue_events_url":"https://api.github.com/repos/rcrowe/TwigBridge/issues/events{/number}","events_url":"https://api.github.com/repos/rcrowe/TwigBridge/events","assignees_url":"https://api.github.com/repos/rcrowe/TwigBridge/assignees{/user}","branches_url":"https://api.github.com/repos/rcrowe/TwigBridge/branches{/branch}","tags_url":"https://api.github.com/repos/rcrowe/TwigBridge/tags","blobs_url":"https://api.github.com/repos/rcrowe/TwigBridge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rcrowe/TwigBridge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rcrowe/TwigBridge/git/refs{/sha}","trees_url":"https://api.github.com/repos/rcrowe/TwigBridge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rcrowe/TwigBridge/statuses/{sha}","languages_url":"https://api.github.com/repos/rcrowe/TwigBridge/languages","stargazers_url":"https://api.github.com/repos/rcrowe/TwigBridge/stargazers","contributors_url":"https://api.github.com/repos/rcrowe/TwigBridge/contributors","subscribers_url":"https://api.github.com/repos/rcrowe/TwigBridge/subscribers","subscription_url":"https://api.github.com/repos/rcrowe/TwigBridge/subscription","commits_url":"https://api.github.com/repos/rcrowe/TwigBridge/commits{/sha}","git_commits_url":"https://api.github.com/repos/rcrowe/TwigBridge/git/commits{/sha}","comments_url":"https://api.github.com/repos/rcrowe/TwigBridge/comments{/number}","issue_comment_url":"https://api.github.com/repos/rcrowe/TwigBridge/issues/comments{/number}","contents_url":"https://api.github.com/repos/rcrowe/TwigBridge/contents/{+path}","compare_url":"https://api.github.com/repos/rcrowe/TwigBridge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rcrowe/TwigBridge/merges","archive_url":"https://api.github.com/repos/rcrowe/TwigBridge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rcrowe/TwigBridge/downloads","issues_url":"https://api.github.com/repos/rcrowe/TwigBridge/issues{/number}","pulls_url":"https://api.github.com/repos/rcrowe/TwigBridge/pulls{/number}","milestones_url":"https://api.github.com/repos/rcrowe/TwigBridge/milestones{/number}","notifications_url":"https://api.github.com/repos/rcrowe/TwigBridge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rcrowe/TwigBridge/labels{/name}","releases_url":"https://api.github.com/repos/rcrowe/TwigBridge/releases{/id}","created_at":"2012-11-23T22:56:25Z","updated_at":"2015-11-02T15:36:59Z","pushed_at":"2015-11-02T17:37:17Z","git_url":"git://github.com/rcrowe/TwigBridge.git","ssh_url":"git@github.com:rcrowe/TwigBridge.git","clone_url":"https://github.com/rcrowe/TwigBridge.git","svn_url":"https://github.com/rcrowe/TwigBridge","homepage":"","size":1637,"stargazers_count":423,"watchers_count":423,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":66,"mirror_url":null,"open_issues_count":38,"forks":66,"open_issues":38,"watchers":423,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/230"},"html":{"href":"https://github.com/rcrowe/TwigBridge/pull/230"},"issue":{"href":"https://api.github.com/repos/rcrowe/TwigBridge/issues/230"},"comments":{"href":"https://api.github.com/repos/rcrowe/TwigBridge/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rcrowe/TwigBridge/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/rcrowe/TwigBridge/statuses/780371af0bcfc5feadba1e100d7888ed6f2b7e6e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rcrowe","id":282571,"avatar_url":"https://avatars.githubusercontent.com/u/282571?v=3","gravatar_id":"","url":"https://api.github.com/users/rcrowe","html_url":"https://github.com/rcrowe","followers_url":"https://api.github.com/users/rcrowe/followers","following_url":"https://api.github.com/users/rcrowe/following{/other_user}","gists_url":"https://api.github.com/users/rcrowe/gists{/gist_id}","starred_url":"https://api.github.com/users/rcrowe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rcrowe/subscriptions","organizations_url":"https://api.github.com/users/rcrowe/orgs","repos_url":"https://api.github.com/users/rcrowe/repos","events_url":"https://api.github.com/users/rcrowe/events{/privacy}","received_events_url":"https://api.github.com/users/rcrowe/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}