Skip to content

Commit e2c2f63

Browse files
authored
Merge pull request #206 from lesstif/analysis-q1GWMw
Apply fixes from StyleCI
2 parents 3d316e8 + 5ca2ae6 commit e2c2f63

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/Project/Project.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,13 @@ public function setCategoryId($categoryId)
305305
/**
306306
* @param null|string $assigneeType value available for "PROJECT_LEAD" and "UNASSIGNED".
307307
*
308-
* @return Project
309308
* @throws JiraException
309+
*
310+
* @return Project
310311
*/
311312
public function setAssigneeType($assigneeType)
312313
{
313-
if (!in_array($assigneeType, ['PROJECT_LEAD', 'UNASSIGNED', ])) {
314+
if (!in_array($assigneeType, ['PROJECT_LEAD', 'UNASSIGNED'])) {
314315
throw new JiraException('invalid assigneeType:'.$assigneeType);
315316
}
316317

src/Project/ProjectService.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,11 @@ public function createProject($project)
273273
* Values available for the assigneeType field are: "PROJECT_LEAD" and "UNASSIGNED".
274274
*
275275
* @param Project $project
276-
* @package string $projectIdOrKey
277-
* @return Project project
276+
*
278277
* @throws JiraException
279278
* @throws \JsonMapper_Exception
279+
*
280+
* @return Project project
280281
*/
281282
public function updateProject($project, $projectIdOrKey)
282283
{
@@ -292,16 +293,16 @@ public function updateProject($project, $projectIdOrKey)
292293
}
293294

294295
/**
295-
*
296296
* @param string $projectIdOrKey
297+
*
298+
* @throws JiraException
299+
*
297300
* @return int response status
298301
*
299302
* STATUS 401 Returned if the user is not logged in.
300303
* STATUS 204 - application/json Returned if the project is successfully deleted.
301304
* STATUS 403 - Returned if the currently authenticated user does not have permission to delete the project.
302305
* STATUS 404 - Returned if the project does not exist.
303-
*
304-
* @throws JiraException
305306
*/
306307
public function deleteProject($projectIdOrKey)
307308
{

src/Version/VersionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace JiraRestApi\Version;
44

55
use JiraRestApi\Issue\Version;
6-
use JiraRestApi\Issue\VersionUnresolvedCount;
76
use JiraRestApi\Issue\VersionIssueCounts;
7+
use JiraRestApi\Issue\VersionUnresolvedCount;
88
use JiraRestApi\JiraException;
99
use JiraRestApi\Project\ProjectService;
1010

0 commit comments

Comments
 (0)