Test Setup Failed
Pull Request — master (#28)
by Patrick
03:14
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/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/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.
src/ForecastAutomation/GitlabClient/GitlabClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,6 +36,6 @@
 block discarded – undo
36 36
 
37 37
     public function createClient(): Client
38 38
     {
39
-        return new Client(['base_uri' => (string) $_ENV['GITLAB_URL']]);
39
+        return new Client(['base_uri' => (string)$_ENV['GITLAB_URL']]);
40 40
     }
41 41
 }
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
@@ -38,6 +38,6 @@
 block discarded – undo
38 38
 
39 39
     public function createClient(): Client
40 40
     {
41
-        return new Client(['base_uri' => (string) $_ENV['MATTERMOST_HOST']]);
41
+        return new Client(['base_uri' => (string)$_ENV['MATTERMOST_HOST']]);
42 42
     }
43 43
 }
Please login to merge, or discard this patch.
MattermostClient/Shared/Plugin/Filter/HasMessageChannelFilter.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
         $filteredChannel = [];
25 25
         foreach ($channelCollection as $channel) {
26 26
             if ($channel->total_msg_count > 0
27
-                && $channel->last_post_at >= ((int) $this->lastPostDateTime->format('U') * 1000)) {
27
+                && $channel->last_post_at >= ((int)$this->lastPostDateTime->format('U') * 1000)) {
28 28
                 $filteredChannel[] = $channel;
29 29
             }
30 30
         }
Please login to merge, or discard this patch.
ForecastAutomationTests/MattermostClient/MattermostClientFacadeTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function testCanGetChannel(): void
38 38
     {
39 39
         $channels = $this->createMattermostClientFacade(
40
-            $this->createChannelResponse((int) ((new \DateTime(self::LAST_POST))->format('U')) * 1000)
40
+            $this->createChannelResponse((int)((new \DateTime(self::LAST_POST))->format('U')) * 1000)
41 41
         )->getChannel(
42 42
             [
43 43
                 new HasMessageChannelFilter(new \DateTime(self::CHANNEL_FILTER_LAST_POSTS)),
@@ -103,6 +103,6 @@  discard block
 block discarded – undo
103 103
 
104 104
     private function createChannelResponse(int $lastPostAt): string
105 105
     {
106
-        return '[{"id":"test-id-1234","total_msg_count":'.self::MSG_COUNT.',"type":"'.self::CHANNEL_TYPE.'","last_post_at":'.$lastPostAt.'}]';
106
+        return '[{"id":"test-id-1234","total_msg_count":' . self::MSG_COUNT . ',"type":"' . self::CHANNEL_TYPE . '","last_post_at":' . $lastPostAt . '}]';
107 107
     }
108 108
 }
Please login to merge, or discard this patch.
phparkitect.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 use Arkitect\Expression\ForClasses\ResideInOneOfTheseNamespaces;
8 8
 use Arkitect\Rules\Rule;
9 9
 
10
-return static function (Config $config): void {
11
-    $moduleRootClassset = FlatClassSet::fromDir(__DIR__.'/src/ForecastAutomation')
10
+return static function(Config $config): void {
11
+    $moduleRootClassset = FlatClassSet::fromDir(__DIR__ . '/src/ForecastAutomation')
12 12
         ->excludePath('Kernel');
13 13
 
14 14
     $moduleRootRule = Rule::allClasses()
Please login to merge, or discard this patch.
src/ForecastAutomation/Activity/Shared/Dto/ActivityDtoCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     public function merge(self $activityDtoCollection): self
82 82
     {
83 83
         foreach ($activityDtoCollection as $activityDto) {
84
-            if (! $this->sumDurationIfExist($activityDto)) {
84
+            if (!$this->sumDurationIfExist($activityDto)) {
85 85
                 $this->activityDtos[] = $activityDto;
86 86
             }
87 87
         }
Please login to merge, or discard this patch.