{"action":"created","comment":{"url":"https://api.github.com/repos/sirpa44/test/pulls/comments/225683807","pull_request_review_id":165329367,"id":225683807,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTY4MzgwNw==","diff_hunk":"@@ -1,38 +1,54 @@\n <?php\n-\n namespace Aot\\Model;\n \n \n class Csv\n {\n     private $path;\n \n-    public function __construct()\n+    public function __construct(){\n+        $this->path = ROOT . 'Source/testtakers.csv';\n+    }\n+\n+    /**\n+     * define the method\n+     * @param $method\n+     * @param null $id\n+     * @return array\n+     * @throws \\Exception\n+     */\n+    public function csvMethod($method, $id = null)\n     {\n-        $this->path = ROOT . '/Source/testtakers.csv';\n+        if ($method == 'show' && $id) {\n+            return $this->getOne($id);\n+        } elseif ($method == 'show' && $id == null) {\n+            return $this->getAll();\n+        }\n     }\n \n     /**\n      * get all users\n      * @return array\n      */\n-    public function getAll()\n+    private function getAll()\n     {\n         return $this->contentExtract();\n     }\n \n     /**\n-     * get on user\n-     * @param  array $setting\n-     * @return array $datas\n+     * get one user with the id\n+     * @param  array $id\n+     * @return array $content\n+     * @throws \\Exception\n      */\n-    public function getOne($setting)\n+    private function getOne($id)","path":"Src/Model/Csv.php","position":52,"original_position":52,"commit_id":"80a000d2801dacf61847ca6d799511ccd4019d63","original_commit_id":"80a000d2801dacf61847ca6d799511ccd4019d63","user":{"login":"siwane","id":8009602,"node_id":"MDQ6VXNlcjgwMDk2MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/8009602?v=4","gravatar_id":"","url":"https://api.github.com/users/siwane","html_url":"https://github.com/siwane","followers_url":"https://api.github.com/users/siwane/followers","following_url":"https://api.github.com/users/siwane/following{/other_user}","gists_url":"https://api.github.com/users/siwane/gists{/gist_id}","starred_url":"https://api.github.com/users/siwane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siwane/subscriptions","organizations_url":"https://api.github.com/users/siwane/orgs","repos_url":"https://api.github.com/users/siwane/repos","events_url":"https://api.github.com/users/siwane/events{/privacy}","received_events_url":"https://api.github.com/users/siwane/received_events","type":"User","site_admin":false},"body":"A method can be `public`, `protected` or `private`. If there is no purpose to protect it (as `private`) or no need to access it from outside, please change it as `protected`","created_at":"2018-10-16T19:47:56Z","updated_at":"2018-10-16T19:57:16Z","html_url":"https://github.com/sirpa44/test/pull/6#discussion_r225683807","pull_request_url":"https://api.github.com/repos/sirpa44/test/pulls/6","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/sirpa44/test/pulls/comments/225683807"},"html":{"href":"https://github.com/sirpa44/test/pull/6#discussion_r225683807"},"pull_request":{"href":"https://api.github.com/repos/sirpa44/test/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/sirpa44/test/pulls/6","id":223162103,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMTYyMTAz","html_url":"https://github.com/sirpa44/test/pull/6","diff_url":"https://github.com/sirpa44/test/pull/6.diff","patch_url":"https://github.com/sirpa44/test/pull/6.patch","issue_url":"https://api.github.com/repos/sirpa44/test/issues/6","number":6,"state":"open","locked":false,"title":"Refactor/tao internal activities/controller","user":{"login":"sirpa44","id":31346197,"node_id":"MDQ6VXNlcjMxMzQ2MTk3","avatar_url":"https://avatars0.githubusercontent.com/u/31346197?v=4","gravatar_id":"","url":"https://api.github.com/users/sirpa44","html_url":"https://github.com/sirpa44","followers_url":"https://api.github.com/users/sirpa44/followers","following_url":"https://api.github.com/users/sirpa44/following{/other_user}","gists_url":"https://api.github.com/users/sirpa44/gists{/gist_id}","starred_url":"https://api.github.com/users/sirpa44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirpa44/subscriptions","organizations_url":"https://api.github.com/users/sirpa44/orgs","repos_url":"https://api.github.com/users/sirpa44/repos","events_url":"https://api.github.com/users/sirpa44/events{/privacy}","received_events_url":"https://api.github.com/users/sirpa44/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-16T08:43:05Z","updated_at":"2018-10-16T19:57:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"484a27768f1c1ff615c7bf5d8ff8a2386ff45462","assignee":{"login":"siwane","id":8009602,"node_id":"MDQ6VXNlcjgwMDk2MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/8009602?v=4","gravatar_id":"","url":"https://api.github.com/users/siwane","html_url":"https://github.com/siwane","followers_url":"https://api.github.com/users/siwane/followers","following_url":"https://api.github.com/users/siwane/following{/other_user}","gists_url":"https://api.github.com/users/siwane/gists{/gist_id}","starred_url":"https://api.github.com/users/siwane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siwane/subscriptions","organizations_url":"https://api.github.com/users/siwane/orgs","repos_url":"https://api.github.com/users/siwane/repos","events_url":"https://api.github.com/users/siwane/events{/privacy}","received_events_url":"https://api.github.com/users/siwane/received_events","type":"User","site_admin":false},"assignees":[{"login":"siwane","id":8009602,"node_id":"MDQ6VXNlcjgwMDk2MDI=","avatar_url":"https://avatars3.githubusercontent.com/u/8009602?v=4","gravatar_id":"","url":"https://api.github.com/users/siwane","html_url":"https://github.com/siwane","followers_url":"https://api.github.com/users/siwane/followers","following_url":"https://api.github.com/users/siwane/following{/other_user}","gists_url":"https://api.github.com/users/siwane/gists{/gist_id}","starred_url":"https://api.github.com/users/siwane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/siwane/subscriptions","organizations_url":"https://api.github.com/users/siwane/orgs","repos_url":"https://api.github.com/users/siwane/repos","events_url":"https://api.github.com/users/siwane/events{/privacy}","received_events_url":"https://api.github.com/users/siwane/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sirpa44/test/pulls/6/commits","review_comments_url":"https://api.github.com/repos/sirpa44/test/pulls/6/comments","review_comment_url":"https://api.github.com/repos/sirpa44/test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sirpa44/test/issues/6/comments","statuses_url":"https://api.github.com/repos/sirpa44/test/statuses/80a000d2801dacf61847ca6d799511ccd4019d63","head":{"label":"sirpa44:refactor/tao_internalActivities/controller","ref":"refactor/tao_internalActivities/controller","sha":"80a000d2801dacf61847ca6d799511ccd4019d63","user":{"login":"sirpa44","id":31346197,"node_id":"MDQ6VXNlcjMxMzQ2MTk3","avatar_url":"https://avatars0.githubusercontent.com/u/31346197?v=4","gravatar_id":"","url":"https://api.github.com/users/sirpa44","html_url":"https://github.com/sirpa44","followers_url":"https://api.github.com/users/sirpa44/followers","following_url":"https://api.github.com/users/sirpa44/following{/other_user}","gists_url":"https://api.github.com/users/sirpa44/gists{/gist_id}","starred_url":"https://api.github.com/users/sirpa44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirpa44/subscriptions","organizations_url":"https://api.github.com/users/sirpa44/orgs","repos_url":"https://api.github.com/users/sirpa44/repos","events_url":"https://api.github.com/users/sirpa44/events{/privacy}","received_events_url":"https://api.github.com/users/sirpa44/received_events","type":"User","site_admin":false},"repo":{"id":148362002,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgzNjIwMDI=","name":"test","full_name":"sirpa44/test","private":false,"owner":{"login":"sirpa44","id":31346197,"node_id":"MDQ6VXNlcjMxMzQ2MTk3","avatar_url":"https://avatars0.githubusercontent.com/u/31346197?v=4","gravatar_id":"","url":"https://api.github.com/users/sirpa44","html_url":"https://github.com/sirpa44","followers_url":"https://api.github.com/users/sirpa44/followers","following_url":"https://api.github.com/users/sirpa44/following{/other_user}","gists_url":"https://api.github.com/users/sirpa44/gists{/gist_id}","starred_url":"https://api.github.com/users/sirpa44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirpa44/subscriptions","organizations_url":"https://api.github.com/users/sirpa44/orgs","repos_url":"https://api.github.com/users/sirpa44/repos","events_url":"https://api.github.com/users/sirpa44/events{/privacy}","received_events_url":"https://api.github.com/users/sirpa44/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sirpa44/test","description":null,"fork":false,"url":"https://api.github.com/repos/sirpa44/test","forks_url":"https://api.github.com/repos/sirpa44/test/forks","keys_url":"https://api.github.com/repos/sirpa44/test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sirpa44/test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sirpa44/test/teams","hooks_url":"https://api.github.com/repos/sirpa44/test/hooks","issue_events_url":"https://api.github.com/repos/sirpa44/test/issues/events{/number}","events_url":"https://api.github.com/repos/sirpa44/test/events","assignees_url":"https://api.github.com/repos/sirpa44/test/assignees{/user}","branches_url":"https://api.github.com/repos/sirpa44/test/branches{/branch}","tags_url":"https://api.github.com/repos/sirpa44/test/tags","blobs_url":"https://api.github.com/repos/sirpa44/test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sirpa44/test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sirpa44/test/git/refs{/sha}","trees_url":"https://api.github.com/repos/sirpa44/test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sirpa44/test/statuses/{sha}","languages_url":"https://api.github.com/repos/sirpa44/test/languages","stargazers_url":"https://api.github.com/repos/sirpa44/test/stargazers","contributors_url":"https://api.github.com/repos/sirpa44/test/contributors","subscribers_url":"https://api.github.com/repos/sirpa44/test/subscribers","subscription_url":"https://api.github.com/repos/sirpa44/test/subscription","commits_url":"https://api.github.com/repos/sirpa44/test/commits{/sha}","git_commits_url":"https://api.github.com/repos/sirpa44/test/git/commits{/sha}","comments_url":"https://api.github.com/repos/sirpa44/test/comments{/number}","issue_comment_url":"https://api.github.com/repos/sirpa44/test/issues/comments{/number}","contents_url":"https://api.github.com/repos/sirpa44/test/contents/{+path}","compare_url":"https://api.github.com/repos/sirpa44/test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sirpa44/test/merges","archive_url":"https://api.github.com/repos/sirpa44/test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sirpa44/test/downloads","issues_url":"https://api.github.com/repos/sirpa44/test/issues{/number}","pulls_url":"https://api.github.com/repos/sirpa44/test/pulls{/number}","milestones_url":"https://api.github.com/repos/sirpa44/test/milestones{/number}","notifications_url":"https://api.github.com/repos/sirpa44/test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sirpa44/test/labels{/name}","releases_url":"https://api.github.com/repos/sirpa44/test/releases{/id}","deployments_url":"https://api.github.com/repos/sirpa44/test/deployments","created_at":"2018-09-11T18:31:11Z","updated_at":"2018-10-09T15:37:48Z","pushed_at":"2018-10-16T12:54:17Z","git_url":"git://github.com/sirpa44/test.git","ssh_url":"git@github.com:sirpa44/test.git","clone_url":"https://github.com/sirpa44/test.git","svn_url":"https://github.com/sirpa44/test","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"sirpa44:develop","ref":"develop","sha":"e120e9d603357c8605f914f91e69c601bfb3e318","user":{"login":"sirpa44","id":31346197,"node_id":"MDQ6VXNlcjMxMzQ2MTk3","avatar_url":"https://avatars0.githubusercontent.com/u/31346197?v=4","gravatar_id":"","url":"https://api.github.com/users/sirpa44","html_url":"https://github.com/sirpa44","followers_url":"https://api.github.com/users/sirpa44/followers","following_url":"https://api.github.com/users/sirpa44/following{/other_user}","gists_url":"https://api.github.com/users/sirpa44/gists{/gist_id}","starred_url":"https://api.github.com/users/sirpa44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirpa44/subscriptions","organizations_url":"https://api.github.com/users/sirpa44/orgs","repos_url":"https://api.github.com/users/sirpa44/repos","events_url":"https://api.github.com/users/sirpa44/events{/privacy}","received_events_url":"https://api.github.com/users/sirpa44/received_events","type":"User","site_admin":false},"repo":{"id":148362002,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgzNjIwMDI=","name":"test","full_name":"sirpa44/test","private":false,"owner":{"login":"sirpa44","id":31346197,"node_id":"MDQ6VXNlcjMxMzQ2MTk3","avatar_url":"https://avatars0.githubusercontent.com/u/31346197?v=4","gravatar_id":"","url":"https://api.github.com/users/sirpa44","html_url":"https://github.com/sirpa44","followers_url":"https://api.github.com/users/sirpa44/followers","following_url":"https://api.github.com/users/sirpa44/following{/other_user}","gists_url":"https://api.github.com/users/sirpa44/gists{/gist_id}","starred_url":"https://api.github.com/users/sirpa44/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirpa44/subscriptions","organizations_url":"https://api.github.com/users/sirpa44/orgs","repos_url":"https://api.github.com/users/sirpa44/repos","events_url":"https://api.github.com/users/sirpa44/events{/privacy}","received_events_url":"https://api.github.com/users/sirpa44/received_events","type":"User","site_admin":false},"html_url":"https://github.com/sirpa44/test","description":null,"fork":false,"url":"https://api.github.com/repos/sirpa44/test","forks_url":"https://api.github.com/repos/sirpa44/test/forks","keys_url":"https://api.github.com/repos/sirpa44/test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sirpa44/test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sirpa44/test/teams","hooks_url":"https://api.github.com/repos/sirpa44/test/hooks","issue_events_url":"https://api.github.com/repos/sirpa44/test/issues/events{/number}","events_url":"https://api.github.com/repos/sirpa44/test/events","assignees_url":"https://api.github.com/repos/sirpa44/test/assignees{/user}","branches_url":"https://api.github.com/repos/sirpa44/test/branches{/branch}","tags_url":"https://api.github.com/repos/sirpa44/test/tags","blobs_url":"https://api.github.com/repos/sirpa44/test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sirpa44/test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sirpa44/test/git/refs{/sha}","trees_url":"https://api.github.com/repos/sirpa44/test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sirpa44/test/statuses/{sha}","languages_url":"https://api.github.com/repos/sirpa44/test/languages","stargazers_url":"https://api.github.com/repos/sirpa44/test/stargazers","contributors_url":"https://api.github.com/repos/sirpa44/test/contributors","subscribers_url":"https://api.github.com/repos/sirpa44/test/subscribers","subscription_url":"https://api.github.com/repos/sirpa44/test/subscription","commits_url":"https://api.github.com/repos/sirpa44/test/commits{/sha}","git_commits_url":"https://api.github.com/repos/sirpa44/test/git/commits{/sha}","comments_url":"https://api.github.com/repos/sirpa44/test/comments{/number}","issue_comment_url":"https://api.github.com/repos/sirpa44/test/issues/comments{/number}","contents_url":"https://api.github.com/repos/sirpa44/test/contents/{+path}","compare_url":"https://api.github.com/repos/sirpa44/test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sirpa44/test/merges","archive_url":"https://api.github.com/repos/sirpa44/test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sirpa44/test/downloads","issues_url":"https://api.github.com/repos/sirpa44/test/issues{/number}","pulls_url":"https://api.github.com/repos/sirpa44/test/pulls{/number}","milestones_url":"https://api.github.com/repos/sirpa44/test/milestones{/number}","notifications_url":"https://api.github.com/repos/sirpa44/test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sirpa44/test/labels{/name}","releases_url":"https://api.github.com/repos/sirpa44/test/releases{/id}","deployments_url":"https://api.github.com/repos/sirpa44/test/deployments","created_at":"2018-09-11T18:31:11Z","updated_at":"2018-10-09T15:37:48Z","pushed_at":"2018-10-16T12:54:17Z","git_url":"git://github.com/sirpa44/test.git","ssh_url":"git@github.com:sirpa44/test.git","clone_url":"https://github.com/sirpa44/test.git","svn_url":"https://github.com/sirpa44/test","homepage":null,"size":44,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sirpa44/test/pulls/6"},"html":{"href":"https://github.com/sirpa44/test/pull/6"},"issue":{"href":"https://api.github.com/repos/sirpa44/test/issues/6"},"comments":{"href":"https://api.github.com/repos/sirpa44/test/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/sirpa44/test/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/sirpa44/test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sirpa44/test/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/sirpa44/test/statuses/80a000d2801dacf61847ca6d799511ccd4019d63"}},"author_association":"OWNER"}}
{"actor":{"display_login":"siwane"}}