{"action":"created","comment":{"url":"https://api.github.com/repos/GEWIS/gewisweb/pulls/comments/45046799","id":45046799,"diff_hunk":"@@ -2,52 +2,454 @@\n \n namespace Company\\Service;\n \n-use Application\\Service\\AbstractService;\n+//use Application\\Service\\AbstractService;\n+use Application\\Service\\AbstractAclService;\n \n-use Company\\Model\\Company as CompanyModel;\n-use Company\\Mapper\\Company as CompanyMapper;\n /**\n  * Company service.\n  */\n-class Company extends AbstractService\n+class Company extends AbstractACLService\n {\n+    /**\n+     * Returns an list of all companies (excluding hidden companies\n+     *\n+     */\n     public function getCompanyList()\n     {\n-        return $this->getCompanyMapper()->findAll();\n+        $translator = $this->getTranslator();\n+        if ($this->isAllowed('list')) {\n+            return $this->getCompanyMapper()->findAll($translator->getLocale());\n+        } else {\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed list the companies')\n+            );\n+        }\n     }\n-    public function getCompaniesWithAsciiName($asciiName)\n+    // Company list for admin interface\n+    /**\n+     * Returns a list of all companies (including hidden companies)\n+     *\n+     */\n+    public function getHiddenCompanyList()\n     {\n-        return $this->getCompanyMapper()->findCompaniesWithAsciiName($asciiName);\n+        if ($this->isAllowed('listall')) {\n+            return $this->getCompanyMapper()->findAll();\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to acces the admin interface')\n+            );\n+        }\n     }\n \n-    public function getJobsWithAsciiName($companyAsciiName,$jobAsciiName)\n+    /**\n+     * Checks if the data is valid, and if it is saves the packet\n+     *\n+     * @param mixed $packet\n+     * @param mixed $data\n+     */\n+    public function savePacketWithData($packet,$data)\n     {\n-        return $this->getJobMapper()->findJobWithAsciiName($companyAsciiName,$jobAsciiName);\n+        $packetForm = $this->getPacketForm();\n+        $packetForm->setData($data);\n+        if ($packetForm->isValid()){\n+            $packet->exchangeArray($data); \n+            $this->savePacket();\n+        }\n     }\n-    public function getCompanyMapper()\n+\n+    /**\n+     * Checks if the data is valid, and if it is, saves the Company\n+     *\n+     * @param mixed $company\n+     * @param mixed $data\n+     */\n+    public function saveCompanyWithData($company,$data)\n     {\n-        return $this->sm->get('company_mapper_company');\n+        $companyForm = $this->getCompanyForm();\n+        $companyForm->setData($data);\n+        if ($companyForm->isValid()){\n+            $company->exchangeArray($data); \n+            $this->saveCompany();\n+        }\n+    }\n+\n+    /**\n+     * Checks if the data is valid, and if it is, saves the Job\n+     *\n+     * @param mixed $job\n+     * @param mixed $data\n+     */\n+    public function saveJobWithData($job,$data)\n+    {\n+        $jobForm = $this->getJobForm();\n+        $jobForm->setData($data);\n+        if ($jobForm->isValid()){\n+            $job->exchangeArray($data); \n+            $this->saveJob();\n+        }\n+    }\n+\n+    /**\n+     * Saves all modified jobs\n+     *\n+     */\n+    public function saveJob()\n+    {\n+        $this->getJobMapper()->save();\n+    }\n+\n+    /**\n+     * Saves all modified companies\n+     *\n+     */\n+    public function saveCompany()\n+    {\n+        $this->getCompanyMapper()->save();\n+    }\n+\n+    /**\n+     * Saves all modified packets\n+     *\n+     */\n+    public function savePacket()\n+    {\n+        $this->getPacketMapper()->save();\n+    }\n+\n+    /**\n+     * Checks if the data is valid, and if it is, inserts the company, and sets \n+     * all data\n+     *\n+     * @param mixed $data\n+     */\n+    public function insertCompanyWithData($data)\n+    {\n+        $companyForm = $this->getCompanyForm();\n+        $companyForm->setData($data);\n+        if ($companyForm->isValid()) {\n+            $company = $this->insertCompany($data['languages']);\n+            $company->exchangeArray($data);\n+            $this->saveCompany();\n+            return true;\n+        }\n+        return false;\n+    }\n+    /**\n+     * Inserts the company and initializes translations for the given languages\n+     *\n+     * @param mixed $languages\n+     */\n+    public function insertCompany($languages)\n+    {\n+        if ($this->isAllowed('insert')) {\n+            return $this->getCompanyMapper()->insert($languages);\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to insert a company')\n+            );\n+        }\n+    }\n+\n+    /**\n+     * Checks if the data is valid, and if it is, inserts the packet, and assigns it to the given company\n+     *\n+     * @param mixed $companySlugName\n+     * @param mixed $data\n+     */\n+    public function insertPacketForCompanySlugNameWithData($companySlugName,$data)\n+    {\n+        $packetForm = $this->getPacketForm();\n+        $packetForm->setData($data);\n+        if ($packetForm->isValid()) {\n+            $packet = $this->insertPacketForCompanySlugName($companySlugName);\n+            $packet->exchangeArray($data);\n+            $this->savePacket();\n+            return true;\n+        }\n+        return false;\n+    }\n+\n+    /**\n+     * Inserts a packet and assigns it to the given company\n+     *\n+     * @param mixed $companySlugName\n+     */\n+    public function insertPacketForCompanySlugName($companySlugName)\n+    {\n+        if ($this->isAllowed('insert')) {\n+            $companies = $this->getEditableCompaniesWithSlugName($companySlugName);\n+            var_dump($companySlugName);\n+            $company = $companies[0];\n+\n+            return $this->getPacketMapper()->insertPacketIntoCompany($company);\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to insert a packet')\n+            );\n+        }\n+    }\n+    /**\n+     * Checks if the data is valid, and if it is, assigns a job, and bind it to \n+     * the given packet\n+     *\n+     * @param mixed $packetID\n+     * @param mixed $data\n+     */\n+    public function insertJobIntoPacketIDWithData($packetID,$data)\n+    {\n+        $jobForm = $this->getJobForm();\n+        $jobForm->setData($data);\n+        if ($jobForm->isValid()) {\n+            $job = $this->insertJobIntoPacketID($packetId);\n+            $job->exchangeArray($data);\n+            $this->saveCompany();\n+            return true;\n+        }\n+        return false;\n+    }\n+    /**\n+     * Inserts a job, and binds it to the given packet\n+     *\n+     * @param mixed $packetID\n+     */\n+    public function insertJobIntoPacketID($packetID)\n+    {\n+        if ($this->isAllowed('insert')) {\n+            $packet = $this->getEditablePacket($packetID);\n+            $result = $this->getJobMapper()->insertIntoPacket($packet);\n+\n+            return $result;\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to insert a job')\n+            );\n+        }\n+    }\n+\n+    /**\n+     * Deletes the given packet\n+     *\n+     * @param mixed $packetID\n+     */\n+    public function deletePacket($packetID)\n+    {\n+        if ($this->isAllowed('delete')) {\n+            return $this->getPacketMapper()->delete($packetID);\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to delete packets')\n+            );\n+        }\n+    }\n+    /**\n+     * Deletes the company identified with $slug\n+     *\n+     * @param mixed $slug\n+     */\n+    public function deleteCompaniesWithSlug($slug)\n+    {\n+        if ($this->isAllowed('delete')) {\n+            return $this->getCompanyMapper()->deleteWithSlug($slug);\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to delete companies')\n+            );\n+        }\n+    }\n+\n+    /**\n+     * Returns all jobs that are owned by a company identified with \n+     * $companySlugname\n+     *\n+     * @param mixed $companySlugName\n+     */\n+    public function getJobsWithCompanySlugName($companySlugName)\n+    {\n+        $return = $this->getJobMapper()->findJobsWithCompanySlugName($companySlugName);\n+\n+        return $return;\n+    }\n+\n+    /**\n+     * Returns all companies identified with $slugName\n+     *\n+     * @param mixed $slugName\n+     */\n+    public function getCompaniesWithSlugName($slugName)\n+    {\n+        return $this->getCompanyMapper()->findCompaniesWithSlugName($slugName);\n+    }\n+\n+    /**\n+     * Returns a persistent packet\n+     *\n+     * @param mixed $packetID\n+     */\n+    public function getEditablePacket($packetID)\n+    {\n+        if ($this->isAllowed('edit')) {\n+            $packet = $this->getPacketMapper()->findEditablePacket($packetID);\n+\n+            return $packet;\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to edit packets')\n+            );\n+        }\n+    }\n+\n+    /**\n+     * Returns all companies with a given $slugName and makes them persistent\n+     *\n+     * @param mixed $slugName\n+     */\n+    public function getEditableCompaniesWithSlugName($slugName)\n+    {\n+        if ($this->isAllowed('edit')) {\n+            return $this->getCompanyMapper()->findEditableCompaniesWithSlugName($slugName, true);\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to edit companies')\n+            );\n+        }\n+    }\n+\n+    /**\n+     * Returns all jobs with a given slugname, owned by a company with \n+     * $companySlugName\n+     *\n+     * @param mixed $companySlugName\n+     * @param mixed $jobSlugName\n+     */\n+    public function getEditableJobsWithSlugName($companySlugName, $jobSlugName)\n+    {\n+        if ($this->isAllowed('edit')) {\n+            return $this->getJobMapper()->findJobWithSlugName($companySlugName, $jobSlugName);\n+        } else {\n+            $translator = $this->getTranslator();\n+            throw new \\User\\Permissions\\NotAllowedException(\n+                $translator->translate('You are not allowed to edit jobs')\n+            );\n+        }\n+    }\n+\n+    /**\n+     * Returns all jobs with a $jobSlugName, owned by a company with a \n+     * $companySlugName\n+     *\n+     * @param mixed $companySlugName\n+     * @param mixed $jobSlugName\n+     */\n+    public function getJobsWithSlugName($companySlugName, $jobSlugName)\n+    {\n+        return $this->getJobMapper()->findJobWithSlugName($companySlugName, $jobSlugName);\n     }\n \n+    /**\n+     * Returns all jobs in the database\n+     *\n+     */\n     public function getJobList()\n     {\n         return $this->getJobMapper()->findAll();\n     }\n \n+    /**\n+     * Get the Company Edit form.\n+     *\n+     * @return Company Edit form\n+     */\n+    public function getCompanyForm()\n+    {\n+        return $this->sm->get('company_admin_edit_company_form');\n+    }\n+\n+    /**\n+     * Returns a the form for entering packets\n+     *\n+     */\n+    public function getPacketForm()\n+    {\n+        return $this->sm->get('company_admin_edit_packet_form');\n+    }\n+\n+    /**\n+     * Returns the form for entering jobs\n+     *\n+     */\n+    public function getJobForm()\n+    {\n+        return $this->sm->get('company_admin_edit_job_form');\n+    }\n+\n+    /**\n+     * Returns all jobs that are active\n+     *\n+     */\n     public function getActiveJobList()\n     {\n         $jl = $this->getJobList();\n         $r = array();\n-        foreach($jl as $j) {\n+        foreach ($jl as $j) {\n             if ($j->getActive()) {\n                 array_push($r, $j);","path":"module/Company/src/Company/Service/Company.php","position":414,"original_position":414,"commit_id":"85fb6aea8df9660d628637913b773908c1b7e2c2","original_commit_id":"85fb6aea8df9660d628637913b773908c1b7e2c2","user":{"login":"wsinnema","id":798647,"avatar_url":"https://avatars.githubusercontent.com/u/798647?v=3","gravatar_id":"","url":"https://api.github.com/users/wsinnema","html_url":"https://github.com/wsinnema","followers_url":"https://api.github.com/users/wsinnema/followers","following_url":"https://api.github.com/users/wsinnema/following{/other_user}","gists_url":"https://api.github.com/users/wsinnema/gists{/gist_id}","starred_url":"https://api.github.com/users/wsinnema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsinnema/subscriptions","organizations_url":"https://api.github.com/users/wsinnema/orgs","repos_url":"https://api.github.com/users/wsinnema/repos","events_url":"https://api.github.com/users/wsinnema/events{/privacy}","received_events_url":"https://api.github.com/users/wsinnema/received_events","type":"User","site_admin":false},"body":"Array push describes what the code does in text, which is more readable than symbols.","created_at":"2015-11-17T11:06:08Z","updated_at":"2015-11-17T11:06:08Z","html_url":"https://github.com/GEWIS/gewisweb/pull/214#discussion_r45046799","pull_request_url":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214","_links":{"self":{"href":"https://api.github.com/repos/GEWIS/gewisweb/pulls/comments/45046799"},"html":{"href":"https://github.com/GEWIS/gewisweb/pull/214#discussion_r45046799"},"pull_request":{"href":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214"}}},"pull_request":{"url":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214","id":47365420,"html_url":"https://github.com/GEWIS/gewisweb/pull/214","diff_url":"https://github.com/GEWIS/gewisweb/pull/214.diff","patch_url":"https://github.com/GEWIS/gewisweb/pull/214.patch","issue_url":"https://api.github.com/repos/GEWIS/gewisweb/issues/214","number":214,"state":"open","locked":false,"title":"Fixes #45","user":{"login":"wsinnema","id":798647,"avatar_url":"https://avatars.githubusercontent.com/u/798647?v=3","gravatar_id":"","url":"https://api.github.com/users/wsinnema","html_url":"https://github.com/wsinnema","followers_url":"https://api.github.com/users/wsinnema/followers","following_url":"https://api.github.com/users/wsinnema/following{/other_user}","gists_url":"https://api.github.com/users/wsinnema/gists{/gist_id}","starred_url":"https://api.github.com/users/wsinnema/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsinnema/subscriptions","organizations_url":"https://api.github.com/users/wsinnema/orgs","repos_url":"https://api.github.com/users/wsinnema/repos","events_url":"https://api.github.com/users/wsinnema/events{/privacy}","received_events_url":"https://api.github.com/users/wsinnema/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-11T11:57:26Z","updated_at":"2015-11-17T11:06:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac1b3861780f5cd8b1ea3fa6c3d10aa9ff1fad30","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214/commits","review_comments_url":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214/comments","review_comment_url":"https://api.github.com/repos/GEWIS/gewisweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GEWIS/gewisweb/issues/214/comments","statuses_url":"https://api.github.com/repos/GEWIS/gewisweb/statuses/85fb6aea8df9660d628637913b773908c1b7e2c2","head":{"label":"gafderks:feature/facaturelijst","ref":"feature/facaturelijst","sha":"85fb6aea8df9660d628637913b773908c1b7e2c2","user":{"login":"gafderks","id":7315457,"avatar_url":"https://avatars.githubusercontent.com/u/7315457?v=3","gravatar_id":"","url":"https://api.github.com/users/gafderks","html_url":"https://github.com/gafderks","followers_url":"https://api.github.com/users/gafderks/followers","following_url":"https://api.github.com/users/gafderks/following{/other_user}","gists_url":"https://api.github.com/users/gafderks/gists{/gist_id}","starred_url":"https://api.github.com/users/gafderks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafderks/subscriptions","organizations_url":"https://api.github.com/users/gafderks/orgs","repos_url":"https://api.github.com/users/gafderks/repos","events_url":"https://api.github.com/users/gafderks/events{/privacy}","received_events_url":"https://api.github.com/users/gafderks/received_events","type":"User","site_admin":false},"repo":{"id":21128552,"name":"gewisweb","full_name":"gafderks/gewisweb","owner":{"login":"gafderks","id":7315457,"avatar_url":"https://avatars.githubusercontent.com/u/7315457?v=3","gravatar_id":"","url":"https://api.github.com/users/gafderks","html_url":"https://github.com/gafderks","followers_url":"https://api.github.com/users/gafderks/followers","following_url":"https://api.github.com/users/gafderks/following{/other_user}","gists_url":"https://api.github.com/users/gafderks/gists{/gist_id}","starred_url":"https://api.github.com/users/gafderks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gafderks/subscriptions","organizations_url":"https://api.github.com/users/gafderks/orgs","repos_url":"https://api.github.com/users/gafderks/repos","events_url":"https://api.github.com/users/gafderks/events{/privacy}","received_events_url":"https://api.github.com/users/gafderks/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gafderks/gewisweb","description":"GEWIS Website","fork":true,"url":"https://api.github.com/repos/gafderks/gewisweb","forks_url":"https://api.github.com/repos/gafderks/gewisweb/forks","keys_url":"https://api.github.com/repos/gafderks/gewisweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gafderks/gewisweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gafderks/gewisweb/teams","hooks_url":"https://api.github.com/repos/gafderks/gewisweb/hooks","issue_events_url":"https://api.github.com/repos/gafderks/gewisweb/issues/events{/number}","events_url":"https://api.github.com/repos/gafderks/gewisweb/events","assignees_url":"https://api.github.com/repos/gafderks/gewisweb/assignees{/user}","branches_url":"https://api.github.com/repos/gafderks/gewisweb/branches{/branch}","tags_url":"https://api.github.com/repos/gafderks/gewisweb/tags","blobs_url":"https://api.github.com/repos/gafderks/gewisweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gafderks/gewisweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gafderks/gewisweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/gafderks/gewisweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gafderks/gewisweb/statuses/{sha}","languages_url":"https://api.github.com/repos/gafderks/gewisweb/languages","stargazers_url":"https://api.github.com/repos/gafderks/gewisweb/stargazers","contributors_url":"https://api.github.com/repos/gafderks/gewisweb/contributors","subscribers_url":"https://api.github.com/repos/gafderks/gewisweb/subscribers","subscription_url":"https://api.github.com/repos/gafderks/gewisweb/subscription","commits_url":"https://api.github.com/repos/gafderks/gewisweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/gafderks/gewisweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/gafderks/gewisweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/gafderks/gewisweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/gafderks/gewisweb/contents/{+path}","compare_url":"https://api.github.com/repos/gafderks/gewisweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gafderks/gewisweb/merges","archive_url":"https://api.github.com/repos/gafderks/gewisweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gafderks/gewisweb/downloads","issues_url":"https://api.github.com/repos/gafderks/gewisweb/issues{/number}","pulls_url":"https://api.github.com/repos/gafderks/gewisweb/pulls{/number}","milestones_url":"https://api.github.com/repos/gafderks/gewisweb/milestones{/number}","notifications_url":"https://api.github.com/repos/gafderks/gewisweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gafderks/gewisweb/labels{/name}","releases_url":"https://api.github.com/repos/gafderks/gewisweb/releases{/id}","created_at":"2014-06-23T14:08:54Z","updated_at":"2014-09-16T18:31:59Z","pushed_at":"2015-11-11T12:46:46Z","git_url":"git://github.com/gafderks/gewisweb.git","ssh_url":"git@github.com:gafderks/gewisweb.git","clone_url":"https://github.com/gafderks/gewisweb.git","svn_url":"https://github.com/gafderks/gewisweb","homepage":null,"size":9499,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GEWIS:master","ref":"master","sha":"070d88f937c32e2c3706276d942e1f95f05296c6","user":{"login":"GEWIS","id":1815510,"avatar_url":"https://avatars.githubusercontent.com/u/1815510?v=3","gravatar_id":"","url":"https://api.github.com/users/GEWIS","html_url":"https://github.com/GEWIS","followers_url":"https://api.github.com/users/GEWIS/followers","following_url":"https://api.github.com/users/GEWIS/following{/other_user}","gists_url":"https://api.github.com/users/GEWIS/gists{/gist_id}","starred_url":"https://api.github.com/users/GEWIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GEWIS/subscriptions","organizations_url":"https://api.github.com/users/GEWIS/orgs","repos_url":"https://api.github.com/users/GEWIS/repos","events_url":"https://api.github.com/users/GEWIS/events{/privacy}","received_events_url":"https://api.github.com/users/GEWIS/received_events","type":"Organization","site_admin":false},"repo":{"id":16512277,"name":"gewisweb","full_name":"GEWIS/gewisweb","owner":{"login":"GEWIS","id":1815510,"avatar_url":"https://avatars.githubusercontent.com/u/1815510?v=3","gravatar_id":"","url":"https://api.github.com/users/GEWIS","html_url":"https://github.com/GEWIS","followers_url":"https://api.github.com/users/GEWIS/followers","following_url":"https://api.github.com/users/GEWIS/following{/other_user}","gists_url":"https://api.github.com/users/GEWIS/gists{/gist_id}","starred_url":"https://api.github.com/users/GEWIS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GEWIS/subscriptions","organizations_url":"https://api.github.com/users/GEWIS/orgs","repos_url":"https://api.github.com/users/GEWIS/repos","events_url":"https://api.github.com/users/GEWIS/events{/privacy}","received_events_url":"https://api.github.com/users/GEWIS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GEWIS/gewisweb","description":"GEWIS Website","fork":false,"url":"https://api.github.com/repos/GEWIS/gewisweb","forks_url":"https://api.github.com/repos/GEWIS/gewisweb/forks","keys_url":"https://api.github.com/repos/GEWIS/gewisweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GEWIS/gewisweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GEWIS/gewisweb/teams","hooks_url":"https://api.github.com/repos/GEWIS/gewisweb/hooks","issue_events_url":"https://api.github.com/repos/GEWIS/gewisweb/issues/events{/number}","events_url":"https://api.github.com/repos/GEWIS/gewisweb/events","assignees_url":"https://api.github.com/repos/GEWIS/gewisweb/assignees{/user}","branches_url":"https://api.github.com/repos/GEWIS/gewisweb/branches{/branch}","tags_url":"https://api.github.com/repos/GEWIS/gewisweb/tags","blobs_url":"https://api.github.com/repos/GEWIS/gewisweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GEWIS/gewisweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GEWIS/gewisweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/GEWIS/gewisweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GEWIS/gewisweb/statuses/{sha}","languages_url":"https://api.github.com/repos/GEWIS/gewisweb/languages","stargazers_url":"https://api.github.com/repos/GEWIS/gewisweb/stargazers","contributors_url":"https://api.github.com/repos/GEWIS/gewisweb/contributors","subscribers_url":"https://api.github.com/repos/GEWIS/gewisweb/subscribers","subscription_url":"https://api.github.com/repos/GEWIS/gewisweb/subscription","commits_url":"https://api.github.com/repos/GEWIS/gewisweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/GEWIS/gewisweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/GEWIS/gewisweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/GEWIS/gewisweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/GEWIS/gewisweb/contents/{+path}","compare_url":"https://api.github.com/repos/GEWIS/gewisweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GEWIS/gewisweb/merges","archive_url":"https://api.github.com/repos/GEWIS/gewisweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GEWIS/gewisweb/downloads","issues_url":"https://api.github.com/repos/GEWIS/gewisweb/issues{/number}","pulls_url":"https://api.github.com/repos/GEWIS/gewisweb/pulls{/number}","milestones_url":"https://api.github.com/repos/GEWIS/gewisweb/milestones{/number}","notifications_url":"https://api.github.com/repos/GEWIS/gewisweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GEWIS/gewisweb/labels{/name}","releases_url":"https://api.github.com/repos/GEWIS/gewisweb/releases{/id}","created_at":"2014-02-04T13:22:05Z","updated_at":"2015-05-06T10:10:51Z","pushed_at":"2015-11-11T12:46:47Z","git_url":"git://github.com/GEWIS/gewisweb.git","ssh_url":"git@github.com:GEWIS/gewisweb.git","clone_url":"https://github.com/GEWIS/gewisweb.git","svn_url":"https://github.com/GEWIS/gewisweb","homepage":null,"size":5864,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":50,"forks":11,"open_issues":50,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214"},"html":{"href":"https://github.com/GEWIS/gewisweb/pull/214"},"issue":{"href":"https://api.github.com/repos/GEWIS/gewisweb/issues/214"},"comments":{"href":"https://api.github.com/repos/GEWIS/gewisweb/issues/214/comments"},"review_comments":{"href":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214/comments"},"review_comment":{"href":"https://api.github.com/repos/GEWIS/gewisweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GEWIS/gewisweb/pulls/214/commits"},"statuses":{"href":"https://api.github.com/repos/GEWIS/gewisweb/statuses/85fb6aea8df9660d628637913b773908c1b7e2c2"}}}}