Test Failed
Pull Request — master (#24)
by Patrick
03:35
created
src/ForecastAutomation/JiraClient/Shared/Plugin/JiraActivityPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function collect(): PromiseInterface
30 30
     {
31 31
         return new Promise(
32
-            function () use (&$wrapPromise) {
32
+            function() use (&$wrapPromise) {
33 33
                 $comments = $this->getFacade()->getComments(date('Y-m-d 00:00'));
34 34
                 $wrapPromise->resolve($this->createActivityDtoCollection($comments));
35 35
             }
Please login to merge, or discard this patch.
src/ForecastAutomation/GitlabClient/Shared/Plugin/GitlabActivityPlugin.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
     public function collect(): PromiseInterface
32 32
     {
33 33
         return new Promise(
34
-            function () use (&$wrapPromise) {
34
+            function() use (&$wrapPromise) {
35 35
                 $wrapPromise->resolve(
36 36
                     $this->mapEventsToActivity(
37 37
                         $this->getFacade()->getEvents(new GitlabQueryDto(date('Y-m-d', strtotime('-1 day'))))
@@ -72,8 +72,8 @@  discard block
 block discarded – undo
72 72
     {
73 73
         $matchPattern = sprintf('(%s-[0-9]{1,})i', $_ENV['GITLAB_PATTERN']);
74 74
         $resultMatch = preg_match($matchPattern, $target_title, $match);
75
-        if (0 === $resultMatch || ! isset($match[0])) {
76
-            throw new \Exception('gitlab needle not found for target_title: '.$target_title);
75
+        if (0 === $resultMatch || !isset($match[0])) {
76
+            throw new \Exception('gitlab needle not found for target_title: ' . $target_title);
77 77
         }
78 78
 
79 79
         return strtoupper($match[0]);
Please login to merge, or discard this patch.
src/ForecastAutomation/MattermostClient/Business/MattermostApi.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -33,19 +33,19 @@  discard block
 block discarded – undo
33 33
     {
34 34
         $this->auth();
35 35
 
36
-        return new Promise(function () use ($channelFilterCollection, &$wrapPromise) {
36
+        return new Promise(function() use ($channelFilterCollection, &$wrapPromise) {
37 37
             $res = $this->guzzleClient->requestAsync(
38 38
                 'GET',
39 39
                 sprintf(self::CHANNEL_API, $this->mattermostConfigDto->teamId),
40 40
                 [
41 41
                     'headers' => [
42
-                        'Authorization' => 'Bearer '.static::$token,
42
+                        'Authorization' => 'Bearer ' . static::$token,
43 43
                         'Content-Type' => 'application/json',
44 44
                     ],
45 45
                 ]
46 46
             )->wait();
47 47
 
48
-            $channelArray = json_decode((string) $res->getBody(), null, JSON_PARTIAL_OUTPUT_ON_ERROR, JSON_THROW_ON_ERROR);
48
+            $channelArray = json_decode((string)$res->getBody(), null, JSON_PARTIAL_OUTPUT_ON_ERROR, JSON_THROW_ON_ERROR);
49 49
             $wrapPromise->resolve($this->applyChannelFilter($channelArray, $channelFilterCollection));
50 50
         });
51 51
     }
@@ -54,20 +54,20 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $this->auth();
56 56
 
57
-        return new Promise(function () use ($postsQueryDto, &$wrapPromise) {
57
+        return new Promise(function() use ($postsQueryDto, &$wrapPromise) {
58 58
             $res = $this->guzzleClient->requestAsync(
59 59
                 'GET',
60 60
                 sprintf(self::POSTS_API, $postsQueryDto->channelId),
61 61
                 [
62
-                    'query' => ['since' => (int) $postsQueryDto->since->format('U') * 1000],
62
+                    'query' => ['since' => (int)$postsQueryDto->since->format('U') * 1000],
63 63
                     'headers' => [
64
-                        'Authorization' => 'Bearer '.static::$token,
64
+                        'Authorization' => 'Bearer ' . static::$token,
65 65
                         'Content-Type' => 'application/json',
66 66
                     ],
67 67
                 ],
68 68
             )->wait();
69 69
 
70
-            $wrapPromise->resolve(json_decode((string) $res->getBody(), true, JSON_PARTIAL_OUTPUT_ON_ERROR, JSON_THROW_ON_ERROR)['posts']);
70
+            $wrapPromise->resolve(json_decode((string)$res->getBody(), true, JSON_PARTIAL_OUTPUT_ON_ERROR, JSON_THROW_ON_ERROR)['posts']);
71 71
         });
72 72
     }
73 73
 
Please login to merge, or discard this patch.