Skip to content

Commit efba2c2

Browse files
authored
Merge pull request #161 from lesstif/analysis-ze1yLv
Apply fixes from StyleCI
2 parents 05d7f07 + e6d17d7 commit efba2c2

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

src/Issue/IssueService.php

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace JiraRestApi\Issue;
44

5-
use JiraRestApi\Dumper;
65
use JiraRestApi\JiraException;
76

87
class IssueService extends \JiraRestApi\JiraClient
@@ -935,32 +934,32 @@ public function getIssueSecuritySchemes($securityId)
935934
* @param string|int $issueIdOrKey
936935
* @param array|null $addLablesParam
937936
* @param array|null $removeLabelsParam
938-
* @param bool $notifyUsers
939-
*
940-
* @return Issue|object class
937+
* @param bool $notifyUsers
941938
*
942939
* @throws JiraException
940+
*
941+
* @return Issue|object class
943942
*/
944943
public function updateLabels($issueIdOrKey, $addLablesParam, $removeLabelsParam, $notifyUsers = true)
945944
{
946945
$labels = [];
947-
foreach($addLablesParam as $a) {
948-
array_push($labels, ["add" => $a]);
946+
foreach ($addLablesParam as $a) {
947+
array_push($labels, ['add' => $a]);
949948
}
950949

951-
foreach($removeLabelsParam as $r) {
952-
array_push($labels, ["remove" => $r]);
950+
foreach ($removeLabelsParam as $r) {
951+
array_push($labels, ['remove' => $r]);
953952
}
954953

955954
$postData = json_encode([
956-
"update" => [
957-
"labels" => $labels
958-
]
959-
], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT );
955+
'update' => [
956+
'labels' => $labels,
957+
],
958+
], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
960959

961960
$this->log->addInfo("Update labels=\n".$postData);
962961

963-
$queryParam = '?'.http_build_query(["notifyUsers" => $notifyUsers]);
962+
$queryParam = '?'.http_build_query(['notifyUsers' => $notifyUsers]);
964963

965964
$ret = $this->exec($this->uri."/$issueIdOrKey".$queryParam, $postData, 'PUT');
966965

0 commit comments

Comments
 (0)