@@ -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]); |
@@ -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 | } |
@@ -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 |
@@ -34,6 +34,6 @@ |
||
| 34 | 34 | |
| 35 | 35 | public function createClient(): Client |
| 36 | 36 | { |
| 37 | - return new Client(['base_uri' => (string) $_ENV['FORECAST_HOST']]); |
|
| 37 | + return new Client(['base_uri' => (string)$_ENV['FORECAST_HOST']]); |
|
| 38 | 38 | } |
| 39 | 39 | } |
@@ -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]); |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | $res = $this->guzzleClient->request( |
| 29 | 29 | 'GET', |
| 30 | 30 | self::EVENTS_API, |
| 31 | - ['query' => array_merge((array) $queryDto, $this->getToken())], |
|
| 31 | + ['query' => array_merge((array)$queryDto, $this->getToken())], |
|
| 32 | 32 | ); |
| 33 | 33 | |
| 34 | - return json_decode((string) $res->getBody(), null, 512, JSON_THROW_ON_ERROR); |
|
| 34 | + return json_decode((string)$res->getBody(), null, 512, JSON_THROW_ON_ERROR); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | private function getToken(): array |
@@ -25,14 +25,14 @@ |
||
| 25 | 25 | $_ENV['JIRA_TOKEN'], |
| 26 | 26 | $_ENV['JIRA_HOST'], |
| 27 | 27 | $_ENV['JIRA_USER'], |
| 28 | - (int) $_ENV['JIRA_MAX_RESULTS'], |
|
| 28 | + (int)$_ENV['JIRA_MAX_RESULTS'], |
|
| 29 | 29 | $_ENV['JIRA_QUERY'], |
| 30 | 30 | ); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | 33 | public function createJiraClient(): IssueService |
| 34 | 34 | { |
| 35 | - return new IssueService(new ArrayConfiguration((array) $this->createJiraConfigDto())); |
|
| 35 | + return new IssueService(new ArrayConfiguration((array)$this->createJiraConfigDto())); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function createJiraCollector(): JiraCollector |