@@ -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 |
@@ -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; |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | |
227 | 227 | $this->log->addDebug('add comment result='.var_export($ret, true)); |
228 | 228 | $comment = $this->json_mapper->map( |
229 | - json_decode($ret), new Comment() |
|
229 | + json_decode($ret), new Comment() |
|
230 | 230 | ); |
231 | 231 | |
232 | 232 | return $comment; |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | $data = json_encode(json_decode($ret)->transitions); |
399 | 399 | |
400 | 400 | $transitions = $this->json_mapper->mapArray( |
401 | - json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition' |
|
401 | + json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition' |
|
402 | 402 | ); |
403 | 403 | |
404 | 404 | return $transitions; |
@@ -515,7 +515,7 @@ discard block |
||
515 | 515 | $this->log->addDebug("getTimeTracking res=$ret\n"); |
516 | 516 | |
517 | 517 | $issue = $this->json_mapper->map( |
518 | - json_decode($ret), new Issue() |
|
518 | + json_decode($ret), new Issue() |
|
519 | 519 | ); |
520 | 520 | |
521 | 521 | return $issue->fields->timeTracking; |
@@ -616,7 +616,7 @@ discard block |
||
616 | 616 | $ret = $this->exec($url, $data, $type); |
617 | 617 | |
618 | 618 | $ret_worklog = $this->json_mapper->map( |
619 | - json_decode($ret), new Worklog() |
|
619 | + json_decode($ret), new Worklog() |
|
620 | 620 | ); |
621 | 621 | |
622 | 622 | return $ret_worklog; |
@@ -663,7 +663,7 @@ discard block |
||
663 | 663 | $ret = $this->exec('priority', null); |
664 | 664 | |
665 | 665 | $priorities = $this->json_mapper->mapArray( |
666 | - json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority' |
|
666 | + json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority' |
|
667 | 667 | ); |
668 | 668 | |
669 | 669 | return $priorities; |
@@ -687,7 +687,7 @@ discard block |
||
687 | 687 | $this->log->addInfo('Result='.$ret); |
688 | 688 | |
689 | 689 | $prio = $this->json_mapper->map( |
690 | - json_decode($ret), new Priority() |
|
690 | + json_decode($ret), new Priority() |
|
691 | 691 | ); |
692 | 692 | |
693 | 693 | return $prio; |
@@ -776,15 +776,15 @@ discard block |
||
776 | 776 | */ |
777 | 777 | public function removeWatcher($issueIdOrKey, $watcher) |
778 | 778 | { |
779 | - $this->log->addInfo("removeWatcher=\n"); |
|
779 | + $this->log->addInfo("removeWatcher=\n"); |
|
780 | 780 | |
781 | - $data = json_encode($watcher); |
|
782 | - $url = $this->uri."/$issueIdOrKey/watchers"; |
|
783 | - $type = 'DELETE'; |
|
781 | + $data = json_encode($watcher); |
|
782 | + $url = $this->uri."/$issueIdOrKey/watchers"; |
|
783 | + $type = 'DELETE'; |
|
784 | 784 | |
785 | - $this->exec($url, $data, $type); |
|
785 | + $this->exec($url, $data, $type); |
|
786 | 786 | |
787 | - return $this->http_response == 204 ? true : false; |
|
787 | + return $this->http_response == 204 ? true : false; |
|
788 | 788 | } |
789 | 789 | |
790 | 790 | /** |
@@ -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 |