Code style fixes.

This commit is contained in:
Dmitry Khomutov 2017-11-09 20:51:07 +07:00
commit cd6bfa5942
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
5 changed files with 69 additions and 52 deletions

View file

@ -722,7 +722,7 @@ class WebhookController extends Controller
/**
* Fetch a project and check its type.
*
* @param int|string $projectId id or title
* @param int|string $projectId id or title of project
* @param array|string $expectedType
*
* @return Project
@ -736,7 +736,7 @@ class WebhookController extends Controller
}
if (is_numeric($projectId)) {
$project = $this->projectStore->getById($projectId);
$project = $this->projectStore->getById((integer)$projectId);
} else {
$projects = $this->projectStore->getByTitle($projectId, 2);
if ($projects['count'] < 1) {