{"action":"reopened","number":4,"pull_request":{"url":"https://api.github.com/repos/markroland/emma/pulls/4","id":104407694,"html_url":"https://github.com/markroland/emma/pull/4","diff_url":"https://github.com/markroland/emma/pull/4.diff","patch_url":"https://github.com/markroland/emma/pull/4.patch","issue_url":"https://api.github.com/repos/markroland/emma/issues/4","number":4,"state":"open","locked":false,"title":"Composer Autoloading & Class Name","user":{"login":"ericdowell","id":525506,"avatar_url":"https://avatars.githubusercontent.com/u/525506?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdowell","html_url":"https://github.com/ericdowell","followers_url":"https://api.github.com/users/ericdowell/followers","following_url":"https://api.github.com/users/ericdowell/following{/other_user}","gists_url":"https://api.github.com/users/ericdowell/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdowell/subscriptions","organizations_url":"https://api.github.com/users/ericdowell/orgs","repos_url":"https://api.github.com/users/ericdowell/repos","events_url":"https://api.github.com/users/ericdowell/events{/privacy}","received_events_url":"https://api.github.com/users/ericdowell/received_events","type":"User","site_admin":false},"body":"## What this did\r\nSturdy case markroland when referencing the namespace (e.g. `MarkRoland`).\r\n\r\nThe composer.json file sets the src folder to be namespaced as `MarkRoland\\Emma`, but the Emma (Client) class only referenced MarkRoland (`markroland`).\r\nThe Emma (Client) class should be under the same namespace as in the composer.json, this is now so.\r\n\r\nRenamed the Emma class to Client, making the reference to the class less redundant (otherwise `MarkRoland\\Emma\\Emma`) and more descriptive (`MarkRoland\\Emma\\Client`).\r\n\r\nUpdating tests, autoload-dev the tests and namespace them under `MarkRoland\\Emma\\Tests` and adding phpunit ~4.8 under require-dev in composer.json.\r\nUpdating travis to use `vendor/bin/phpunit` for running unit tests. Updating bootstrap to use autoload.php instead of the Emma (Client) class directly.\r\n\r\nUpdating all php files in examples folder to reference the Emma (Client) class correctly and use the autoload.php file.\r\n\r\nRemoving all closing php tags ?> in all files, this has become optional and is not recommended.\r\n\r\nUpdating the readme file with reference to new class name `Client` and adding note about the examples folder.\r\n\r\n**Issue:** https://github.com/markroland/emma/issues/5","created_at":"2017-02-02T19:34:22Z","updated_at":"2017-02-06T00:58:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"08c66eb1ea1ee00d36552da3e0e2a79d9b472ead","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/markroland/emma/pulls/4/commits","review_comments_url":"https://api.github.com/repos/markroland/emma/pulls/4/comments","review_comment_url":"https://api.github.com/repos/markroland/emma/pulls/comments{/number}","comments_url":"https://api.github.com/repos/markroland/emma/issues/4/comments","statuses_url":"https://api.github.com/repos/markroland/emma/statuses/8bd74a7a4e14e14cdd2e6ef8c8bd2ab6544cbf50","head":{"label":"ericdowell:composer-autoloading","ref":"composer-autoloading","sha":"8bd74a7a4e14e14cdd2e6ef8c8bd2ab6544cbf50","user":{"login":"ericdowell","id":525506,"avatar_url":"https://avatars.githubusercontent.com/u/525506?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdowell","html_url":"https://github.com/ericdowell","followers_url":"https://api.github.com/users/ericdowell/followers","following_url":"https://api.github.com/users/ericdowell/following{/other_user}","gists_url":"https://api.github.com/users/ericdowell/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdowell/subscriptions","organizations_url":"https://api.github.com/users/ericdowell/orgs","repos_url":"https://api.github.com/users/ericdowell/repos","events_url":"https://api.github.com/users/ericdowell/events{/privacy}","received_events_url":"https://api.github.com/users/ericdowell/received_events","type":"User","site_admin":false},"repo":{"id":80755327,"name":"emma","full_name":"ericdowell/emma","owner":{"login":"ericdowell","id":525506,"avatar_url":"https://avatars.githubusercontent.com/u/525506?v=3","gravatar_id":"","url":"https://api.github.com/users/ericdowell","html_url":"https://github.com/ericdowell","followers_url":"https://api.github.com/users/ericdowell/followers","following_url":"https://api.github.com/users/ericdowell/following{/other_user}","gists_url":"https://api.github.com/users/ericdowell/gists{/gist_id}","starred_url":"https://api.github.com/users/ericdowell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericdowell/subscriptions","organizations_url":"https://api.github.com/users/ericdowell/orgs","repos_url":"https://api.github.com/users/ericdowell/repos","events_url":"https://api.github.com/users/ericdowell/events{/privacy}","received_events_url":"https://api.github.com/users/ericdowell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ericdowell/emma","description":"A PHP Class for the emma (myemma.com) API","fork":true,"url":"https://api.github.com/repos/ericdowell/emma","forks_url":"https://api.github.com/repos/ericdowell/emma/forks","keys_url":"https://api.github.com/repos/ericdowell/emma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ericdowell/emma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ericdowell/emma/teams","hooks_url":"https://api.github.com/repos/ericdowell/emma/hooks","issue_events_url":"https://api.github.com/repos/ericdowell/emma/issues/events{/number}","events_url":"https://api.github.com/repos/ericdowell/emma/events","assignees_url":"https://api.github.com/repos/ericdowell/emma/assignees{/user}","branches_url":"https://api.github.com/repos/ericdowell/emma/branches{/branch}","tags_url":"https://api.github.com/repos/ericdowell/emma/tags","blobs_url":"https://api.github.com/repos/ericdowell/emma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ericdowell/emma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ericdowell/emma/git/refs{/sha}","trees_url":"https://api.github.com/repos/ericdowell/emma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ericdowell/emma/statuses/{sha}","languages_url":"https://api.github.com/repos/ericdowell/emma/languages","stargazers_url":"https://api.github.com/repos/ericdowell/emma/stargazers","contributors_url":"https://api.github.com/repos/ericdowell/emma/contributors","subscribers_url":"https://api.github.com/repos/ericdowell/emma/subscribers","subscription_url":"https://api.github.com/repos/ericdowell/emma/subscription","commits_url":"https://api.github.com/repos/ericdowell/emma/commits{/sha}","git_commits_url":"https://api.github.com/repos/ericdowell/emma/git/commits{/sha}","comments_url":"https://api.github.com/repos/ericdowell/emma/comments{/number}","issue_comment_url":"https://api.github.com/repos/ericdowell/emma/issues/comments{/number}","contents_url":"https://api.github.com/repos/ericdowell/emma/contents/{+path}","compare_url":"https://api.github.com/repos/ericdowell/emma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ericdowell/emma/merges","archive_url":"https://api.github.com/repos/ericdowell/emma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ericdowell/emma/downloads","issues_url":"https://api.github.com/repos/ericdowell/emma/issues{/number}","pulls_url":"https://api.github.com/repos/ericdowell/emma/pulls{/number}","milestones_url":"https://api.github.com/repos/ericdowell/emma/milestones{/number}","notifications_url":"https://api.github.com/repos/ericdowell/emma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ericdowell/emma/labels{/name}","releases_url":"https://api.github.com/repos/ericdowell/emma/releases{/id}","deployments_url":"https://api.github.com/repos/ericdowell/emma/deployments","created_at":"2017-02-02T18:27:04Z","updated_at":"2017-02-02T18:27:06Z","pushed_at":"2017-02-02T19:57:29Z","git_url":"git://github.com/ericdowell/emma.git","ssh_url":"git@github.com:ericdowell/emma.git","clone_url":"https://github.com/ericdowell/emma.git","svn_url":"https://github.com/ericdowell/emma","homepage":"","size":73,"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":"markroland:master","ref":"master","sha":"822bc5748cd9d8d2e98639d2dd9e2c60a7ce67c1","user":{"login":"markroland","id":1097919,"avatar_url":"https://avatars.githubusercontent.com/u/1097919?v=3","gravatar_id":"","url":"https://api.github.com/users/markroland","html_url":"https://github.com/markroland","followers_url":"https://api.github.com/users/markroland/followers","following_url":"https://api.github.com/users/markroland/following{/other_user}","gists_url":"https://api.github.com/users/markroland/gists{/gist_id}","starred_url":"https://api.github.com/users/markroland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markroland/subscriptions","organizations_url":"https://api.github.com/users/markroland/orgs","repos_url":"https://api.github.com/users/markroland/repos","events_url":"https://api.github.com/users/markroland/events{/privacy}","received_events_url":"https://api.github.com/users/markroland/received_events","type":"User","site_admin":false},"repo":{"id":3370737,"name":"emma","full_name":"markroland/emma","owner":{"login":"markroland","id":1097919,"avatar_url":"https://avatars.githubusercontent.com/u/1097919?v=3","gravatar_id":"","url":"https://api.github.com/users/markroland","html_url":"https://github.com/markroland","followers_url":"https://api.github.com/users/markroland/followers","following_url":"https://api.github.com/users/markroland/following{/other_user}","gists_url":"https://api.github.com/users/markroland/gists{/gist_id}","starred_url":"https://api.github.com/users/markroland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markroland/subscriptions","organizations_url":"https://api.github.com/users/markroland/orgs","repos_url":"https://api.github.com/users/markroland/repos","events_url":"https://api.github.com/users/markroland/events{/privacy}","received_events_url":"https://api.github.com/users/markroland/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markroland/emma","description":"A PHP Class for the emma (myemma.com) API","fork":false,"url":"https://api.github.com/repos/markroland/emma","forks_url":"https://api.github.com/repos/markroland/emma/forks","keys_url":"https://api.github.com/repos/markroland/emma/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markroland/emma/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markroland/emma/teams","hooks_url":"https://api.github.com/repos/markroland/emma/hooks","issue_events_url":"https://api.github.com/repos/markroland/emma/issues/events{/number}","events_url":"https://api.github.com/repos/markroland/emma/events","assignees_url":"https://api.github.com/repos/markroland/emma/assignees{/user}","branches_url":"https://api.github.com/repos/markroland/emma/branches{/branch}","tags_url":"https://api.github.com/repos/markroland/emma/tags","blobs_url":"https://api.github.com/repos/markroland/emma/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markroland/emma/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markroland/emma/git/refs{/sha}","trees_url":"https://api.github.com/repos/markroland/emma/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markroland/emma/statuses/{sha}","languages_url":"https://api.github.com/repos/markroland/emma/languages","stargazers_url":"https://api.github.com/repos/markroland/emma/stargazers","contributors_url":"https://api.github.com/repos/markroland/emma/contributors","subscribers_url":"https://api.github.com/repos/markroland/emma/subscribers","subscription_url":"https://api.github.com/repos/markroland/emma/subscription","commits_url":"https://api.github.com/repos/markroland/emma/commits{/sha}","git_commits_url":"https://api.github.com/repos/markroland/emma/git/commits{/sha}","comments_url":"https://api.github.com/repos/markroland/emma/comments{/number}","issue_comment_url":"https://api.github.com/repos/markroland/emma/issues/comments{/number}","contents_url":"https://api.github.com/repos/markroland/emma/contents/{+path}","compare_url":"https://api.github.com/repos/markroland/emma/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markroland/emma/merges","archive_url":"https://api.github.com/repos/markroland/emma/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markroland/emma/downloads","issues_url":"https://api.github.com/repos/markroland/emma/issues{/number}","pulls_url":"https://api.github.com/repos/markroland/emma/pulls{/number}","milestones_url":"https://api.github.com/repos/markroland/emma/milestones{/number}","notifications_url":"https://api.github.com/repos/markroland/emma/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markroland/emma/labels{/name}","releases_url":"https://api.github.com/repos/markroland/emma/releases{/id}","deployments_url":"https://api.github.com/repos/markroland/emma/deployments","created_at":"2012-02-06T20:38:30Z","updated_at":"2016-11-07T22:30:22Z","pushed_at":"2017-02-02T19:57:31Z","git_url":"git://github.com/markroland/emma.git","ssh_url":"git@github.com:markroland/emma.git","clone_url":"https://github.com/markroland/emma.git","svn_url":"https://github.com/markroland/emma","homepage":"","size":69,"stargazers_count":7,"watchers_count":7,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/markroland/emma/pulls/4"},"html":{"href":"https://github.com/markroland/emma/pull/4"},"issue":{"href":"https://api.github.com/repos/markroland/emma/issues/4"},"comments":{"href":"https://api.github.com/repos/markroland/emma/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/markroland/emma/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/markroland/emma/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/markroland/emma/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/markroland/emma/statuses/8bd74a7a4e14e14cdd2e6ef8c8bd2ab6544cbf50"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":1,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":195,"deletions":154,"changed_files":15}}
{"actor":{"display_login":"ericdowell"}}