31
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-06-04 06:30:47 +00:00

Codestyle

Signed-off-by: Roland Dalmulder <contact@rolandd.com>
This commit is contained in:
Roland Dalmulder 2020-07-26 20:00:05 +02:00
parent 06750d7e97
commit cf35adf97a
No known key found for this signature in database
GPG Key ID: FD49814C56AE3AF9

View File

@ -348,14 +348,23 @@ class PullsModel extends AbstractModel
$batchSize = 100;
$pullsResponse = Helper::initializeGithub()->getOpenIssues(
$this->getState()->get('github_user'), $this->getState()->get('github_repo'), $page, $batchSize
$this->getState()->get('github_user'),
$this->getState()->get('github_repo'),
$page,
$batchSize
);
$pulls = json_decode($pullsResponse->body);
}
catch (UnexpectedResponse $exception)
{
throw new \RuntimeException(Text::sprintf('COM_PATCHTESTER_ERROR_GITHUB_FETCH', $exception->getMessage()), $exception->getCode(), $exception);
throw new \RuntimeException(
Text::sprintf('COM_PATCHTESTER_ERROR_GITHUB_FETCH',
$exception->getMessage()
),
$exception->getCode(),
$exception
);
}
// If this is page 1, let's check to see if we need to paginate