Test Failed
Push — master ( 5c2822...21a81a )
by
unknown
03:13
created
src/ForecastAutomation/JiraClient/JiraClientFactory.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
 
28 28
     public function createJiraClient(): IssueService
29 29
     {
30
-        return new IssueService(new ArrayConfiguration((array) $this->createJiraConfigDto()));
30
+        return new IssueService(new ArrayConfiguration((array)$this->createJiraConfigDto()));
31 31
     }
32 32
 
33 33
     public function createJiraCollector(): JiraCollector
Please login to merge, or discard this patch.
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/Business/GitlabApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
         $res = $this->guzzleClient->request(
24 24
             'GET',
25 25
             self::EVENTS_API,
26
-            ['query' => array_merge((array) $queryDto, $this->getToken())],
26
+            ['query' => array_merge((array)$queryDto, $this->getToken())],
27 27
         );
28 28
 
29 29
         return json_decode($res->getBody(), null, 512, JSON_THROW_ON_ERROR);
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.
MattermostClient/Shared/Plugin/MattermostActivityPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
         $matchPattern = sprintf('(%s-[0-9]{3,})i', $_ENV['GITLAB_PATTERN']);
79 79
         $resultMatch = preg_match($matchPattern, $target_title, $match);
80 80
         if (0 === $resultMatch || !isset($match[0])) {
81
-            throw new \Exception('gitlab needle not found for target_title: '.$target_title);
81
+            throw new \Exception('gitlab needle not found for target_title: ' . $target_title);
82 82
         }
83 83
 
84 84
         return strtoupper($match[0]);
Please login to merge, or discard this patch.
src/ForecastAutomation/MattermostClient/Business/MattermostApi.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
             sprintf(self::CHANNEL_API, $this->mattermostConfigDto->teamId),
32 32
             [
33 33
                 'headers' => [
34
-                    'Authorization' => 'Bearer '.static::$token,
34
+                    'Authorization' => 'Bearer ' . static::$token,
35 35
                     'Content-Type' => 'application/json',
36 36
                 ],
37 37
             ]
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             [
51 51
                 'query' => ['since' => $postsQueryDto->since->format('U') * 1000],
52 52
                 'headers' => [
53
-                    'Authorization' => 'Bearer '.static::$token,
53
+                    'Authorization' => 'Bearer ' . static::$token,
54 54
                     'Content-Type' => 'application/json',
55 55
                 ],
56 56
             ],
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         foreach ($channelArray as $channel) {
95 95
             if ($channel->total_msg_count > 0
96 96
                 && $this->isDirectChannel($channel)
97
-                && $channel->last_post_at >= ((int) $channelFilterQueryDto->lastPostAt->format('U') * 1000)) {
97
+                && $channel->last_post_at >= ((int)$channelFilterQueryDto->lastPostAt->format('U') * 1000)) {
98 98
                 $filteredChannel[] = $channel;
99 99
             }
100 100
         }
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.