Passed
Pull Request — master (#1)
by Michael
02:10
created
classes/ServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     protected $serviceClasses = [];
12 12
 
13 13
     public static function getInstance($forcereload = false) {
14
-        if(null === self::$instance || $forcereload) {
14
+        if (null === self::$instance || $forcereload) {
15 15
             self::$instance = new self();
16 16
         }
17 17
         return self::$instance;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $serviceDir = __DIR__ . '/../services';
50 50
         $filenames = scandir($serviceDir, SCANDIR_SORT_ASCENDING);
51 51
         foreach ($filenames as $filename) {
52
-            if ($filename === '.' || $filename === '..' ) {
52
+            if ($filename === '.' || $filename === '..') {
53 53
                 continue;
54 54
             }
55 55
             list($service, $servicePostfix) = explode('.', $filename, 2);
Please login to merge, or discard this patch.
services/Jira.service.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
     {
211 211
         $jqlQuery = "project=$projectKey";
212 212
 //        $jqlQuery = urlencode("project=$projectKey ORDER BY updated DESC");
213
-        $endpoint = '/rest/api/2/search?jql=' . $jqlQuery. '&maxResults=50&startAt=' . $startat;
213
+        $endpoint = '/rest/api/2/search?jql=' . $jqlQuery . '&maxResults=50&startAt=' . $startat;
214 214
         $result = $this->makeJiraRequest($endpoint, [], 'GET');
215 215
 
216 216
         if (empty($result['issues'])) {
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
         list($projectKey, $issueId) = explode('-', $data['issue']['key']);
425 425
 
426 426
         if (!in_array($projectKey, $projects)) {
427
-            return new RequestResult(202,'Project ' . $projectKey . ' is not handled by this wiki.');
427
+            return new RequestResult(202, 'Project ' . $projectKey . ' is not handled by this wiki.');
428 428
         }
429 429
 
430 430
         return true;
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
         $data = json_decode($webhookBody, true);
443 443
         $issueData = $data['issue'];
444 444
         list($projectKey, $issueId) = explode('-', $issueData['key']);
445
-        $issue =Issue::getInstance('jira', $projectKey, $issueId, false);
445
+        $issue = Issue::getInstance('jira', $projectKey, $issueId, false);
446 446
         $this->setIssueData($issue, $issueData);
447 447
         $issue->saveToDB();
448 448
 
Please login to merge, or discard this patch.