Skip to content

Commit 653267c

Browse files
authored
Merge pull request #158 from lesstif/analysis-86lEDa
Apply fixes from StyleCI
2 parents a4f4182 + 6dab90f commit 653267c

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

src/sprint/Sprint.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Created by PhpStorm.
44
* User: meshulam
55
* Date: 23/09/2017
6-
* Time: 14:17
6+
* Time: 14:17.
77
*/
88

99
namespace JiraRestApi\Sprint;
@@ -23,7 +23,6 @@ class Sprint implements \JsonSerializable
2323
/* @var string */
2424
public $id;
2525

26-
2726
/* @var string*/
2827
public $name;
2928

@@ -47,12 +46,15 @@ public function jsonSerialize()
4746
return array_filter(get_object_vars($this));
4847
}
4948

50-
public function setName ($sprintName) {
49+
public function setName($sprintName)
50+
{
5151
$this->name = $sprintName;
52+
5253
return $sprintName;
5354
}
54-
public function getName () {
55+
56+
public function getName()
57+
{
5558
return $this->name;
5659
}
57-
58-
}
60+
}

src/sprint/SprintSearchResult.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public function setSprints($issues)
104104

105105
/**
106106
* @param int $ndx
107+
*
107108
* @return object
108109
*/
109110
public function getSprint($ndx)

src/sprint/SprintService.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,17 @@
33
* Created by PhpStorm.
44
* User: meshulam
55
* Date: 11/08/2017
6-
* Time: 17:28
6+
* Time: 17:28.
77
*/
88

99
namespace JiraRestApi\Sprint;
1010

1111
use JiraRestApi\Configuration\ConfigurationInterface;
12-
use JiraRestApi\JiraException;
1312
use JiraRestApi\JiraClient;
13+
use JiraRestApi\JiraException;
1414
use Monolog\Logger;
1515

16-
17-
class SprintService extends JiraClient
16+
class SprintService extends JiraClient
1817
{
1918
//https://jira01.devtools.intel.com/rest/agile/1.0/board?projectKeyOrId=34012
2019
private $uri = '/sprint';
@@ -27,7 +26,7 @@ public function __construct(ConfigurationInterface $configuration = null, Logger
2726

2827
public function getSprintFromJSON($json)
2928
{
30-
$sprint= $this->json_mapper->map(
29+
$sprint = $this->json_mapper->map(
3130
$json, new Sprint()
3231
);
3332

@@ -42,19 +41,18 @@ public function getSprintFromJSON($json)
4241
* @throws JiraException
4342
* @throws \JsonMapper_Exception
4443
*
45-
* @return object
44+
* @return object
4645
*/
4746
public function getSprint($sprintObject = null)
4847
{
49-
$sprintObject = ($sprintObject ) ? $sprintObject : new Sprint();
48+
$sprintObject = ($sprintObject) ? $sprintObject : new Sprint();
5049

51-
$ret = $this->exec($this->uri.'/$sprintId' , null);
50+
$ret = $this->exec($this->uri.'/$sprintId', null);
5251

5352
$this->log->addInfo("Result=\n".$ret);
5453

5554
return $sprint = $this->json_mapper->map(
5655
json_decode($ret), $sprintObject
5756
);
5857
}
59-
6058
}

0 commit comments

Comments
 (0)