{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/app/pulls/comments/91717589","pull_request_review_id":12228508,"id":91717589,"diff_hunk":"@@ -0,0 +1,199 @@\n+<?php\n+/**\n+ * InternalNotificationApi\n+ * PHP version 5\n+ *\n+ * @category Class\n+ * @package  Swagger\\Client\n+ * @author   http://github.com/swagger-api/swagger-codegen\n+ * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2\n+ * @link     https://github.com/swagger-api/swagger-codegen\n+ */\n+\n+/**\n+ * discussion\n+ *\n+ * No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)\n+ *\n+ * OpenAPI spec version: 0.1-SNAPSHOT\n+ * \n+ * Generated by: https://github.com/swagger-api/swagger-codegen.git\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+/**\n+ * NOTE: This class is auto generated by the swagger code generator program.\n+ * https://github.com/swagger-api/swagger-codegen\n+ * Do not edit the class manually.\n+ */\n+\n+namespace Swagger\\Client\\Discussion\\Api;\n+\n+use \\Swagger\\Client\\Configuration;\n+use \\Swagger\\Client\\ApiClient;\n+use \\Swagger\\Client\\ApiException;\n+use \\Swagger\\Client\\ObjectSerializer;\n+\n+/**\n+ * InternalNotificationApi Class Doc Comment\n+ *\n+ * @category Class\n+ * @package  Swagger\\Client\n+ * @author   http://github.com/swagger-api/swagger-codegen\n+ * @license  http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2\n+ * @link     https://github.com/swagger-api/swagger-codegen\n+ */\n+class InternalNotificationApi\n+{\n+\n+    /**\n+     * API Client\n+     *\n+     * @var \\Swagger\\Client\\ApiClient instance of the ApiClient\n+     */\n+    protected $apiClient;\n+\n+    /**\n+     * Constructor\n+     *\n+     * @param \\Swagger\\Client\\ApiClient|null $apiClient The api client to use\n+     */\n+    public function __construct(\\Swagger\\Client\\ApiClient $apiClient = null)\n+    {\n+        if ($apiClient == null) {\n+            $apiClient = new ApiClient();\n+            $apiClient->getConfig()->setHost('https://localhost/discussion');\n+        }\n+\n+        $this->apiClient = $apiClient;\n+    }\n+\n+    /**\n+     * Get API client\n+     *\n+     * @return \\Swagger\\Client\\ApiClient get the API client\n+     */\n+    public function getApiClient()\n+    {\n+        return $this->apiClient;\n+    }\n+\n+    /**\n+     * Set the API client\n+     *\n+     * @param \\Swagger\\Client\\ApiClient $apiClient set the API client\n+     *\n+     * @return InternalNotificationApi\n+     */\n+    public function setApiClient(\\Swagger\\Client\\ApiClient $apiClient)\n+    {\n+        $this->apiClient = $apiClient;\n+        return $this;\n+    }\n+\n+    /**\n+     * Operation requestNotification\n+     *\n+     * Request notification\n+     *\n+     * @param string $x_wikia_internal_request  (required)\n+     * @param \\Swagger\\Client\\Discussion\\Models\\RequestNotificationRequest $body  (optional)\n+     * @return void\n+     * @throws \\Swagger\\Client\\ApiException on non-2xx response\n+     */\n+    public function requestNotification($x_wikia_internal_request, $body = null)\n+    {\n+        list($response) = $this->requestNotificationWithHttpInfo($x_wikia_internal_request, $body);\n+        return $response;\n+    }\n+\n+    /**\n+     * Operation requestNotificationWithHttpInfo\n+     *\n+     * Request notification\n+     *\n+     * @param string $x_wikia_internal_request  (required)\n+     * @param \\Swagger\\Client\\Discussion\\Models\\RequestNotificationRequest $body  (optional)\n+     * @return Array of null, HTTP status code, HTTP response headers (array of strings)\n+     * @throws \\Swagger\\Client\\ApiException on non-2xx response\n+     */\n+    public function requestNotificationWithHttpInfo($x_wikia_internal_request, $body = null)\n+    {\n+        // verify the required parameter 'x_wikia_internal_request' is set\n+        if ($x_wikia_internal_request === null) {\n+            throw new \\InvalidArgumentException('Missing the required parameter $x_wikia_internal_request when calling requestNotification');\n+        }\n+        // parse inputs\n+        $resourcePath = \"/request-notification\";\n+        $httpBody = '';\n+        $queryParams = array();\n+        $headerParams = array();\n+        $formParams = array();\n+        $_header_accept = $this->apiClient->selectHeaderAccept(array('application/json'));\n+        if (!is_null($_header_accept)) {\n+            $headerParams['Accept'] = $_header_accept;\n+        }\n+        $headerParams['Content-Type'] = $this->apiClient->selectHeaderContentType(array());\n+\n+        // header params\n+        if ($x_wikia_internal_request !== null) {\n+            $headerParams['X-Wikia-Internal-Request'] = $this->apiClient->getSerializer()->toHeaderValue($x_wikia_internal_request);\n+        }\n+        // default format to json\n+        $resourcePath = str_replace(\"{format}\", \"json\", $resourcePath);\n+\n+        // body params\n+        $_tempBody = null;\n+        if (isset($body)) {\n+            $_tempBody = $body;\n+        }\n+\n+        // for model (json/xml)\n+        if (isset($_tempBody)) {\n+            $httpBody = $_tempBody; // $_tempBody is the method argument, if present\n+        } elseif (count($formParams) > 0) {\n+            $httpBody = $formParams; // for HTTP post (form)\n+        }\n+        // this endpoint requires API key authentication\n+        $apiKey = $this->apiClient->getApiKeyWithPrefix('X-Wikia-AccessToken');\n+        if (strlen($apiKey) !== 0) {\n+            $headerParams['X-Wikia-AccessToken'] = $apiKey;\n+        }\n+        // this endpoint requires API key authentication\n+        $apiKey = $this->apiClient->getApiKeyWithPrefix('X-Wikia-UserId');\n+        if (strlen($apiKey) !== 0) {\n+            $headerParams['X-Wikia-UserId'] = $apiKey;\n+        }\n+        // make the API Call\n+        try {\n+            list($response, $statusCode, $httpHeader) = $this->apiClient->callApi(\n+                $resourcePath,\n+                'POST',\n+                $queryParams,\n+                $httpBody,\n+                $headerParams,\n+                null,\n+                '/request-notification'\n+            );\n+\n+            return array(null, $statusCode, $httpHeader);\n+        } catch (ApiException $e) {\n+            switch ($e->getCode()) {","path":"lib/Swagger/src/Discussion/Api/InternalNotificationApi.php","position":192,"original_position":192,"commit_id":"56141cd27e6dc36a33a625d8fd4550bca2e5c8c0","original_commit_id":"56141cd27e6dc36a33a625d8fd4550bca2e5c8c0","user":{"login":"WikiaTech","id":13279985,"avatar_url":"https://avatars.githubusercontent.com/u/13279985?v=3","gravatar_id":"","url":"https://api.github.com/users/WikiaTech","html_url":"https://github.com/WikiaTech","followers_url":"https://api.github.com/users/WikiaTech/followers","following_url":"https://api.github.com/users/WikiaTech/following{/other_user}","gists_url":"https://api.github.com/users/WikiaTech/gists{/gist_id}","starred_url":"https://api.github.com/users/WikiaTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WikiaTech/subscriptions","organizations_url":"https://api.github.com/users/WikiaTech/orgs","repos_url":"https://api.github.com/users/WikiaTech/repos","events_url":"https://api.github.com/users/WikiaTech/events{/privacy}","received_events_url":"https://api.github.com/users/WikiaTech/received_events","type":"User","site_admin":false},"body":"![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Either remove or fill this block of code. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS108)\n![MAJOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-major.png) Add a \"case default\" clause to this \"switch\" statement. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS131)\n![MINOR](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/severity-minor.png) Replace this \"switch\" statement with \"if\" statements to increase readability. [![rule](https://raw.githubusercontent.com/SonarCommunity/sonar-github/master/images/rule.png)](https://sonarqube.wikia-inc.com/coding_rules#rule_key=php%3AS1301)\n","created_at":"2016-12-09T13:45:44Z","updated_at":"2016-12-09T13:45:44Z","html_url":"https://github.com/Wikia/app/pull/12103#discussion_r91717589","pull_request_url":"https://api.github.com/repos/Wikia/app/pulls/12103","_links":{"self":{"href":"https://api.github.com/repos/Wikia/app/pulls/comments/91717589"},"html":{"href":"https://github.com/Wikia/app/pull/12103#discussion_r91717589"},"pull_request":{"href":"https://api.github.com/repos/Wikia/app/pulls/12103"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/app/pulls/12103","id":97311533,"html_url":"https://github.com/Wikia/app/pull/12103","diff_url":"https://github.com/Wikia/app/pull/12103.diff","patch_url":"https://github.com/Wikia/app/pull/12103.patch","issue_url":"https://api.github.com/repos/Wikia/app/issues/12103","number":12103,"state":"open","locked":false,"title":"SOC-2813 regenerate Discussion Swagger client and use it in DeadWikis and Close","user":{"login":"slayful","id":1950206,"avatar_url":"https://avatars.githubusercontent.com/u/1950206?v=3","gravatar_id":"","url":"https://api.github.com/users/slayful","html_url":"https://github.com/slayful","followers_url":"https://api.github.com/users/slayful/followers","following_url":"https://api.github.com/users/slayful/following{/other_user}","gists_url":"https://api.github.com/users/slayful/gists{/gist_id}","starred_url":"https://api.github.com/users/slayful/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slayful/subscriptions","organizations_url":"https://api.github.com/users/slayful/orgs","repos_url":"https://api.github.com/users/slayful/repos","events_url":"https://api.github.com/users/slayful/events{/privacy}","received_events_url":"https://api.github.com/users/slayful/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-09T13:45:01Z","updated_at":"2016-12-09T13:45:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f4f37f0bfb9e319ef3958a9066cb689a48bc890e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/app/pulls/12103/commits","review_comments_url":"https://api.github.com/repos/Wikia/app/pulls/12103/comments","review_comment_url":"https://api.github.com/repos/Wikia/app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/app/issues/12103/comments","statuses_url":"https://api.github.com/repos/Wikia/app/statuses/56141cd27e6dc36a33a625d8fd4550bca2e5c8c0","head":{"label":"Wikia:SOC-2813","ref":"SOC-2813","sha":"56141cd27e6dc36a33a625d8fd4550bca2e5c8c0","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":5532313,"name":"app","full_name":"Wikia/app","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/app","description":"Wikia Application Code","fork":false,"url":"https://api.github.com/repos/Wikia/app","forks_url":"https://api.github.com/repos/Wikia/app/forks","keys_url":"https://api.github.com/repos/Wikia/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/app/teams","hooks_url":"https://api.github.com/repos/Wikia/app/hooks","issue_events_url":"https://api.github.com/repos/Wikia/app/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/app/events","assignees_url":"https://api.github.com/repos/Wikia/app/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/app/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/app/tags","blobs_url":"https://api.github.com/repos/Wikia/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/app/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/app/languages","stargazers_url":"https://api.github.com/repos/Wikia/app/stargazers","contributors_url":"https://api.github.com/repos/Wikia/app/contributors","subscribers_url":"https://api.github.com/repos/Wikia/app/subscribers","subscription_url":"https://api.github.com/repos/Wikia/app/subscription","commits_url":"https://api.github.com/repos/Wikia/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/app/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/app/merges","archive_url":"https://api.github.com/repos/Wikia/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/app/downloads","issues_url":"https://api.github.com/repos/Wikia/app/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/app/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/app/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/app/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/app/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/app/deployments","created_at":"2012-08-23T20:55:58Z","updated_at":"2016-12-03T22:51:32Z","pushed_at":"2016-12-09T13:45:01Z","git_url":"git://github.com/Wikia/app.git","ssh_url":"git@github.com:Wikia/app.git","clone_url":"https://github.com/Wikia/app.git","svn_url":"https://github.com/Wikia/app","homepage":"http://dev.wikia.com","size":1496986,"stargazers_count":107,"watchers_count":107,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":114,"forks":85,"open_issues":114,"watchers":107,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"4f486ed93eda756a6b637f0519edf2937248935d","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":5532313,"name":"app","full_name":"Wikia/app","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/app","description":"Wikia Application Code","fork":false,"url":"https://api.github.com/repos/Wikia/app","forks_url":"https://api.github.com/repos/Wikia/app/forks","keys_url":"https://api.github.com/repos/Wikia/app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/app/teams","hooks_url":"https://api.github.com/repos/Wikia/app/hooks","issue_events_url":"https://api.github.com/repos/Wikia/app/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/app/events","assignees_url":"https://api.github.com/repos/Wikia/app/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/app/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/app/tags","blobs_url":"https://api.github.com/repos/Wikia/app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/app/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/app/languages","stargazers_url":"https://api.github.com/repos/Wikia/app/stargazers","contributors_url":"https://api.github.com/repos/Wikia/app/contributors","subscribers_url":"https://api.github.com/repos/Wikia/app/subscribers","subscription_url":"https://api.github.com/repos/Wikia/app/subscription","commits_url":"https://api.github.com/repos/Wikia/app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/app/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/app/merges","archive_url":"https://api.github.com/repos/Wikia/app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/app/downloads","issues_url":"https://api.github.com/repos/Wikia/app/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/app/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/app/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/app/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/app/releases{/id}","deployments_url":"https://api.github.com/repos/Wikia/app/deployments","created_at":"2012-08-23T20:55:58Z","updated_at":"2016-12-03T22:51:32Z","pushed_at":"2016-12-09T13:45:01Z","git_url":"git://github.com/Wikia/app.git","ssh_url":"git@github.com:Wikia/app.git","clone_url":"https://github.com/Wikia/app.git","svn_url":"https://github.com/Wikia/app","homepage":"http://dev.wikia.com","size":1496986,"stargazers_count":107,"watchers_count":107,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":85,"mirror_url":null,"open_issues_count":114,"forks":85,"open_issues":114,"watchers":107,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/app/pulls/12103"},"html":{"href":"https://github.com/Wikia/app/pull/12103"},"issue":{"href":"https://api.github.com/repos/Wikia/app/issues/12103"},"comments":{"href":"https://api.github.com/repos/Wikia/app/issues/12103/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/app/pulls/12103/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/app/pulls/12103/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/app/statuses/56141cd27e6dc36a33a625d8fd4550bca2e5c8c0"}}}}
{"actor":{"display_login":"WikiaTech"}}