@@ -61,7 +61,7 @@ |
||
| 61 | 61 | $this->log->addInfo('Result='.$ret); |
| 62 | 62 | |
| 63 | 63 | $json = json_decode($ret); |
| 64 | - $results = array_map(function ($elem) { |
|
| 64 | + $results = array_map(function($elem) { |
|
| 65 | 65 | return $this->json_mapper->map($elem, new ProjectType()); |
| 66 | 66 | }, $json); |
| 67 | 67 | |
@@ -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 | |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | |
| 224 | 224 | $this->log->addDebug('add comment result='.var_export($ret, true)); |
| 225 | 225 | $comment = $this->json_mapper->map( |
| 226 | - json_decode($ret), new Comment() |
|
| 226 | + json_decode($ret), new Comment() |
|
| 227 | 227 | ); |
| 228 | 228 | |
| 229 | 229 | return $comment; |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | $data = json_encode(json_decode($ret)->transitions); |
| 368 | 368 | |
| 369 | 369 | $transitions = $this->json_mapper->mapArray( |
| 370 | - json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition' |
|
| 370 | + json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition' |
|
| 371 | 371 | ); |
| 372 | 372 | |
| 373 | 373 | return $transitions; |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | $this->log->addDebug("getTimeTracking res=$ret\n"); |
| 485 | 485 | |
| 486 | 486 | $issue = $this->json_mapper->map( |
| 487 | - json_decode($ret), new Issue() |
|
| 487 | + json_decode($ret), new Issue() |
|
| 488 | 488 | ); |
| 489 | 489 | |
| 490 | 490 | return $issue->fields->timeTracking; |
@@ -585,7 +585,7 @@ discard block |
||
| 585 | 585 | $ret = $this->exec($url, $data, $type); |
| 586 | 586 | |
| 587 | 587 | $ret_worklog = $this->json_mapper->map( |
| 588 | - json_decode($ret), new Worklog() |
|
| 588 | + json_decode($ret), new Worklog() |
|
| 589 | 589 | ); |
| 590 | 590 | |
| 591 | 591 | return $ret_worklog; |
@@ -632,7 +632,7 @@ discard block |
||
| 632 | 632 | $ret = $this->exec('priority', null); |
| 633 | 633 | |
| 634 | 634 | $priorities = $this->json_mapper->mapArray( |
| 635 | - json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority' |
|
| 635 | + json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority' |
|
| 636 | 636 | ); |
| 637 | 637 | |
| 638 | 638 | return $priorities; |
@@ -656,7 +656,7 @@ discard block |
||
| 656 | 656 | $this->log->addInfo('Result='.$ret); |
| 657 | 657 | |
| 658 | 658 | $prio = $this->json_mapper->map( |
| 659 | - json_decode($ret), new Priority() |
|
| 659 | + json_decode($ret), new Priority() |
|
| 660 | 660 | ); |
| 661 | 661 | |
| 662 | 662 | return $prio; |
@@ -787,7 +787,7 @@ discard block |
||
| 787 | 787 | $metas = json_decode($ret, true); |
| 788 | 788 | |
| 789 | 789 | // extract only custom field(startWith customefield_XXXXX) |
| 790 | - $cfs = array_filter($metas['fields'], function ($key) { |
|
| 790 | + $cfs = array_filter($metas['fields'], function($key) { |
|
| 791 | 791 | $pos = strpos($key, 'customfield'); |
| 792 | 792 | |
| 793 | 793 | return $pos !== false; |
@@ -944,11 +944,11 @@ discard block |
||
| 944 | 944 | public function updateLabels($issueIdOrKey, $addLablesParam, $removeLabelsParam, $notifyUsers = true) |
| 945 | 945 | { |
| 946 | 946 | $labels = []; |
| 947 | - foreach($addLablesParam as $a) { |
|
| 947 | + foreach ($addLablesParam as $a) { |
|
| 948 | 948 | array_push($labels, ["add" => $a]); |
| 949 | 949 | } |
| 950 | 950 | |
| 951 | - foreach($removeLabelsParam as $r) { |
|
| 951 | + foreach ($removeLabelsParam as $r) { |
|
| 952 | 952 | array_push($labels, ["remove" => $r]); |
| 953 | 953 | } |
| 954 | 954 | |
@@ -956,7 +956,7 @@ discard block |
||
| 956 | 956 | "update" => [ |
| 957 | 957 | "labels" => $labels |
| 958 | 958 | ] |
| 959 | - ], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT ); |
|
| 959 | + ], JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); |
|
| 960 | 960 | |
| 961 | 961 | $this->log->addInfo("Update labels=\n".$postData); |
| 962 | 962 | |
@@ -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 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | $ret = $this->exec($this->uri, null); |
| 21 | 21 | |
| 22 | 22 | $fields = $this->json_mapper->mapArray( |
| 23 | - json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Field\Field' |
|
| 23 | + json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Field\Field' |
|
| 24 | 24 | ); |
| 25 | 25 | |
| 26 | 26 | // temp array |