Passed
Push — master ( 1f78dc...89a587 )
by Patrick
03:55 queued 14s
created
ForecastAutomationTests/MattermostClient/MattermostClientFacadeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /*
6 6
  * This file is part of forecast.it.fill project.
Please login to merge, or discard this patch.
MattermostClient/Shared/Plugin/Filter/IsDirectChannelFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         foreach ($channelCollection as $channel)
26 26
         {
27 27
             if ('D' === $channel->type) {
28
-                $filteredChannel[]=$channel;
28
+                $filteredChannel[] = $channel;
29 29
             }
30 30
         }
31 31
         return $filteredChannel;
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
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /*
6 6
  * This file is part of forecast.it.fill project.
Please login to merge, or discard this patch.
src/ForecastAutomation/MattermostClient/Business/MattermostApi.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,12 +36,12 @@  discard block
 block discarded – undo
36 36
             sprintf(self::CHANNEL_API, $this->mattermostConfigDto->teamId),
37 37
             [
38 38
                 'headers' => [
39
-                    'Authorization' => 'Bearer '.static::$token,
39
+                    'Authorization' => 'Bearer ' . static::$token,
40 40
                     'Content-Type' => 'application/json',
41 41
                 ],
42 42
             ]
43 43
         );
44
-        $channelArray = json_decode((string) $res->getBody(), null, 512, JSON_THROW_ON_ERROR);
44
+        $channelArray = json_decode((string)$res->getBody(), null, 512, JSON_THROW_ON_ERROR);
45 45
 
46 46
         return $this->applyChannelFilter($channelArray, $channelFilterCollection);
47 47
     }
@@ -53,15 +53,15 @@  discard block
 block discarded – undo
53 53
             'GET',
54 54
             sprintf(self::POSTS_API, $postsQueryDto->channelId),
55 55
             [
56
-                'query' => ['since' => (int) $postsQueryDto->since->format('U') * 1000],
56
+                'query' => ['since' => (int)$postsQueryDto->since->format('U') * 1000],
57 57
                 'headers' => [
58
-                    'Authorization' => 'Bearer '.static::$token,
58
+                    'Authorization' => 'Bearer ' . static::$token,
59 59
                     'Content-Type' => 'application/json',
60 60
                 ],
61 61
             ],
62 62
         );
63 63
 
64
-        return json_decode((string) $res->getBody(), true, 512, JSON_THROW_ON_ERROR)['posts'];
64
+        return json_decode((string)$res->getBody(), true, 512, JSON_THROW_ON_ERROR)['posts'];
65 65
     }
66 66
 
67 67
     private function auth(): string
Please login to merge, or discard this patch.