Passed
Push — master ( 5afdc3...5e7204 )
by Patrick
03:08
created
src/ForecastAutomation/JiraClient/Business/JiraCollector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
             $this->jiraConfigDto->jiraMaxResults
28 28
         );
29 29
         $ticketList = array_map(
30
-            static fn (Issue $issue) => $issue->key,
30
+            static fn(Issue $issue) => $issue->key,
31 31
             $activities->getIssues()
32 32
         );
33 33
 
Please login to merge, or discard this patch.
src/ForecastAutomation/GitlabClient/Shared/Plugin/GitlabActivityPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $matchPattern = sprintf('(%s-[0-9]{3,})i', $_ENV['GITLAB_PATTERN']);
56 56
         $resultMatch = preg_match($matchPattern, $target_title, $match);
57 57
         if (0 === $resultMatch || !isset($match[0])) {
58
-            throw new \Exception('gitlab needle not found for target_title: '.$target_title);
58
+            throw new \Exception('gitlab needle not found for target_title: ' . $target_title);
59 59
         }
60 60
 
61 61
         return strtoupper($match[0]);
Please login to merge, or discard this patch.
src/ForecastAutomation/GitlabClient/GitlabClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function createGitlabApi(): GitlabApi
25 25
     {
26 26
         return new GitlabApi(
27
-            new Client(['base_uri' => (string) $_ENV['GITLAB_URL']]),
27
+            new Client(['base_uri' => (string)$_ENV['GITLAB_URL']]),
28 28
             $this->createGitlabConfigDto(),
29 29
         );
30 30
     }
Please login to merge, or discard this patch.
src/ForecastAutomation/MattermostClient/MattermostClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function createMattermostApi(): MattermostApi
27 27
     {
28 28
         return new MattermostApi(
29
-            new Client(['base_uri' => (string) $_ENV['MATTERMOST_HOST']]),
29
+            new Client(['base_uri' => (string)$_ENV['MATTERMOST_HOST']]),
30 30
             $this->createMattermostConfigDto(),
31 31
         );
32 32
     }
Please login to merge, or discard this patch.
src/ForecastAutomation/Kernel/Locator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
     {
22 22
         // bla, bla testen
23 23
         echo "Rufe die Objektmethode '{$name}' "
24
-            .implode(', ', $arguments)."\n";
24
+            .implode(', ', $arguments) . "\n";
25 25
     }
26 26
 
27 27
     public function getFacade(): object
Please login to merge, or discard this patch.
src/ForecastAutomation/ForecastClient/ForecastClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,6 +34,6 @@
 block discarded – undo
34 34
 
35 35
     public function createClient(): Client
36 36
     {
37
-        return new Client(['base_uri' => (string) $_ENV['FORECAST_HOST']]);
37
+        return new Client(['base_uri' => (string)$_ENV['FORECAST_HOST']]);
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
MattermostClient/Shared/Plugin/MattermostActivityPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $matchPattern = sprintf('(%s-[0-9]{3,})i', $_ENV['GITLAB_PATTERN']);
56 56
         $resultMatch = preg_match($matchPattern, $target_title, $match);
57 57
         if (0 === $resultMatch || !isset($match[0])) {
58
-            throw new \Exception('gitlab needle not found for target_title: '.$target_title);
58
+            throw new \Exception('gitlab needle not found for target_title: ' . $target_title);
59 59
         }
60 60
 
61 61
         return strtoupper($match[0]);
Please login to merge, or discard this patch.
src/ForecastAutomation/GitlabClient/Business/GitlabApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
         $res = $this->guzzleClient->request(
29 29
             'GET',
30 30
             self::EVENTS_API,
31
-            ['query' => array_merge((array) $queryDto, $this->getToken())],
31
+            ['query' => array_merge((array)$queryDto, $this->getToken())],
32 32
         );
33 33
 
34
-        return json_decode((string) $res->getBody(), null, 512, JSON_THROW_ON_ERROR);
34
+        return json_decode((string)$res->getBody(), null, 512, JSON_THROW_ON_ERROR);
35 35
     }
36 36
 
37 37
     private function getToken(): array
Please login to merge, or discard this patch.
src/ForecastAutomation/JiraClient/JiraClientFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,14 +25,14 @@
 block discarded – undo
25 25
             $_ENV['JIRA_TOKEN'],
26 26
             $_ENV['JIRA_HOST'],
27 27
             $_ENV['JIRA_USER'],
28
-            (int) $_ENV['JIRA_MAX_RESULTS'],
28
+            (int)$_ENV['JIRA_MAX_RESULTS'],
29 29
             $_ENV['JIRA_QUERY'],
30 30
         );
31 31
     }
32 32
 
33 33
     public function createJiraClient(): IssueService
34 34
     {
35
-        return new IssueService(new ArrayConfiguration((array) $this->createJiraConfigDto()));
35
+        return new IssueService(new ArrayConfiguration((array)$this->createJiraConfigDto()));
36 36
     }
37 37
 
38 38
     public function createJiraCollector(): JiraCollector
Please login to merge, or discard this patch.