GitHub PullRequestReviewCommentEvent at 2014-09-15 07:42:07
Repository: BoardJeszy
Actor: jeszytanada
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/comments/17529235","id":17529235,"diff_hunk":"@@ -0,0 +1,62 @@\n+ <?php\n+\n+const MAX_ROWS = 5;\n+ \n+/** Pagination (Page Manipulation) **/\n+function Pagination ($rows, array $current_page = array()) {\n+    $pagination = array();\n+\n+    if (!(isset($pagenum))) {\n+        $pagenum = 1; \n+    }\n+    if (isset($_GET['pn'])) {\n+        $pagenum = preg_replace('#[^0-9]#', '', $_GET['pn']);   \n+    }\n+    $last_page = ceil($rows/MAX_ROWS);\n+    \n+    if ($last_page < 1) {\n+        $last_page = 1;\n+    }\n+    if ($pagenum < 1) {\n+        $pagenum = 1;\n+    } elseif ($pagenum > $last_page) {\n+        $pagenum = $last_page;\n+    }\n+    \n+    $max = 'limit ' .($pagenum - 1) * MAX_ROWS.',' .MAX_ROWS;\n+    $link_page =& $current_page['pn'];\n+    $paginationCtrls = \"\";\n+    if ($last_page != 1) {\n+        if ($pagenum > 1) {\n+            $link_page = $pagenum - 1;\n+            $paginationCtrls .= \"<a href='\" . url('', $current_page) . \"'> Previous </a> &nbsp; &nbsp;\";\n+            \n+            for ($i = $pagenum - 4; $i < $pagenum; $i++) {\n+                if ($i > 0) {\n+                    $paginationCtrls .= \"<a href='\".url('', $current_page).\"'> $i </a> &nbsp; \";\n+                }\n+            }\n+        }\n+\n+        $paginationCtrls .= ''.$pagenum.' &nbsp; ';\n+        for ($i = $pagenum + 1; $i <= $last_page; $i++) {\n+            $link_page = $i;\n+            $paginationCtrls .= \"<a href='\".url('', $current_page).\"'> $i </a> &nbsp; \";\n+            if ($i >= $pagenum + 4) {\n+                break;\n+            }\n+        }\n+\n+        if ($pagenum != $last_page) {\n+            $page_link = $pagenum + 1;\n+            $paginationCtrls .= \" &nbsp; &nbsp; <a href='\".url('', $current_page).\"'> Next </a>\";\n+        }\n+    }\n+    $pagination = array(\n+                      'max'             => $max,","path":"lib/pagination.php","position":null,"original_position":56,"commit_id":"23ad5d6070775e89a44dfb95d2add15253aeb94e","original_commit_id":"57c194e36c962e20ccfcc8ae8b4642b919a6384f","user":{"login":"jeszytanada","id":8372114,"avatar_url":"https://avatars.githubusercontent.com/u/8372114?v=2","gravatar_id":"d9333b5178c6f5393dbc89dbc14ff7dd","url":"https://api.github.com/users/jeszytanada","html_url":"https://github.com/jeszytanada","followers_url":"https://api.github.com/users/jeszytanada/followers","following_url":"https://api.github.com/users/jeszytanada/following{/other_user}","gists_url":"https://api.github.com/users/jeszytanada/gists{/gist_id}","starred_url":"https://api.github.com/users/jeszytanada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeszytanada/subscriptions","organizations_url":"https://api.github.com/users/jeszytanada/orgs","repos_url":"https://api.github.com/users/jeszytanada/repos","events_url":"https://api.github.com/users/jeszytanada/events{/privacy}","received_events_url":"https://api.github.com/users/jeszytanada/received_events","type":"User","site_admin":false},"body":"ahh sorry po, i thought it should be 4 spaces under data type \"array\"..  :bow: thank you very much po for noticing ..^_^ ","created_at":"2014-09-15T07:42:07Z","updated_at":"2014-09-15T07:42:07Z","html_url":"https://github.com/jeszytanada/BoardJeszy/pull/1#discussion_r17529235","pull_request_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/comments/17529235"},"html":{"href":"https://github.com/jeszytanada/BoardJeszy/pull/1#discussion_r17529235"},"pull_request":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1","id":21130689,"html_url":"https://github.com/jeszytanada/BoardJeszy/pull/1","diff_url":"https://github.com/jeszytanada/BoardJeszy/pull/1.diff","patch_url":"https://github.com/jeszytanada/BoardJeszy/pull/1.patch","issue_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/1","number":1,"state":"open","locked":false,"title":"Dev 1.0 First Pull Request","user":{"login":"jeszytanada","id":8372114,"avatar_url":"https://avatars.githubusercontent.com/u/8372114?v=2","gravatar_id":"d9333b5178c6f5393dbc89dbc14ff7dd","url":"https://api.github.com/users/jeszytanada","html_url":"https://github.com/jeszytanada","followers_url":"https://api.github.com/users/jeszytanada/followers","following_url":"https://api.github.com/users/jeszytanada/following{/other_user}","gists_url":"https://api.github.com/users/jeszytanada/gists{/gist_id}","starred_url":"https://api.github.com/users/jeszytanada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeszytanada/subscriptions","organizations_url":"https://api.github.com/users/jeszytanada/orgs","repos_url":"https://api.github.com/users/jeszytanada/repos","events_url":"https://api.github.com/users/jeszytanada/events{/privacy}","received_events_url":"https://api.github.com/users/jeszytanada/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-12T03:08:21Z","updated_at":"2014-09-15T07:42:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"477dcc75cbb3af22811f1c9cd11b6c20cba42404","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1/commits","review_comments_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1/comments","review_comment_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/1/comments","statuses_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/statuses/23ad5d6070775e89a44dfb95d2add15253aeb94e","head":{"label":"jeszytanada:dev_1.0","ref":"dev_1.0","sha":"23ad5d6070775e89a44dfb95d2add15253aeb94e","user":{"login":"jeszytanada","id":8372114,"avatar_url":"https://avatars.githubusercontent.com/u/8372114?v=2","gravatar_id":"d9333b5178c6f5393dbc89dbc14ff7dd","url":"https://api.github.com/users/jeszytanada","html_url":"https://github.com/jeszytanada","followers_url":"https://api.github.com/users/jeszytanada/followers","following_url":"https://api.github.com/users/jeszytanada/following{/other_user}","gists_url":"https://api.github.com/users/jeszytanada/gists{/gist_id}","starred_url":"https://api.github.com/users/jeszytanada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeszytanada/subscriptions","organizations_url":"https://api.github.com/users/jeszytanada/orgs","repos_url":"https://api.github.com/users/jeszytanada/repos","events_url":"https://api.github.com/users/jeszytanada/events{/privacy}","received_events_url":"https://api.github.com/users/jeszytanada/received_events","type":"User","site_admin":false},"repo":{"id":23904959,"name":"BoardJeszy","full_name":"jeszytanada/BoardJeszy","owner":{"login":"jeszytanada","id":8372114,"avatar_url":"https://avatars.githubusercontent.com/u/8372114?v=2","gravatar_id":"d9333b5178c6f5393dbc89dbc14ff7dd","url":"https://api.github.com/users/jeszytanada","html_url":"https://github.com/jeszytanada","followers_url":"https://api.github.com/users/jeszytanada/followers","following_url":"https://api.github.com/users/jeszytanada/following{/other_user}","gists_url":"https://api.github.com/users/jeszytanada/gists{/gist_id}","starred_url":"https://api.github.com/users/jeszytanada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeszytanada/subscriptions","organizations_url":"https://api.github.com/users/jeszytanada/orgs","repos_url":"https://api.github.com/users/jeszytanada/repos","events_url":"https://api.github.com/users/jeszytanada/events{/privacy}","received_events_url":"https://api.github.com/users/jeszytanada/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeszytanada/BoardJeszy","description":"","fork":false,"url":"https://api.github.com/repos/jeszytanada/BoardJeszy","forks_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/forks","keys_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/teams","hooks_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/hooks","issue_events_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/events{/number}","events_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/events","assignees_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/assignees{/user}","branches_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/branches{/branch}","tags_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/tags","blobs_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/statuses/{sha}","languages_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/languages","stargazers_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/stargazers","contributors_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/contributors","subscribers_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/subscribers","subscription_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/subscription","commits_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/comments/{number}","contents_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/contents/{+path}","compare_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/merges","archive_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/downloads","issues_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues{/number}","pulls_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls{/number}","milestones_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/milestones{/number}","notifications_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/labels{/name}","releases_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/releases{/id}","created_at":"2014-09-11T05:09:09Z","updated_at":"2014-09-11T05:49:10Z","pushed_at":"2014-09-15T07:39:49Z","git_url":"git://github.com/jeszytanada/BoardJeszy.git","ssh_url":"git@github.com:jeszytanada/BoardJeszy.git","clone_url":"https://github.com/jeszytanada/BoardJeszy.git","svn_url":"https://github.com/jeszytanada/BoardJeszy","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jeszytanada:master","ref":"master","sha":"51f84c36eb02814268f3927d8de00f4c876abf62","user":{"login":"jeszytanada","id":8372114,"avatar_url":"https://avatars.githubusercontent.com/u/8372114?v=2","gravatar_id":"d9333b5178c6f5393dbc89dbc14ff7dd","url":"https://api.github.com/users/jeszytanada","html_url":"https://github.com/jeszytanada","followers_url":"https://api.github.com/users/jeszytanada/followers","following_url":"https://api.github.com/users/jeszytanada/following{/other_user}","gists_url":"https://api.github.com/users/jeszytanada/gists{/gist_id}","starred_url":"https://api.github.com/users/jeszytanada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeszytanada/subscriptions","organizations_url":"https://api.github.com/users/jeszytanada/orgs","repos_url":"https://api.github.com/users/jeszytanada/repos","events_url":"https://api.github.com/users/jeszytanada/events{/privacy}","received_events_url":"https://api.github.com/users/jeszytanada/received_events","type":"User","site_admin":false},"repo":{"id":23904959,"name":"BoardJeszy","full_name":"jeszytanada/BoardJeszy","owner":{"login":"jeszytanada","id":8372114,"avatar_url":"https://avatars.githubusercontent.com/u/8372114?v=2","gravatar_id":"d9333b5178c6f5393dbc89dbc14ff7dd","url":"https://api.github.com/users/jeszytanada","html_url":"https://github.com/jeszytanada","followers_url":"https://api.github.com/users/jeszytanada/followers","following_url":"https://api.github.com/users/jeszytanada/following{/other_user}","gists_url":"https://api.github.com/users/jeszytanada/gists{/gist_id}","starred_url":"https://api.github.com/users/jeszytanada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeszytanada/subscriptions","organizations_url":"https://api.github.com/users/jeszytanada/orgs","repos_url":"https://api.github.com/users/jeszytanada/repos","events_url":"https://api.github.com/users/jeszytanada/events{/privacy}","received_events_url":"https://api.github.com/users/jeszytanada/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeszytanada/BoardJeszy","description":"","fork":false,"url":"https://api.github.com/repos/jeszytanada/BoardJeszy","forks_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/forks","keys_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/teams","hooks_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/hooks","issue_events_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/events{/number}","events_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/events","assignees_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/assignees{/user}","branches_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/branches{/branch}","tags_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/tags","blobs_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/statuses/{sha}","languages_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/languages","stargazers_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/stargazers","contributors_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/contributors","subscribers_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/subscribers","subscription_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/subscription","commits_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/comments/{number}","contents_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/contents/{+path}","compare_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/merges","archive_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/downloads","issues_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues{/number}","pulls_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls{/number}","milestones_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/milestones{/number}","notifications_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/labels{/name}","releases_url":"https://api.github.com/repos/jeszytanada/BoardJeszy/releases{/id}","created_at":"2014-09-11T05:09:09Z","updated_at":"2014-09-11T05:49:10Z","pushed_at":"2014-09-15T07:39:49Z","git_url":"git://github.com/jeszytanada/BoardJeszy.git","ssh_url":"git@github.com:jeszytanada/BoardJeszy.git","clone_url":"https://github.com/jeszytanada/BoardJeszy.git","svn_url":"https://github.com/jeszytanada/BoardJeszy","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1"},"html":{"href":"https://github.com/jeszytanada/BoardJeszy/pull/1"},"issue":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/1"},"comments":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/jeszytanada/BoardJeszy/statuses/23ad5d6070775e89a44dfb95d2add15253aeb94e"}}}}