{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/exploide/sc-photo-service/pulls/3","id":215684365,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1Njg0MzY1","html_url":"https://github.com/exploide/sc-photo-service/pull/3","diff_url":"https://github.com/exploide/sc-photo-service/pull/3.diff","patch_url":"https://github.com/exploide/sc-photo-service/pull/3.patch","issue_url":"https://api.github.com/repos/exploide/sc-photo-service/issues/3","number":3,"state":"open","locked":false,"title":"Refactor to PSR-1 and change config to a class with constants","user":{"login":"r15ch13","id":432127,"node_id":"MDQ6VXNlcjQzMjEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/432127?v=4","gravatar_id":"","url":"https://api.github.com/users/r15ch13","html_url":"https://github.com/r15ch13","followers_url":"https://api.github.com/users/r15ch13/followers","following_url":"https://api.github.com/users/r15ch13/following{/other_user}","gists_url":"https://api.github.com/users/r15ch13/gists{/gist_id}","starred_url":"https://api.github.com/users/r15ch13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r15ch13/subscriptions","organizations_url":"https://api.github.com/users/r15ch13/orgs","repos_url":"https://api.github.com/users/r15ch13/repos","events_url":"https://api.github.com/users/r15ch13/events{/privacy}","received_events_url":"https://api.github.com/users/r15ch13/received_events","type":"User","site_admin":false},"body":"This time it's mostly style changes and changes to `config.php` :smile:\r\n\r\n- Methods to `camelCase`\r\n- removed `?>` and end of file\r\n- added CLI check for `cleanup.php` and `migrate_db.php` (just in case the `.htaccess` fails)\r\n- `config.php` is now a Class with constants: `Config::MAX_UPLOAD_FILE_SIZE_KB` (no `require 'config.php'` in functions)\r\n","created_at":"2018-09-14T19:06:13Z","updated_at":"2018-09-14T19:06:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/exploide/sc-photo-service/pulls/3/commits","review_comments_url":"https://api.github.com/repos/exploide/sc-photo-service/pulls/3/comments","review_comment_url":"https://api.github.com/repos/exploide/sc-photo-service/pulls/comments{/number}","comments_url":"https://api.github.com/repos/exploide/sc-photo-service/issues/3/comments","statuses_url":"https://api.github.com/repos/exploide/sc-photo-service/statuses/5c05d4e0e6dd82a06e18ee9cc86d9035e31653c2","head":{"label":"r15ch13:refactor","ref":"refactor","sha":"5c05d4e0e6dd82a06e18ee9cc86d9035e31653c2","user":{"login":"r15ch13","id":432127,"node_id":"MDQ6VXNlcjQzMjEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/432127?v=4","gravatar_id":"","url":"https://api.github.com/users/r15ch13","html_url":"https://github.com/r15ch13","followers_url":"https://api.github.com/users/r15ch13/followers","following_url":"https://api.github.com/users/r15ch13/following{/other_user}","gists_url":"https://api.github.com/users/r15ch13/gists{/gist_id}","starred_url":"https://api.github.com/users/r15ch13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r15ch13/subscriptions","organizations_url":"https://api.github.com/users/r15ch13/orgs","repos_url":"https://api.github.com/users/r15ch13/repos","events_url":"https://api.github.com/users/r15ch13/events{/privacy}","received_events_url":"https://api.github.com/users/r15ch13/received_events","type":"User","site_admin":false},"repo":{"id":148690498,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg2OTA0OTg=","name":"sc-photo-service","full_name":"r15ch13/sc-photo-service","owner":{"login":"r15ch13","id":432127,"node_id":"MDQ6VXNlcjQzMjEyNw==","avatar_url":"https://avatars2.githubusercontent.com/u/432127?v=4","gravatar_id":"","url":"https://api.github.com/users/r15ch13","html_url":"https://github.com/r15ch13","followers_url":"https://api.github.com/users/r15ch13/followers","following_url":"https://api.github.com/users/r15ch13/following{/other_user}","gists_url":"https://api.github.com/users/r15ch13/gists{/gist_id}","starred_url":"https://api.github.com/users/r15ch13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r15ch13/subscriptions","organizations_url":"https://api.github.com/users/r15ch13/orgs","repos_url":"https://api.github.com/users/r15ch13/repos","events_url":"https://api.github.com/users/r15ch13/events{/privacy}","received_events_url":"https://api.github.com/users/r15ch13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/r15ch13/sc-photo-service","description":"Photo upload service for StreetComplete","fork":true,"url":"https://api.github.com/repos/r15ch13/sc-photo-service","forks_url":"https://api.github.com/repos/r15ch13/sc-photo-service/forks","keys_url":"https://api.github.com/repos/r15ch13/sc-photo-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r15ch13/sc-photo-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r15ch13/sc-photo-service/teams","hooks_url":"https://api.github.com/repos/r15ch13/sc-photo-service/hooks","issue_events_url":"https://api.github.com/repos/r15ch13/sc-photo-service/issues/events{/number}","events_url":"https://api.github.com/repos/r15ch13/sc-photo-service/events","assignees_url":"https://api.github.com/repos/r15ch13/sc-photo-service/assignees{/user}","branches_url":"https://api.github.com/repos/r15ch13/sc-photo-service/branches{/branch}","tags_url":"https://api.github.com/repos/r15ch13/sc-photo-service/tags","blobs_url":"https://api.github.com/repos/r15ch13/sc-photo-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r15ch13/sc-photo-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r15ch13/sc-photo-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/r15ch13/sc-photo-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r15ch13/sc-photo-service/statuses/{sha}","languages_url":"https://api.github.com/repos/r15ch13/sc-photo-service/languages","stargazers_url":"https://api.github.com/repos/r15ch13/sc-photo-service/stargazers","contributors_url":"https://api.github.com/repos/r15ch13/sc-photo-service/contributors","subscribers_url":"https://api.github.com/repos/r15ch13/sc-photo-service/subscribers","subscription_url":"https://api.github.com/repos/r15ch13/sc-photo-service/subscription","commits_url":"https://api.github.com/repos/r15ch13/sc-photo-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/r15ch13/sc-photo-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/r15ch13/sc-photo-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/r15ch13/sc-photo-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/r15ch13/sc-photo-service/contents/{+path}","compare_url":"https://api.github.com/repos/r15ch13/sc-photo-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r15ch13/sc-photo-service/merges","archive_url":"https://api.github.com/repos/r15ch13/sc-photo-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r15ch13/sc-photo-service/downloads","issues_url":"https://api.github.com/repos/r15ch13/sc-photo-service/issues{/number}","pulls_url":"https://api.github.com/repos/r15ch13/sc-photo-service/pulls{/number}","milestones_url":"https://api.github.com/repos/r15ch13/sc-photo-service/milestones{/number}","notifications_url":"https://api.github.com/repos/r15ch13/sc-photo-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r15ch13/sc-photo-service/labels{/name}","releases_url":"https://api.github.com/repos/r15ch13/sc-photo-service/releases{/id}","deployments_url":"https://api.github.com/repos/r15ch13/sc-photo-service/deployments","created_at":"2018-09-13T19:56:18Z","updated_at":"2018-09-13T19:56:20Z","pushed_at":"2018-09-14T19:03:54Z","git_url":"git://github.com/r15ch13/sc-photo-service.git","ssh_url":"git@github.com:r15ch13/sc-photo-service.git","clone_url":"https://github.com/r15ch13/sc-photo-service.git","svn_url":"https://github.com/r15ch13/sc-photo-service","homepage":null,"size":26,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"exploide:master","ref":"master","sha":"2545f0030521c291c510da9ce5d0b0d673d9358e","user":{"login":"exploide","id":5670236,"node_id":"MDQ6VXNlcjU2NzAyMzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5670236?v=4","gravatar_id":"","url":"https://api.github.com/users/exploide","html_url":"https://github.com/exploide","followers_url":"https://api.github.com/users/exploide/followers","following_url":"https://api.github.com/users/exploide/following{/other_user}","gists_url":"https://api.github.com/users/exploide/gists{/gist_id}","starred_url":"https://api.github.com/users/exploide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exploide/subscriptions","organizations_url":"https://api.github.com/users/exploide/orgs","repos_url":"https://api.github.com/users/exploide/repos","events_url":"https://api.github.com/users/exploide/events{/privacy}","received_events_url":"https://api.github.com/users/exploide/received_events","type":"User","site_admin":false},"repo":{"id":146648214,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2NDgyMTQ=","name":"sc-photo-service","full_name":"exploide/sc-photo-service","owner":{"login":"exploide","id":5670236,"node_id":"MDQ6VXNlcjU2NzAyMzY=","avatar_url":"https://avatars0.githubusercontent.com/u/5670236?v=4","gravatar_id":"","url":"https://api.github.com/users/exploide","html_url":"https://github.com/exploide","followers_url":"https://api.github.com/users/exploide/followers","following_url":"https://api.github.com/users/exploide/following{/other_user}","gists_url":"https://api.github.com/users/exploide/gists{/gist_id}","starred_url":"https://api.github.com/users/exploide/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/exploide/subscriptions","organizations_url":"https://api.github.com/users/exploide/orgs","repos_url":"https://api.github.com/users/exploide/repos","events_url":"https://api.github.com/users/exploide/events{/privacy}","received_events_url":"https://api.github.com/users/exploide/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/exploide/sc-photo-service","description":"Photo upload service for StreetComplete","fork":false,"url":"https://api.github.com/repos/exploide/sc-photo-service","forks_url":"https://api.github.com/repos/exploide/sc-photo-service/forks","keys_url":"https://api.github.com/repos/exploide/sc-photo-service/keys{/key_id}","collaborators_url":"https://api.github.com/repos/exploide/sc-photo-service/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/exploide/sc-photo-service/teams","hooks_url":"https://api.github.com/repos/exploide/sc-photo-service/hooks","issue_events_url":"https://api.github.com/repos/exploide/sc-photo-service/issues/events{/number}","events_url":"https://api.github.com/repos/exploide/sc-photo-service/events","assignees_url":"https://api.github.com/repos/exploide/sc-photo-service/assignees{/user}","branches_url":"https://api.github.com/repos/exploide/sc-photo-service/branches{/branch}","tags_url":"https://api.github.com/repos/exploide/sc-photo-service/tags","blobs_url":"https://api.github.com/repos/exploide/sc-photo-service/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/exploide/sc-photo-service/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/exploide/sc-photo-service/git/refs{/sha}","trees_url":"https://api.github.com/repos/exploide/sc-photo-service/git/trees{/sha}","statuses_url":"https://api.github.com/repos/exploide/sc-photo-service/statuses/{sha}","languages_url":"https://api.github.com/repos/exploide/sc-photo-service/languages","stargazers_url":"https://api.github.com/repos/exploide/sc-photo-service/stargazers","contributors_url":"https://api.github.com/repos/exploide/sc-photo-service/contributors","subscribers_url":"https://api.github.com/repos/exploide/sc-photo-service/subscribers","subscription_url":"https://api.github.com/repos/exploide/sc-photo-service/subscription","commits_url":"https://api.github.com/repos/exploide/sc-photo-service/commits{/sha}","git_commits_url":"https://api.github.com/repos/exploide/sc-photo-service/git/commits{/sha}","comments_url":"https://api.github.com/repos/exploide/sc-photo-service/comments{/number}","issue_comment_url":"https://api.github.com/repos/exploide/sc-photo-service/issues/comments{/number}","contents_url":"https://api.github.com/repos/exploide/sc-photo-service/contents/{+path}","compare_url":"https://api.github.com/repos/exploide/sc-photo-service/compare/{base}...{head}","merges_url":"https://api.github.com/repos/exploide/sc-photo-service/merges","archive_url":"https://api.github.com/repos/exploide/sc-photo-service/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/exploide/sc-photo-service/downloads","issues_url":"https://api.github.com/repos/exploide/sc-photo-service/issues{/number}","pulls_url":"https://api.github.com/repos/exploide/sc-photo-service/pulls{/number}","milestones_url":"https://api.github.com/repos/exploide/sc-photo-service/milestones{/number}","notifications_url":"https://api.github.com/repos/exploide/sc-photo-service/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/exploide/sc-photo-service/labels{/name}","releases_url":"https://api.github.com/repos/exploide/sc-photo-service/releases{/id}","deployments_url":"https://api.github.com/repos/exploide/sc-photo-service/deployments","created_at":"2018-08-29T19:27:53Z","updated_at":"2018-09-01T12:37:14Z","pushed_at":"2018-09-13T20:29:20Z","git_url":"git://github.com/exploide/sc-photo-service.git","ssh_url":"git@github.com:exploide/sc-photo-service.git","clone_url":"https://github.com/exploide/sc-photo-service.git","svn_url":"https://github.com/exploide/sc-photo-service","homepage":null,"size":16,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/exploide/sc-photo-service/pulls/3"},"html":{"href":"https://github.com/exploide/sc-photo-service/pull/3"},"issue":{"href":"https://api.github.com/repos/exploide/sc-photo-service/issues/3"},"comments":{"href":"https://api.github.com/repos/exploide/sc-photo-service/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/exploide/sc-photo-service/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/exploide/sc-photo-service/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/exploide/sc-photo-service/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/exploide/sc-photo-service/statuses/5c05d4e0e6dd82a06e18ee9cc86d9035e31653c2"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":320,"deletions":292,"changed_files":8}}
{"actor":{"display_login":"r15ch13"}}