Passed
Push — master ( 37321a...84eda8 )
by Patrick
03:37
created
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.
tests/Architecture/Analyzer/PatternString.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
 
26 26
     public function matches(string $pattern): bool
27 27
     {
28
-        if (! parent::matches($pattern)) {
28
+        if (!parent::matches($pattern)) {
29 29
             return 1 === preg_match($pattern, $this->value);
30 30
         }
31 31
     }
Please login to merge, or discard this patch.
tests/Architecture/Analyzer/FullyQualifiedClassName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     {
64 64
         $validFqcn = '/^[a-zA-Z_\x7f-\xff\\\\][a-zA-Z0-9_\x7f-\xff\\\\]*[a-zA-Z0-9_\x7f-\xff]$/';
65 65
 
66
-        if (! (bool) preg_match($validFqcn, $fqcn)) {
66
+        if (!(bool)preg_match($validFqcn, $fqcn)) {
67 67
             throw new \RuntimeException("{$fqcn} is not a valid namespace definition");
68 68
         }
69 69
 
Please login to merge, or discard this patch.
tests/Architecture/Expression/ForClasses/HaveNameMatchingRegEx.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     public function evaluate(ClassDescription $theClass, Violations $violations): void
36 36
     {
37 37
         $fqcn = FullyQualifiedClassName::fromString($theClass->getFQCN());
38
-        if (! $fqcn->classMatches($this->name)) {
38
+        if (!$fqcn->classMatches($this->name)) {
39 39
             $violation = Violation::create(
40 40
                 $theClass->getFQCN(),
41 41
                 $this->describe($theClass)->toString()
Please login to merge, or discard this patch.
GitlabClient/Shared/Plugin/GitlabActivityPluginTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         $_ENV['GITLAB_PATTERN'] = self::TICKET_PATTERN;
29 29
         $activityDtoCollection = $this->createGitlabActivityPlugin()->collect()->wait();
30
-        static::assertSame(self::TICKET_PATTERN.'-1234', $activityDtoCollection->offsetGet(0)->needle);
30
+        static::assertSame(self::TICKET_PATTERN . '-1234', $activityDtoCollection->offsetGet(0)->needle);
31 31
         static::assertSame('Entwicklungsprozess: TESTNR-1234 (commented on)', $activityDtoCollection->offsetGet(0)->description);
32 32
         static::assertSame('2021-01-01', $activityDtoCollection->offsetGet(0)->created->format('Y-m-d'));
33 33
         static::assertSame(GitlabActivityPlugin::ACTIVITY_DURATION, $activityDtoCollection->offsetGet(0)->duration);
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         ;
42 42
 
43 43
         $testEvent1 = new \stdClass();
44
-        $testEvent1->target_title = self::TICKET_PATTERN.'-1234';
44
+        $testEvent1->target_title = self::TICKET_PATTERN . '-1234';
45 45
         $testEvent1->action_name = GitlabActivityPlugin::ALLOWED_ACTION_NAMES[0];
46 46
         $testEvent1->created_at = '2021-01-01 00:00:00';
47 47
 
Please login to merge, or discard this patch.
MattermostClient/Shared/Plugin/MattermostActivityPlugin.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         return $this->getFacade()
42 42
             ->getChannel($this->channelFilterCollection)
43 43
             ->then(
44
-                function (array $channels) {
44
+                function(array $channels) {
45 45
                     $postPromises = [];
46 46
                     foreach ($channels as $channel) {
47 47
                         $postPromises[] = $this->getFacade()->getPosts(
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             $activityDtoArray[$ticketNr] = new ActivityDto(
85 85
                 $ticketNr,
86 86
                 sprintf('%s: %s', self::POST_SUFFIX, $ticketNr),
87
-                new \DateTime(date('d-m-Y', (int) ($post['create_at'] / 1000))),
87
+                new \DateTime(date('d-m-Y', (int)($post['create_at'] / 1000))),
88 88
                 $duration
89 89
             );
90 90
         }
@@ -96,8 +96,8 @@  discard block
 block discarded – undo
96 96
     {
97 97
         $matchPattern = sprintf('(%s-[0-9]{1,})i', $_ENV['GITLAB_PATTERN']);
98 98
         $resultMatch = preg_match($matchPattern, $target_title, $match);
99
-        if (0 === $resultMatch || ! isset($match[0])) {
100
-            throw new \Exception('gitlab needle not found for target_title: '.$target_title);
99
+        if (0 === $resultMatch || !isset($match[0])) {
100
+            throw new \Exception('gitlab needle not found for target_title: ' . $target_title);
101 101
         }
102 102
 
103 103
         return strtoupper($match[0]);
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     {
108 108
         $matchPattern = sprintf('(%s-[0-9]{1,})i', $_ENV['MATTERMOST_PATTERN']);
109 109
         $resultMatch = preg_match($matchPattern, $target_title, $match);
110
-        if (0 === $resultMatch || ! isset($match[0])) {
110
+        if (0 === $resultMatch || !isset($match[0])) {
111 111
             return false;
112 112
         }
113 113
 
Please login to merge, or discard this patch.
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
         $wrapPromise = 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.
tests/ForecastAutomationTests/GuzzleClient/Shared/GuzzleFactoryHelper.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
     public function createResolvedPromise($data): PromiseInterface
23 23
     {
24
-        $resolvedPromise = new Promise(function () use (&$resolvedPromise, $data) {
24
+        $resolvedPromise = new Promise(function() use (&$resolvedPromise, $data) {
25 25
             $resolvedPromise->resolve($data);
26 26
         });
27 27
 
Please login to merge, or discard this patch.
MattermostClient/Shared/Plugin/MattermostActivityPluginTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,9 +35,9 @@  discard block
 block discarded – undo
35 35
     {
36 36
         $_ENV['MATTERMOST_PATTERN'] = self::TICKET_PATTERN;
37 37
         $activityDtoCollection = $this->createMattermostActivityPlugin()->collect()->wait();
38
-        static::assertSame(self::TICKET_PATTERN.'-1234', $activityDtoCollection->offsetGet(0)->needle);
38
+        static::assertSame(self::TICKET_PATTERN . '-1234', $activityDtoCollection->offsetGet(0)->needle);
39 39
         static::assertSame(
40
-            MattermostActivityPlugin::POST_SUFFIX.': TESTNR-1234',
40
+            MattermostActivityPlugin::POST_SUFFIX . ': TESTNR-1234',
41 41
             $activityDtoCollection->offsetGet(0)->description
42 42
         );
43 43
         static::assertSame(
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 $this->guzzleFactoryHelper->createResolvedPromise(
69 69
                     [
70 70
                         [
71
-                            'message' => 'testmessage '.self::TICKET_PATTERN.'-1234',
71
+                            'message' => 'testmessage ' . self::TICKET_PATTERN . '-1234',
72 72
                             'create_at' => (new \DateTime())->format('U') * 1000,
73 73
                         ],
74 74
                     ]
Please login to merge, or discard this patch.