From 5ca2ae6090441f7fc5a4f060ba4e4c19288fbd67 Mon Sep 17 00:00:00 2001 From: KwangSeob Jeong Date: Thu, 20 Sep 2018 12:43:07 +0000 Subject: [PATCH] Apply fixes from StyleCI [ci skip] [skip ci] --- src/Project/Project.php | 5 +++-- src/Project/ProjectService.php | 11 ++++++----- src/Version/VersionService.php | 2 +- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/Project/Project.php b/src/Project/Project.php index fbb5383f..e2ec769f 100644 --- a/src/Project/Project.php +++ b/src/Project/Project.php @@ -305,12 +305,13 @@ public function setCategoryId($categoryId) /** * @param null|string $assigneeType value available for "PROJECT_LEAD" and "UNASSIGNED". * - * @return Project * @throws JiraException + * + * @return Project */ public function setAssigneeType($assigneeType) { - if (!in_array($assigneeType, ['PROJECT_LEAD', 'UNASSIGNED', ])) { + if (!in_array($assigneeType, ['PROJECT_LEAD', 'UNASSIGNED'])) { throw new JiraException('invalid assigneeType:'.$assigneeType); } diff --git a/src/Project/ProjectService.php b/src/Project/ProjectService.php index 8bbadfb1..157d4959 100644 --- a/src/Project/ProjectService.php +++ b/src/Project/ProjectService.php @@ -273,10 +273,11 @@ public function createProject($project) * Values available for the assigneeType field are: "PROJECT_LEAD" and "UNASSIGNED". * * @param Project $project - * @package string $projectIdOrKey - * @return Project project + * * @throws JiraException * @throws \JsonMapper_Exception + * + * @return Project project */ public function updateProject($project, $projectIdOrKey) { @@ -292,16 +293,16 @@ public function updateProject($project, $projectIdOrKey) } /** - * * @param string $projectIdOrKey + * + * @throws JiraException + * * @return int response status * * STATUS 401 Returned if the user is not logged in. * STATUS 204 - application/json Returned if the project is successfully deleted. * STATUS 403 - Returned if the currently authenticated user does not have permission to delete the project. * STATUS 404 - Returned if the project does not exist. - * - * @throws JiraException */ public function deleteProject($projectIdOrKey) { diff --git a/src/Version/VersionService.php b/src/Version/VersionService.php index ac478547..da9efdbc 100644 --- a/src/Version/VersionService.php +++ b/src/Version/VersionService.php @@ -3,8 +3,8 @@ namespace JiraRestApi\Version; use JiraRestApi\Issue\Version; -use JiraRestApi\Issue\VersionUnresolvedCount; use JiraRestApi\Issue\VersionIssueCounts; +use JiraRestApi\Issue\VersionUnresolvedCount; use JiraRestApi\JiraException; use JiraRestApi\Project\ProjectService;