@@ -31,7 +31,7 @@ discard block |
||
| 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 |
||
| 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]); |