Passed
Push — master ( 5a4aca...b13ec5 )
by Patrick
03:40 queued 22s
created
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
         $wrapPromise = 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'))))
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $matchPattern = sprintf('(%s-[0-9]{1,})i', $_ENV['GITLAB_PATTERN']);
76 76
         $resultMatch = preg_match($matchPattern, $target_title, $match);
77
-        if (0 === $resultMatch || ! isset($match[0])) {
78
-            throw new \Exception('gitlab needle not found for target_title: '.$target_title);
77
+        if (0 === $resultMatch || !isset($match[0])) {
78
+            throw new \Exception('gitlab needle not found for target_title: ' . $target_title);
79 79
         }
80 80
 
81 81
         return strtoupper($match[0]);
Please login to merge, or discard this patch.