Test Failed
Pull Request — master (#38)
by Patrick
03:48
created
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/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.
src/ForecastAutomation/ForecastClient/ForecastClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 
44 44
     public function createClient(): Client
45 45
     {
46
-        return new Client(['base_uri' => (string) $_ENV['FORECAST_HOST']]);
46
+        return new Client(['base_uri' => (string)$_ENV['FORECAST_HOST']]);
47 47
     }
48 48
 
49 49
     public function getLogFacade(): LogFacade
Please login to merge, or discard this patch.
src/ForecastAutomation/Cache/CacheFactory.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@
 block discarded – undo
16 16
 {
17 17
     public function createSimpleCache(): Cache
18 18
     {
19
-        if (! file_exists('/tmp/simple-cache')
20
-            && ! mkdir('/tmp/simple-cache', 0777, true)
21
-            && ! is_dir(
19
+        if (!file_exists('/tmp/simple-cache')
20
+            && !mkdir('/tmp/simple-cache', 0777, true)
21
+            && !is_dir(
22 22
                 '/tmp/simple-cache'
23 23
             )) {
24 24
             throw new \RuntimeException(sprintf('Directory "%s" was not created', '/tmp/simple-cache'));
Please login to merge, or discard this patch.