diff --git a/src/Api/Issue/GithubIssueApi.php b/src/Api/Issue/GithubIssueApi.php index 3247e382..7541768a 100644 --- a/src/Api/Issue/GithubIssueApi.php +++ b/src/Api/Issue/GithubIssueApi.php @@ -38,7 +38,7 @@ public function open(Repository $repository, string $title, string $body, array ]; $issueNumber = null; - $existingIssues = $this->searchApi->issues(sprintf('repo:%s "%s" is:open author:%s', $repository->getFullName(), $title, $this->botUsername), 'updated', 'desc', ['per_page'=>100]); + $existingIssues = $this->searchApi->issues(sprintf('repo:%s "%s" is:open author:%s', $repository->getFullName(), $title, $this->botUsername), 'updated', 'desc', ['per_page' => 100]); foreach ($existingIssues['items'] ?? [] as $issue) { $issueNumber = $issue['number']; } @@ -109,7 +109,7 @@ public function commentOnIssue(Repository $repository, $issueNumber, string $com public function findStaleIssues(Repository $repository, \DateTimeImmutable $noUpdateAfter): array { - $issues = $this->searchApi->issues(sprintf('repo:%s is:issue -label:"Keep open" is:open updated:<%s', $repository->getFullName(), $noUpdateAfter->format('Y-m-d')), 'updated', 'desc', ['per_page'=>100]); + $issues = $this->searchApi->issues(sprintf('repo:%s is:issue -label:"Keep open" is:open updated:<%s', $repository->getFullName(), $noUpdateAfter->format('Y-m-d')), 'updated', 'desc', ['per_page' => 100]); return $issues['items'] ?? []; } diff --git a/src/Api/PullRequest/GithubPullRequestApi.php b/src/Api/PullRequest/GithubPullRequestApi.php index 195e41a3..c33e8b8f 100644 --- a/src/Api/PullRequest/GithubPullRequestApi.php +++ b/src/Api/PullRequest/GithubPullRequestApi.php @@ -49,7 +49,7 @@ public function findReviewer(Repository $repository, $number, string $type) public function getAuthorCount(Repository $repository, string $author): int { - $result = $this->search->issues(sprintf('is:pr repo:%s author:%s', $repository->getFullName(), $author), 'updated', 'desc', ['per_page'=>100]); + $result = $this->search->issues(sprintf('is:pr repo:%s author:%s', $repository->getFullName(), $author), 'updated', 'desc', ['per_page' => 100]); return $result['total_count']; }