{"action":"created","comment":{"url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/comments/176711371","pull_request_review_id":106463493,"id":176711371,"diff_hunk":"@@ -0,0 +1,260 @@\n+<?php\n+\n+/* Doc Block\n+ * Returns all project titles from array content provided by database.\n+ *\n+ * @param $array array associative array provided by database.\n+ *\n+ * @return string a list of project titles in the arrays within the arrays pulled from the database.\n+ */\n+function returnProjectTitles(array $array):string {\n+    $titles = '';\n+    foreach ($array as $value) {\n+        $titles .=$value['projectTitle'].\"\\n\";\n+    }\n+    return $titles;\n+}\n+\n+/* Doc Block\n+ * Returns all project title links from array content provided by database.\n+ *\n+ * @param $array array associative array provided by database.\n+ *\n+ * @return string a list of project title links in the arrays within the arrays pulled from the database.\n+ */\n+function returnProjectTitleLinks(array $array):string {\n+    $titlesLinks = '';\n+    foreach ($array as $value) {\n+        $titlesLinks .= $value['projectTitleLink'].\"\\n\";\n+    }\n+    return $titlesLinks;\n+}\n+\n+/* Doc Block\n+ * Returns all project image links from array content provided by database.\n+ *\n+ * @param $array array associative array provided by database.\n+ *\n+ * @return string a list of project image links in the arrays within the arrays pulled from the database.\n+ */\n+function returnProjectImages(array $array):string {\n+    $projectImages = '';\n+    foreach ($array as $value) {\n+        $projectImages .= $value['projectImage'].\"\\n\";\n+    }\n+    return $projectImages;\n+}\n+\n+/* Doc Block\n+ * Returns project id's from array content provided by database.\n+ *\n+ * @param $array array associative array provided by database.\n+ *\n+ * @return string a list of id's or keys in the arrays within the arrays pulled from the database.\n+ */\n+function returnProjectIds(array $array):string {\n+    $projectIds = '';\n+    foreach ($array as $value) {\n+        $projectIds .= $value[\"id\"].\"\\n\";\n+    }\n+    return $projectIds;\n+}\n+\n+/* Doc Block\n+ * Returns a single project title from array content provided by database.\n+ *\n+ * @param $array array associative array provided by database query.\n+ * @param $recId int number pointing to the record id number in the database.\n+ *\n+ * @return string the title content for a single record.\n+ */\n+function returnProjectTitle(array $array, int $recId):string { // change title to record\n+    $index = $recId - 1;\n+    $projectTitleArray = $array[$index];\n+    $projectTitle = '';\n+    $projectTitle .=$projectTitleArray['projectTitle'];","path":"cms/functions.php","position":75,"original_position":75,"commit_id":"a8766addf67e8ad45e6a27a5f41885ec603bdb17","original_commit_id":"a8766addf67e8ad45e6a27a5f41885ec603bdb17","user":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"body":"Edited for all 4 functions that use this.","created_at":"2018-03-23T11:49:51Z","updated_at":"2018-03-23T11:49:51Z","html_url":"https://github.com/Osama-Tahboub1/Portfolio/pull/10#discussion_r176711371","pull_request_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/comments/176711371"},"html":{"href":"https://github.com/Osama-Tahboub1/Portfolio/pull/10#discussion_r176711371"},"pull_request":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10"}},"in_reply_to_id":176666474},"pull_request":{"url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10","id":176824519,"html_url":"https://github.com/Osama-Tahboub1/Portfolio/pull/10","diff_url":"https://github.com/Osama-Tahboub1/Portfolio/pull/10.diff","patch_url":"https://github.com/Osama-Tahboub1/Portfolio/pull/10.patch","issue_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/10","number":10,"state":"open","locked":false,"title":"Project 2 submission","user":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"body":"Includes Story 1 requirements and most of story 2's requirements.","created_at":"2018-03-22T15:52:35Z","updated_at":"2018-03-23T11:49:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9ae59b98f26dc812755e215b09aaab9416b9305f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10/commits","review_comments_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10/comments","review_comment_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/10/comments","statuses_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/statuses/a8766addf67e8ad45e6a27a5f41885ec603bdb17","head":{"label":"Osama-Tahboub1:dev","ref":"dev","sha":"a8766addf67e8ad45e6a27a5f41885ec603bdb17","user":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"repo":{"id":122959635,"name":"Portfolio","full_name":"Osama-Tahboub1/Portfolio","owner":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Osama-Tahboub1/Portfolio","description":"Portfolio Website","fork":false,"url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio","forks_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/forks","keys_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/teams","hooks_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/hooks","issue_events_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/events{/number}","events_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/events","assignees_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/assignees{/user}","branches_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/branches{/branch}","tags_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/tags","blobs_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/statuses/{sha}","languages_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/languages","stargazers_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/stargazers","contributors_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/contributors","subscribers_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/subscribers","subscription_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/subscription","commits_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/contents/{+path}","compare_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/merges","archive_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/downloads","issues_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues{/number}","pulls_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls{/number}","milestones_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/milestones{/number}","notifications_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/labels{/name}","releases_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/releases{/id}","deployments_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/deployments","created_at":"2018-02-26T11:22:20Z","updated_at":"2018-03-22T15:47:10Z","pushed_at":"2018-03-23T09:57:31Z","git_url":"git://github.com/Osama-Tahboub1/Portfolio.git","ssh_url":"git@github.com:Osama-Tahboub1/Portfolio.git","clone_url":"https://github.com/Osama-Tahboub1/Portfolio.git","svn_url":"https://github.com/Osama-Tahboub1/Portfolio","homepage":null,"size":19900,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"Osama-Tahboub1:master","ref":"master","sha":"c56206f8b613055c1e71121f0422cbd73d1140ce","user":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"repo":{"id":122959635,"name":"Portfolio","full_name":"Osama-Tahboub1/Portfolio","owner":{"login":"Osama-Tahboub1","id":36399244,"avatar_url":"https://avatars3.githubusercontent.com/u/36399244?v=4","gravatar_id":"","url":"https://api.github.com/users/Osama-Tahboub1","html_url":"https://github.com/Osama-Tahboub1","followers_url":"https://api.github.com/users/Osama-Tahboub1/followers","following_url":"https://api.github.com/users/Osama-Tahboub1/following{/other_user}","gists_url":"https://api.github.com/users/Osama-Tahboub1/gists{/gist_id}","starred_url":"https://api.github.com/users/Osama-Tahboub1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Osama-Tahboub1/subscriptions","organizations_url":"https://api.github.com/users/Osama-Tahboub1/orgs","repos_url":"https://api.github.com/users/Osama-Tahboub1/repos","events_url":"https://api.github.com/users/Osama-Tahboub1/events{/privacy}","received_events_url":"https://api.github.com/users/Osama-Tahboub1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Osama-Tahboub1/Portfolio","description":"Portfolio Website","fork":false,"url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio","forks_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/forks","keys_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/teams","hooks_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/hooks","issue_events_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/events{/number}","events_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/events","assignees_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/assignees{/user}","branches_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/branches{/branch}","tags_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/tags","blobs_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/statuses/{sha}","languages_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/languages","stargazers_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/stargazers","contributors_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/contributors","subscribers_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/subscribers","subscription_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/subscription","commits_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/contents/{+path}","compare_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/merges","archive_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/downloads","issues_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues{/number}","pulls_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls{/number}","milestones_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/milestones{/number}","notifications_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/labels{/name}","releases_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/releases{/id}","deployments_url":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/deployments","created_at":"2018-02-26T11:22:20Z","updated_at":"2018-03-22T15:47:10Z","pushed_at":"2018-03-23T09:57:31Z","git_url":"git://github.com/Osama-Tahboub1/Portfolio.git","ssh_url":"git@github.com:Osama-Tahboub1/Portfolio.git","clone_url":"https://github.com/Osama-Tahboub1/Portfolio.git","svn_url":"https://github.com/Osama-Tahboub1/Portfolio","homepage":null,"size":19900,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10"},"html":{"href":"https://github.com/Osama-Tahboub1/Portfolio/pull/10"},"issue":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/10"},"comments":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/Osama-Tahboub1/Portfolio/statuses/a8766addf67e8ad45e6a27a5f41885ec603bdb17"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Osama-Tahboub1"}}