@@ -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 | |
@@ -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 |
@@ -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 |
@@ -36,6 +36,6 @@ |
||
| 36 | 36 | |
| 37 | 37 | public function createClient(): Client |
| 38 | 38 | { |
| 39 | - return new Client(['base_uri' => (string) $_ENV['GITLAB_URL']]); |
|
| 39 | + return new Client(['base_uri' => (string)$_ENV['GITLAB_URL']]); |
|
| 40 | 40 | } |
| 41 | 41 | } |
@@ -38,6 +38,6 @@ |
||
| 38 | 38 | |
| 39 | 39 | public function createClient(): Client |
| 40 | 40 | { |
| 41 | - return new Client(['base_uri' => (string) $_ENV['MATTERMOST_HOST']]); |
|
| 41 | + return new Client(['base_uri' => (string)$_ENV['MATTERMOST_HOST']]); |
|
| 42 | 42 | } |
| 43 | 43 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | $filteredChannel = []; |
| 25 | 25 | foreach ($channelCollection as $channel) { |
| 26 | 26 | if ($channel->total_msg_count > 0 |
| 27 | - && $channel->last_post_at >= ((int) $this->lastPostDateTime->format('U') * 1000)) { |
|
| 27 | + && $channel->last_post_at >= ((int)$this->lastPostDateTime->format('U') * 1000)) { |
|
| 28 | 28 | $filteredChannel[] = $channel; |
| 29 | 29 | } |
| 30 | 30 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | public function testCanGetChannel(): void |
| 38 | 38 | { |
| 39 | 39 | $channels = $this->createMattermostClientFacade( |
| 40 | - $this->createChannelResponse((int) ((new \DateTime(self::LAST_POST))->format('U')) * 1000) |
|
| 40 | + $this->createChannelResponse((int)((new \DateTime(self::LAST_POST))->format('U')) * 1000) |
|
| 41 | 41 | )->getChannel( |
| 42 | 42 | [ |
| 43 | 43 | new HasMessageChannelFilter(new \DateTime(self::CHANNEL_FILTER_LAST_POSTS)), |
@@ -103,6 +103,6 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | private function createChannelResponse(int $lastPostAt): string |
| 105 | 105 | { |
| 106 | - return '[{"id":"test-id-1234","total_msg_count":'.self::MSG_COUNT.',"type":"'.self::CHANNEL_TYPE.'","last_post_at":'.$lastPostAt.'}]'; |
|
| 106 | + return '[{"id":"test-id-1234","total_msg_count":' . self::MSG_COUNT . ',"type":"' . self::CHANNEL_TYPE . '","last_post_at":' . $lastPostAt . '}]'; |
|
| 107 | 107 | } |
| 108 | 108 | } |
@@ -7,8 +7,8 @@ |
||
| 7 | 7 | use Arkitect\Expression\ForClasses\ResideInOneOfTheseNamespaces; |
| 8 | 8 | use Arkitect\Rules\Rule; |
| 9 | 9 | |
| 10 | -return static function (Config $config): void { |
|
| 11 | - $moduleRootClassset = FlatClassSet::fromDir(__DIR__.'/src/ForecastAutomation') |
|
| 10 | +return static function(Config $config): void { |
|
| 11 | + $moduleRootClassset = FlatClassSet::fromDir(__DIR__ . '/src/ForecastAutomation') |
|
| 12 | 12 | ->excludePath('Kernel'); |
| 13 | 13 | |
| 14 | 14 | $moduleRootRule = Rule::allClasses() |