@@ -27,7 +27,7 @@ |
||
| 27 | 27 | |
| 28 | 28 | public function createJiraClient(): IssueService |
| 29 | 29 | { |
| 30 | - return new IssueService(new ArrayConfiguration((array) $this->createJiraConfigDto())); |
|
| 30 | + return new IssueService(new ArrayConfiguration((array)$this->createJiraConfigDto())); |
|
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function createJiraCollector(): JiraCollector |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $this->jiraConfigDto->jiraMaxResults |
| 28 | 28 | ); |
| 29 | 29 | $ticketList = array_map( |
| 30 | - static fn (Issue $issue) => $issue->key, |
|
| 30 | + static fn(Issue $issue) => $issue->key, |
|
| 31 | 31 | $activities->getIssues() |
| 32 | 32 | ); |
| 33 | 33 | |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | $matchPattern = sprintf('(%s-[0-9]{3,})i', $_ENV['GITLAB_PATTERN']); |
| 56 | 56 | $resultMatch = preg_match($matchPattern, $target_title, $match); |
| 57 | 57 | if (0 === $resultMatch || !isset($match[0])) { |
| 58 | - throw new \Exception('gitlab needle not found for target_title: '.$target_title); |
|
| 58 | + throw new \Exception('gitlab needle not found for target_title: ' . $target_title); |
|
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | return strtoupper($match[0]); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $res = $this->guzzleClient->request( |
| 24 | 24 | 'GET', |
| 25 | 25 | self::EVENTS_API, |
| 26 | - ['query' => array_merge((array) $queryDto, $this->getToken())], |
|
| 26 | + ['query' => array_merge((array)$queryDto, $this->getToken())], |
|
| 27 | 27 | ); |
| 28 | 28 | |
| 29 | 29 | return json_decode($res->getBody(), null, 512, JSON_THROW_ON_ERROR); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | public function createGitlabApi(): GitlabApi |
| 25 | 25 | { |
| 26 | 26 | return new GitlabApi( |
| 27 | - new Client(['base_uri' => (string) $_ENV['GITLAB_URL']]), |
|
| 27 | + new Client(['base_uri' => (string)$_ENV['GITLAB_URL']]), |
|
| 28 | 28 | $this->createGitlabConfigDto(), |
| 29 | 29 | ); |
| 30 | 30 | } |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | public function createMattermostApi(): MattermostApi |
| 27 | 27 | { |
| 28 | 28 | return new MattermostApi( |
| 29 | - new Client(['base_uri' => (string) $_ENV['MATTERMOST_HOST']]), |
|
| 29 | + new Client(['base_uri' => (string)$_ENV['MATTERMOST_HOST']]), |
|
| 30 | 30 | $this->createMattermostConfigDto(), |
| 31 | 31 | ); |
| 32 | 32 | } |
@@ -78,7 +78,7 @@ |
||
| 78 | 78 | $matchPattern = sprintf('(%s-[0-9]{3,})i', $_ENV['GITLAB_PATTERN']); |
| 79 | 79 | $resultMatch = preg_match($matchPattern, $target_title, $match); |
| 80 | 80 | if (0 === $resultMatch || !isset($match[0])) { |
| 81 | - throw new \Exception('gitlab needle not found for target_title: '.$target_title); |
|
| 81 | + throw new \Exception('gitlab needle not found for target_title: ' . $target_title); |
|
| 82 | 82 | } |
| 83 | 83 | |
| 84 | 84 | return strtoupper($match[0]); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | sprintf(self::CHANNEL_API, $this->mattermostConfigDto->teamId), |
| 32 | 32 | [ |
| 33 | 33 | 'headers' => [ |
| 34 | - 'Authorization' => 'Bearer '.static::$token, |
|
| 34 | + 'Authorization' => 'Bearer ' . static::$token, |
|
| 35 | 35 | 'Content-Type' => 'application/json', |
| 36 | 36 | ], |
| 37 | 37 | ] |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | [ |
| 51 | 51 | 'query' => ['since' => $postsQueryDto->since->format('U') * 1000], |
| 52 | 52 | 'headers' => [ |
| 53 | - 'Authorization' => 'Bearer '.static::$token, |
|
| 53 | + 'Authorization' => 'Bearer ' . static::$token, |
|
| 54 | 54 | 'Content-Type' => 'application/json', |
| 55 | 55 | ], |
| 56 | 56 | ], |
@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | foreach ($channelArray as $channel) { |
| 95 | 95 | if ($channel->total_msg_count > 0 |
| 96 | 96 | && $this->isDirectChannel($channel) |
| 97 | - && $channel->last_post_at >= ((int) $channelFilterQueryDto->lastPostAt->format('U') * 1000)) { |
|
| 97 | + && $channel->last_post_at >= ((int)$channelFilterQueryDto->lastPostAt->format('U') * 1000)) { |
|
| 98 | 98 | $filteredChannel[] = $channel; |
| 99 | 99 | } |
| 100 | 100 | } |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | { |
| 22 | 22 | // bla, bla testen |
| 23 | 23 | echo "Rufe die Objektmethode '{$name}' " |
| 24 | - .implode(', ', $arguments)."\n"; |
|
| 24 | + .implode(', ', $arguments) . "\n"; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | public function getFacade(): object |