Skip to content

Commit

Permalink
Merge pull request #206 from lesstif/analysis-q1GWMw
Browse files Browse the repository at this point in the history
Apply fixes from StyleCI
  • Loading branch information
lesstif authored Sep 20, 2018
2 parents 3d316e8 + 5ca2ae6 commit e2c2f63
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/Project/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
11 changes: 6 additions & 5 deletions src/Project/ProjectService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Version/VersionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e2c2f63

Please sign in to comment.