@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | { |
| 69 | 69 | $ret = $this->exec("/user/assignable/search?project=$projectIdOrKey", null); |
| 70 | 70 | $json = json_decode($ret); |
| 71 | - $results = array_map(function ($elem) { |
|
| 71 | + $results = array_map(function($elem) { |
|
| 72 | 72 | return $this->json_mapper->map($elem, new Reporter()); |
| 73 | 73 | }, $json); |
| 74 | 74 | |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $ret = $this->exec($this->uri."/$projectIdOrKey/statuses", null); |
| 88 | 88 | $json = json_decode($ret); |
| 89 | - $results = array_map(function ($elem) { |
|
| 89 | + $results = array_map(function($elem) { |
|
| 90 | 90 | return $this->json_mapper->map($elem, new IssueType()); |
| 91 | 91 | }, $json); |
| 92 | 92 | |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $this->log->addInfo('Result='.$ret); |
| 106 | 106 | |
| 107 | 107 | $json = json_decode($ret); |
| 108 | - $results = array_map(function ($elem) { |
|
| 108 | + $results = array_map(function($elem) { |
|
| 109 | 109 | return $this->json_mapper->map($elem, new ProjectType()); |
| 110 | 110 | }, $json); |
| 111 | 111 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | |
| 93 | 93 | public function jsonSerialize() |
| 94 | 94 | { |
| 95 | - return array_filter(get_object_vars($this), function ($var) { |
|
| 95 | + return array_filter(get_object_vars($this), function($var) { |
|
| 96 | 96 | return !is_null($var); |
| 97 | 97 | }); |
| 98 | 98 | } |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | public static function dd($x) |
| 27 | 27 | { |
| 28 | - array_map(function ($x) { |
|
| 28 | + array_map(function($x) { |
|
| 29 | 29 | (new Dumper())->dump($x); |
| 30 | 30 | }, func_get_args()); |
| 31 | 31 | die(1); |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | |
| 141 | 141 | public function jsonSerialize() |
| 142 | 142 | { |
| 143 | - $vars = array_filter(get_object_vars($this), function ($var) { |
|
| 143 | + $vars = array_filter(get_object_vars($this), function($var) { |
|
| 144 | 144 | return !is_null($var); |
| 145 | 145 | }); |
| 146 | 146 | |
@@ -783,7 +783,7 @@ |
||
| 783 | 783 | $metas = json_decode($ret, true); |
| 784 | 784 | |
| 785 | 785 | // extract only custom field(startWith customefield_XXXXX) |
| 786 | - $cfs = array_filter($metas['fields'], function ($key) { |
|
| 786 | + $cfs = array_filter($metas['fields'], function($key) { |
|
| 787 | 787 | $pos = strpos($key, 'customfield'); |
| 788 | 788 | |
| 789 | 789 | return $pos !== false; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function register() |
| 29 | 29 | { |
| 30 | - $this->app->bind(ConfigurationInterface::class, function () { |
|
| 30 | + $this->app->bind(ConfigurationInterface::class, function() { |
|
| 31 | 31 | return new DotEnvConfiguration(base_path()); |
| 32 | 32 | }); |
| 33 | 33 | } |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function create($version) |
| 24 | 24 | { |
| 25 | - if($version->releaseDate instanceof \DateTime) |
|
| 25 | + if ($version->releaseDate instanceof \DateTime) |
|
| 26 | 26 | { |
| 27 | 27 | $version->releaseDate = $version->releaseDate->format('Y-m-d'); |
| 28 | 28 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $this->log->addInfo('Result='.$ret); |
| 66 | 66 | |
| 67 | 67 | $json = json_decode($ret); |
| 68 | - $results = array_map(function ($elem) { |
|
| 68 | + $results = array_map(function($elem) { |
|
| 69 | 69 | return $this->json_mapper->map($elem, new ProjectType()); |
| 70 | 70 | }, $json); |
| 71 | 71 | |
@@ -83,18 +83,18 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function update(Version $version) |
| 85 | 85 | { |
| 86 | - if(!$version->id || !is_numeric($version->id)) |
|
| 86 | + if (!$version->id || !is_numeric($version->id)) |
|
| 87 | 87 | { |
| 88 | - throw new JiraException($version->id . ' is not a valid version id.'); |
|
| 88 | + throw new JiraException($version->id.' is not a valid version id.'); |
|
| 89 | 89 | } |
| 90 | 90 | |
| 91 | - if($version->releaseDate instanceof \DateTime) |
|
| 91 | + if ($version->releaseDate instanceof \DateTime) |
|
| 92 | 92 | { |
| 93 | 93 | $version->releaseDate = $version->releaseDate->format('Y-m-d'); |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | $data = json_encode($version); |
| 97 | - $ret = $this->exec($this->uri . '/' . $version->id, $data, 'PUT'); |
|
| 97 | + $ret = $this->exec($this->uri.'/'.$version->id, $data, 'PUT'); |
|
| 98 | 98 | |
| 99 | 99 | return $ret; |
| 100 | 100 | } |
@@ -112,24 +112,24 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | public function delete(Version $version, $moveAffectedIssuesTo = false, $moveFixIssuesTo = false) |
| 114 | 114 | { |
| 115 | - if(!$version->id || !is_numeric($version->id)) |
|
| 115 | + if (!$version->id || !is_numeric($version->id)) |
|
| 116 | 116 | { |
| 117 | - throw new JiraException($version->id . ' is not a valid version id.'); |
|
| 117 | + throw new JiraException($version->id.' is not a valid version id.'); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | $data = []; |
| 121 | 121 | |
| 122 | - if($moveAffectedIssuesTo && $moveAffectedIssuesTo instanceof Version) |
|
| 122 | + if ($moveAffectedIssuesTo && $moveAffectedIssuesTo instanceof Version) |
|
| 123 | 123 | { |
| 124 | 124 | $data['moveAffectedIssuesTo'] = $moveAffectedIssuesTo->name; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | - if($moveFixIssuesTo && $moveFixIssuesTo instanceof Version) |
|
| 127 | + if ($moveFixIssuesTo && $moveFixIssuesTo instanceof Version) |
|
| 128 | 128 | { |
| 129 | 129 | $data['moveFixIssuesTo'] = $moveFixIssuesTo->name; |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | - $ret = $this->exec($this->uri . '/' . $version->id, json_encode($data), 'DELETE'); |
|
| 132 | + $ret = $this->exec($this->uri.'/'.$version->id, json_encode($data), 'DELETE'); |
|
| 133 | 133 | |
| 134 | 134 | return $ret; |
| 135 | 135 | } |