{"action":"created","comment":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/32226614","id":32226614,"diff_hunk":"@@ -351,5 +306,223 @@ public static function week_ends_on( $week_starts_on ) {\n \t\t\tif ( --$week_starts_on < 0 ) $week_starts_on = 6;\n \t\t\treturn $week_starts_on;\n \t\t}\n+\n+\t\t// DEPRECATED METHODS\n+\t\t// @codingStandardsIgnoreStart\n+\t\t/**\n+\t\t * Deprecated camelCase version of self::date_only\n+\t\t *\n+\t\t * @param int|string $date        The date (timestamp or string).\n+\t\t * @param bool       $isTimestamp Is $date in timestamp format?\n+\t\t *\n+\t\t * @return string The date only in DB format.\n+\t\t */\n+\t\tpublic static function dateOnly( $date, $isTimestamp = false ) {\n+\t\t\t_deprecated_function( __FILE__, '3.11', __CLASS__ . '::date_only' );\n+\t\t\treturn self::date_only( $date, $isTimestamp );\n+\t\t}\n+\n+\t\t/**\n+\t\t * Deprecated camelCase version of self::time_only\n+\t\t *\n+\t\t * @param string $date The date.\n+\t\t *\n+\t\t * @return string The time only in DB format.\n+\t\t */\n+\t\tpublic static function timeOnly( $date ) {\n+\t\t\t_deprecated_function( __FILE__, '3.11', __CLASS__ . '::time_only' );\n+\t\t\treturn self::time_only( $date );\n+\t\t}\n+\n+\t\t/**\n+\t\t * Deprecated camelCase version of self::hour_only\n+\t\t *\n+\t\t * @param string $date The date.\n+\t\t *\n+\t\t * @return string The hour only.\n+\t\t */\n+\t\tpublic static function hourOnly( $date ) {\n+\t\t\t_deprecated_function( __FILE__, '3.11', __CLASS__ . '::hour_only' );\n+\t\t\treturn self::hour_only( $date );\n+\t\t}\n+\n+\t\t/**\n+\t\t * Deprecated camelCase version of self::minutes_only\n+\t\t *\n+\t\t * @param string $date The date.\n+\t\t *\n+\t\t * @return string The minute only.\n+\t\t */\n+\t\tpublic static function minutesOnly( $date ) {\n+\t\t\t_deprecated_function( __FILE__, '3.11', __CLASS__ . '::minutes_only' );\n+\t\t\treturn self::minutes_only( $date );\n+\t\t}\n+\n+\t\t/**\n+\t\t * Deprecated camelCase version of self::meridian_only\n+\t\t *\n+\t\t * @param string $date The date.\n+\t\t *\n+\t\t * @return string The meridian only in DB format.\n+\t\t */\n+\t\tpublic static function meridianOnly( $date ) {\n+\t\t\t_deprecated_function( __FILE__, '3.11', __CLASS__ . '::meridian_only' );\n+\t\t\treturn self::meridian_only( $date );\n+\t\t}\n+\n+\t\t/**\n+\t\t * Returns the end of a given day.\n+\t\t *\n+\t\t * @deprecated since 3.10 - use tribe_event_end_of_day()\n+\t\t * @todo       remove in 4.1\n+\t\t *\n+\t\t * @param int|string $date        The date (timestamp or string).\n+\t\t * @param bool       $isTimestamp Is $date in timestamp format?\n+\t\t *\n+\t\t * @return string The date and time of the end of a given day\n+\t\t */\n+\t\tpublic static function endOfDay( $date, $isTimestamp = false ) {\n+\t\t\t_deprecated_function( __FILE__, '3.10', 'tribe_event_end_of_day' );\n+\n+\t\t\t$date = $isTimestamp ? $date : strtotime( $date );\n+\t\t\t$date = date( self::DBDATEFORMAT, $date );\n+\t\t\t$date = strtotime( $date . ' 23:59:59' );\n+\n+\t\t\treturn date( self::DBDATETIMEFORMAT, $date );\n+\t\t}\n+\n+\t\t/**\n+\t\t * Returns the beginning of a given day.\n+\t\t *\n+\t\t * @deprecated since 3.10\n+\t\t * @todo       remove in 4.1\n+\t\t *\n+\t\t * @param int|string $date        The date (timestamp or string).\n+\t\t * @param bool       $isTimestamp Is $date in timestamp format?\n+\t\t *\n+\t\t * @return string The date and time of the beginning of a given day.\n+\t\t */\n+\t\tpublic static function beginningOfDay( $date, $isTimestamp = false ) {","path":"src/Tribe/Date_Utils.php","position":313,"original_position":313,"commit_id":"cb895380e9948619e768bc1cf69f3542d30b86a0","original_commit_id":"cb895380e9948619e768bc1cf69f3542d30b86a0","user":{"login":"zbtirrell","id":576707,"avatar_url":"https://avatars.githubusercontent.com/u/576707?v=3","gravatar_id":"","url":"https://api.github.com/users/zbtirrell","html_url":"https://github.com/zbtirrell","followers_url":"https://api.github.com/users/zbtirrell/followers","following_url":"https://api.github.com/users/zbtirrell/following{/other_user}","gists_url":"https://api.github.com/users/zbtirrell/gists{/gist_id}","starred_url":"https://api.github.com/users/zbtirrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbtirrell/subscriptions","organizations_url":"https://api.github.com/users/zbtirrell/orgs","repos_url":"https://api.github.com/users/zbtirrell/repos","events_url":"https://api.github.com/users/zbtirrell/events{/privacy}","received_events_url":"https://api.github.com/users/zbtirrell/received_events","type":"User","site_admin":false},"body":"I know you just relocated these deprecated functions (`endOfDay` as well), but why do they have repeated functionality rather than calling the new functions?","created_at":"2015-06-11T14:33:48Z","updated_at":"2015-06-11T14:33:48Z","html_url":"https://github.com/moderntribe/the-events-calendar/pull/106#discussion_r32226614","pull_request_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106","_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments/32226614"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/106#discussion_r32226614"},"pull_request":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106"}}},"pull_request":{"url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106","id":37402573,"html_url":"https://github.com/moderntribe/the-events-calendar/pull/106","diff_url":"https://github.com/moderntribe/the-events-calendar/pull/106.diff","patch_url":"https://github.com/moderntribe/the-events-calendar/pull/106.patch","issue_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/106","number":106,"state":"open","locked":false,"title":"Codesniffer fixes: pass 1","user":{"login":"borkweb","id":430385,"avatar_url":"https://avatars.githubusercontent.com/u/430385?v=3","gravatar_id":"","url":"https://api.github.com/users/borkweb","html_url":"https://github.com/borkweb","followers_url":"https://api.github.com/users/borkweb/followers","following_url":"https://api.github.com/users/borkweb/following{/other_user}","gists_url":"https://api.github.com/users/borkweb/gists{/gist_id}","starred_url":"https://api.github.com/users/borkweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borkweb/subscriptions","organizations_url":"https://api.github.com/users/borkweb/orgs","repos_url":"https://api.github.com/users/borkweb/repos","events_url":"https://api.github.com/users/borkweb/events{/privacy}","received_events_url":"https://api.github.com/users/borkweb/received_events","type":"User","site_admin":false},"body":"This is a partial codesniffer cleanup of core.  I'll be doing this in batches to make the review manageable.\r\n\r\nPull Requests to handled the deprecation of the `Tribe__Events__Date_Utils` methods:\r\n* https://github.com/moderntribe/events-facebook/pull/11\r\n* https://github.com/moderntribe/events-pro/pull/28\r\n* https://github.com/moderntribe/events-community/pull/20\r\n* https://github.com/moderntribe/events-filterbar/pull/15\r\n\r\nSee: https://central.tri.be/issues/36908","created_at":"2015-06-10T20:46:41Z","updated_at":"2015-06-11T14:33:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"686e87af77bab6150c269a8c897d1be08f780fb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106/commits","review_comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106/comments","review_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/106/comments","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/cb895380e9948619e768bc1cf69f3542d30b86a0","head":{"label":"moderntribe:feature/36908-codesniffer","ref":"feature/36908-codesniffer","sha":"cb895380e9948619e768bc1cf69f3542d30b86a0","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":16366134,"name":"the-events-calendar","full_name":"moderntribe/the-events-calendar","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":false,"url":"https://api.github.com/repos/moderntribe/the-events-calendar","forks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/forks","keys_url":"https://api.github.com/repos/moderntribe/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/events","assignees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/the-events-calendar/merges","archive_url":"https://api.github.com/repos/moderntribe/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/the-events-calendar/releases{/id}","created_at":"2014-01-30T02:17:01Z","updated_at":"2015-06-10T09:41:44Z","pushed_at":"2015-06-11T12:32:26Z","git_url":"git://github.com/moderntribe/the-events-calendar.git","ssh_url":"git@github.com:moderntribe/the-events-calendar.git","clone_url":"https://github.com/moderntribe/the-events-calendar.git","svn_url":"https://github.com/moderntribe/the-events-calendar","homepage":null,"size":59409,"stargazers_count":57,"watchers_count":57,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":22,"forks":51,"open_issues":22,"watchers":57,"default_branch":"develop"}},"base":{"label":"moderntribe:release/119","ref":"release/119","sha":"8fa336aed1d3b8cd851c930d7718bf2bf728ff61","user":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"repo":{"id":16366134,"name":"the-events-calendar","full_name":"moderntribe/the-events-calendar","owner":{"login":"moderntribe","id":2279551,"avatar_url":"https://avatars.githubusercontent.com/u/2279551?v=3","gravatar_id":"","url":"https://api.github.com/users/moderntribe","html_url":"https://github.com/moderntribe","followers_url":"https://api.github.com/users/moderntribe/followers","following_url":"https://api.github.com/users/moderntribe/following{/other_user}","gists_url":"https://api.github.com/users/moderntribe/gists{/gist_id}","starred_url":"https://api.github.com/users/moderntribe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moderntribe/subscriptions","organizations_url":"https://api.github.com/users/moderntribe/orgs","repos_url":"https://api.github.com/users/moderntribe/repos","events_url":"https://api.github.com/users/moderntribe/events{/privacy}","received_events_url":"https://api.github.com/users/moderntribe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/moderntribe/the-events-calendar","description":"The Events Calendar WordPress plugin by Modern Tribe","fork":false,"url":"https://api.github.com/repos/moderntribe/the-events-calendar","forks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/forks","keys_url":"https://api.github.com/repos/moderntribe/the-events-calendar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/moderntribe/the-events-calendar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/moderntribe/the-events-calendar/teams","hooks_url":"https://api.github.com/repos/moderntribe/the-events-calendar/hooks","issue_events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/events{/number}","events_url":"https://api.github.com/repos/moderntribe/the-events-calendar/events","assignees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/assignees{/user}","branches_url":"https://api.github.com/repos/moderntribe/the-events-calendar/branches{/branch}","tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/tags","blobs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/refs{/sha}","trees_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/{sha}","languages_url":"https://api.github.com/repos/moderntribe/the-events-calendar/languages","stargazers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/stargazers","contributors_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contributors","subscribers_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscribers","subscription_url":"https://api.github.com/repos/moderntribe/the-events-calendar/subscription","commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/commits{/sha}","git_commits_url":"https://api.github.com/repos/moderntribe/the-events-calendar/git/commits{/sha}","comments_url":"https://api.github.com/repos/moderntribe/the-events-calendar/comments{/number}","issue_comment_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/comments{/number}","contents_url":"https://api.github.com/repos/moderntribe/the-events-calendar/contents/{+path}","compare_url":"https://api.github.com/repos/moderntribe/the-events-calendar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/moderntribe/the-events-calendar/merges","archive_url":"https://api.github.com/repos/moderntribe/the-events-calendar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/moderntribe/the-events-calendar/downloads","issues_url":"https://api.github.com/repos/moderntribe/the-events-calendar/issues{/number}","pulls_url":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls{/number}","milestones_url":"https://api.github.com/repos/moderntribe/the-events-calendar/milestones{/number}","notifications_url":"https://api.github.com/repos/moderntribe/the-events-calendar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/moderntribe/the-events-calendar/labels{/name}","releases_url":"https://api.github.com/repos/moderntribe/the-events-calendar/releases{/id}","created_at":"2014-01-30T02:17:01Z","updated_at":"2015-06-10T09:41:44Z","pushed_at":"2015-06-11T12:32:26Z","git_url":"git://github.com/moderntribe/the-events-calendar.git","ssh_url":"git@github.com:moderntribe/the-events-calendar.git","clone_url":"https://github.com/moderntribe/the-events-calendar.git","svn_url":"https://github.com/moderntribe/the-events-calendar","homepage":null,"size":59409,"stargazers_count":57,"watchers_count":57,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":22,"forks":51,"open_issues":22,"watchers":57,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106"},"html":{"href":"https://github.com/moderntribe/the-events-calendar/pull/106"},"issue":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/106"},"comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/issues/106/comments"},"review_comments":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106/comments"},"review_comment":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/pulls/106/commits"},"statuses":{"href":"https://api.github.com/repos/moderntribe/the-events-calendar/statuses/cb895380e9948619e768bc1cf69f3542d30b86a0"}}}}