{"action":"created","comment":{"url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments/51523035","id":51523035,"diff_hunk":"@@ -77,30 +77,30 @@\n  *\n  */\n if (!defined('WEBROOT_DIR')) {\n-\tdefine('WEBROOT_DIR', basename(dirname(__FILE__)));\n+    define('WEBROOT_DIR', basename(dirname(__FILE__)));\n }\n if (!defined('WWW_ROOT')) {\n-\tdefine('WWW_ROOT', dirname(__FILE__) . DS);\n+    define('WWW_ROOT', dirname(__FILE__) . DS);\n }\n \n if (!defined('CAKE_CORE_INCLUDE_PATH')) {\n-\tif (function_exists('ini_set')) {\n-\t\tini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));\n-\t}\n-\tif (!include 'Cake' . DS . 'bootstrap.php') {\n-\t\t$failed = true;\n-\t}\n+    if (function_exists('ini_set')) {\n+        ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));\n+    }\n+    if (!include 'Cake' . DS . 'bootstrap.php') {\n+        $failed = true;\n+    }\n } else {\n-\tif (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {\n-\t\t$failed = true;\n-\t}\n+    if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {\n+        $failed = true;\n+    }\n }\n if (!empty($failed)) {\n-\ttrigger_error(\"CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/test.php. It should point to the directory containing your \" . DS . \"cake core directory and your \" . DS . \"vendors root directory.\", E_USER_ERROR);\n+    trigger_error(\"CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/test.php. It should point to the directory containing your \" . DS . \"cake core directory and your \" . DS . \"vendors root directory.\", E_USER_ERROR);","path":"app/webroot/test.php","position":71,"original_position":71,"commit_id":"7c261a77fd697813730d071466a25e2266a24bf4","original_commit_id":"7c261a77fd697813730d071466a25e2266a24bf4","user":{"login":"sumyapp","id":491508,"avatar_url":"https://avatars.githubusercontent.com/u/491508?v=3","gravatar_id":"","url":"https://api.github.com/users/sumyapp","html_url":"https://github.com/sumyapp","followers_url":"https://api.github.com/users/sumyapp/followers","following_url":"https://api.github.com/users/sumyapp/following{/other_user}","gists_url":"https://api.github.com/users/sumyapp/gists{/gist_id}","starred_url":"https://api.github.com/users/sumyapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumyapp/subscriptions","organizations_url":"https://api.github.com/users/sumyapp/orgs","repos_url":"https://api.github.com/users/sumyapp/repos","events_url":"https://api.github.com/users/sumyapp/events{/privacy}","received_events_url":"https://api.github.com/users/sumyapp/received_events","type":"User","site_admin":false},"body":"__[staging][code_sniffer]__\n* Concat operator must not be surrounded by spaces\n* Concat operator must not be surrounded by spaces\n* Concat operator must not be surrounded by spaces\n* Concat operator must not be surrounded by spaces","created_at":"2016-02-02T04:40:05Z","updated_at":"2016-02-02T04:40:05Z","html_url":"https://github.com/actcat/sideci_php_sandbox/pull/101#discussion_r51523035","pull_request_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101","_links":{"self":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments/51523035"},"html":{"href":"https://github.com/actcat/sideci_php_sandbox/pull/101#discussion_r51523035"},"pull_request":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101"}}},"pull_request":{"url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101","id":57937120,"html_url":"https://github.com/actcat/sideci_php_sandbox/pull/101","diff_url":"https://github.com/actcat/sideci_php_sandbox/pull/101.diff","patch_url":"https://github.com/actcat/sideci_php_sandbox/pull/101.patch","issue_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/101","number":101,"state":"open","locked":false,"title":"Applied fixes from SideCI","user":{"login":"vexus2","id":1228229,"avatar_url":"https://avatars.githubusercontent.com/u/1228229?v=3","gravatar_id":"","url":"https://api.github.com/users/vexus2","html_url":"https://github.com/vexus2","followers_url":"https://api.github.com/users/vexus2/followers","following_url":"https://api.github.com/users/vexus2/following{/other_user}","gists_url":"https://api.github.com/users/vexus2/gists{/gist_id}","starred_url":"https://api.github.com/users/vexus2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vexus2/subscriptions","organizations_url":"https://api.github.com/users/vexus2/orgs","repos_url":"https://api.github.com/users/vexus2/repos","events_url":"https://api.github.com/users/vexus2/events{/privacy}","received_events_url":"https://api.github.com/users/vexus2/received_events","type":"User","site_admin":false},"body":"Applies code style fixes from an codesniffer by [SideCI](https://www.sideci.com).","created_at":"2016-02-02T03:48:28Z","updated_at":"2016-02-02T04:40:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"87c9bf0b56f0d727e24f31952083aa958359f118","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101/commits","review_comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101/comments","review_comment_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/101/comments","statuses_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/7c261a77fd697813730d071466a25e2266a24bf4","head":{"label":"actcat:sideci/20160202034822_codesniffer","ref":"sideci/20160202034822_codesniffer","sha":"7c261a77fd697813730d071466a25e2266a24bf4","user":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"repo":{"id":31297639,"name":"sideci_php_sandbox","full_name":"actcat/sideci_php_sandbox","owner":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/actcat/sideci_php_sandbox","description":"","fork":false,"url":"https://api.github.com/repos/actcat/sideci_php_sandbox","forks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/forks","keys_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/teams","hooks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/hooks","issue_events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/events","assignees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/tags","blobs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/languages","stargazers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/stargazers","contributors_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contributors","subscribers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscribers","subscription_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscription","commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/merges","archive_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/downloads","issues_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/deployments","created_at":"2015-02-25T04:45:36Z","updated_at":"2016-01-23T08:56:20Z","pushed_at":"2016-02-02T04:32:16Z","git_url":"git://github.com/actcat/sideci_php_sandbox.git","ssh_url":"git@github.com:actcat/sideci_php_sandbox.git","clone_url":"https://github.com/actcat/sideci_php_sandbox.git","svn_url":"https://github.com/actcat/sideci_php_sandbox","homepage":null,"size":8117,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":51,"forks":0,"open_issues":51,"watchers":1,"default_branch":"master"}},"base":{"label":"actcat:release_check_20160202105545","ref":"release_check_20160202105545","sha":"7cf75dcf9b6594dc8d9689c1fc5a1b44a1f5df18","user":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"repo":{"id":31297639,"name":"sideci_php_sandbox","full_name":"actcat/sideci_php_sandbox","owner":{"login":"actcat","id":5653312,"avatar_url":"https://avatars.githubusercontent.com/u/5653312?v=3","gravatar_id":"","url":"https://api.github.com/users/actcat","html_url":"https://github.com/actcat","followers_url":"https://api.github.com/users/actcat/followers","following_url":"https://api.github.com/users/actcat/following{/other_user}","gists_url":"https://api.github.com/users/actcat/gists{/gist_id}","starred_url":"https://api.github.com/users/actcat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/actcat/subscriptions","organizations_url":"https://api.github.com/users/actcat/orgs","repos_url":"https://api.github.com/users/actcat/repos","events_url":"https://api.github.com/users/actcat/events{/privacy}","received_events_url":"https://api.github.com/users/actcat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/actcat/sideci_php_sandbox","description":"","fork":false,"url":"https://api.github.com/repos/actcat/sideci_php_sandbox","forks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/forks","keys_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/teams","hooks_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/hooks","issue_events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/events{/number}","events_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/events","assignees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/assignees{/user}","branches_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/branches{/branch}","tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/tags","blobs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/{sha}","languages_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/languages","stargazers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/stargazers","contributors_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contributors","subscribers_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscribers","subscription_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/subscription","commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/contents/{+path}","compare_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/merges","archive_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/downloads","issues_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues{/number}","pulls_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls{/number}","milestones_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/milestones{/number}","notifications_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/labels{/name}","releases_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/releases{/id}","deployments_url":"https://api.github.com/repos/actcat/sideci_php_sandbox/deployments","created_at":"2015-02-25T04:45:36Z","updated_at":"2016-01-23T08:56:20Z","pushed_at":"2016-02-02T04:32:16Z","git_url":"git://github.com/actcat/sideci_php_sandbox.git","ssh_url":"git@github.com:actcat/sideci_php_sandbox.git","clone_url":"https://github.com/actcat/sideci_php_sandbox.git","svn_url":"https://github.com/actcat/sideci_php_sandbox","homepage":null,"size":8117,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":51,"forks":0,"open_issues":51,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101"},"html":{"href":"https://github.com/actcat/sideci_php_sandbox/pull/101"},"issue":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/101"},"comments":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/actcat/sideci_php_sandbox/statuses/7c261a77fd697813730d071466a25e2266a24bf4"}}}}