@@ -235,7 +235,7 @@ discard block |
||
235 | 235 | |
236 | 236 | $this->log->debug('add comment result='.\var_export($ret, true)); |
237 | 237 | $comment = $this->json_mapper->map( |
238 | - \json_decode($ret), new Comment() |
|
238 | + \json_decode($ret), new Comment() |
|
239 | 239 | ); |
240 | 240 | |
241 | 241 | return $comment; |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | $data = \json_encode(\json_decode($ret)->transitions); |
437 | 437 | |
438 | 438 | $transitions = $this->json_mapper->mapArray( |
439 | - \json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition' |
|
439 | + \json_decode($data), new \ArrayObject(), '\JiraRestApi\Issue\Transition' |
|
440 | 440 | ); |
441 | 441 | |
442 | 442 | return $transitions; |
@@ -560,7 +560,7 @@ discard block |
||
560 | 560 | $this->log->debug("getTimeTracking res=$ret\n"); |
561 | 561 | |
562 | 562 | $issue = $this->json_mapper->map( |
563 | - \json_decode($ret), new Issue() |
|
563 | + \json_decode($ret), new Issue() |
|
564 | 564 | ); |
565 | 565 | |
566 | 566 | return $issue->fields->timeTracking; |
@@ -661,7 +661,7 @@ discard block |
||
661 | 661 | $ret = $this->exec($url, $data, $type); |
662 | 662 | |
663 | 663 | $ret_worklog = $this->json_mapper->map( |
664 | - \json_decode($ret), new Worklog() |
|
664 | + \json_decode($ret), new Worklog() |
|
665 | 665 | ); |
666 | 666 | |
667 | 667 | return $ret_worklog; |
@@ -708,7 +708,7 @@ discard block |
||
708 | 708 | $ret = $this->exec('priority', null); |
709 | 709 | |
710 | 710 | $priorities = $this->json_mapper->mapArray( |
711 | - \json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority' |
|
711 | + \json_decode($ret, false), new \ArrayObject(), '\JiraRestApi\Issue\Priority' |
|
712 | 712 | ); |
713 | 713 | |
714 | 714 | return $priorities; |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | $this->log->info('Result='.$ret); |
733 | 733 | |
734 | 734 | $prio = $this->json_mapper->map( |
735 | - \json_decode($ret), new Priority() |
|
735 | + \json_decode($ret), new Priority() |
|
736 | 736 | ); |
737 | 737 | |
738 | 738 | return $prio; |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | { |
226 | 226 | $this->log->info("addComment=\n"); |
227 | 227 | |
228 | - if (! ($comment instanceof Comment) || empty($comment->body)) { |
|
228 | + if (!($comment instanceof Comment) || empty($comment->body)) { |
|
229 | 229 | throw new JiraException("comment param must instance of Comment and have to body text.!"); |
230 | 230 | } |
231 | 231 | |
@@ -257,7 +257,7 @@ discard block |
||
257 | 257 | { |
258 | 258 | $this->log->info("updateComment=\n"); |
259 | 259 | |
260 | - if (! ($comment instanceof Comment) || empty($comment->body)) { |
|
260 | + if (!($comment instanceof Comment) || empty($comment->body)) { |
|
261 | 261 | throw new JiraException("comment param must instance of Comment and have to body text.!"); |
262 | 262 | } |
263 | 263 | |
@@ -880,7 +880,7 @@ discard block |
||
880 | 880 | $metas = \json_decode($ret, true); |
881 | 881 | |
882 | 882 | // extract only custom field(startWith customefield_XXXXX) |
883 | - $cfs = \array_filter($metas['fields'], function ($key) { |
|
883 | + $cfs = \array_filter($metas['fields'], function($key) { |
|
884 | 884 | $pos = \strpos($key, 'customfield'); |
885 | 885 | |
886 | 886 | return $pos !== false; |
@@ -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 |
@@ -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 self())->dump($x); |
30 | 30 | }, \func_get_args()); |
31 | 31 | die(1); |
@@ -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 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | */ |
87 | 87 | public function jsonSerialize() |
88 | 88 | { |
89 | - return \array_filter(\get_object_vars($this), function ($var) { |
|
89 | + return \array_filter(\get_object_vars($this), function($var) { |
|
90 | 90 | return !\is_null($var); |
91 | 91 | }); |
92 | 92 | } |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | public function jsonSerialize() |
71 | 71 | { |
72 | - return \array_filter(\get_object_vars($this), function ($var) { |
|
72 | + return \array_filter(\get_object_vars($this), function($var) { |
|
73 | 73 | return !\is_null($var); |
74 | 74 | }); |
75 | 75 | } |
@@ -117,7 +117,7 @@ |
||
117 | 117 | |
118 | 118 | public function jsonSerialize() |
119 | 119 | { |
120 | - return \array_filter(\get_object_vars($this), function ($var) { |
|
120 | + return \array_filter(\get_object_vars($this), function($var) { |
|
121 | 121 | return !\is_null($var); |
122 | 122 | }); |
123 | 123 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | { |
70 | 70 | $ret = $this->exec("/user/assignable/search?project=$projectIdOrKey", null); |
71 | 71 | $json = \json_decode($ret); |
72 | - $results = \array_map(function ($elem) { |
|
72 | + $results = \array_map(function($elem) { |
|
73 | 73 | return $this->json_mapper->map($elem, new Reporter()); |
74 | 74 | }, $json); |
75 | 75 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | { |
88 | 88 | $ret = $this->exec($this->uri."/$projectIdOrKey/statuses", null); |
89 | 89 | $json = \json_decode($ret); |
90 | - $results = \array_map(function ($elem) { |
|
90 | + $results = \array_map(function($elem) { |
|
91 | 91 | return $this->json_mapper->map($elem, new IssueType()); |
92 | 92 | }, $json); |
93 | 93 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $this->log->info('Result='.$ret); |
107 | 107 | |
108 | 108 | $json = \json_decode($ret); |
109 | - $results = \array_map(function ($elem) { |
|
109 | + $results = \array_map(function($elem) { |
|
110 | 110 | return $this->json_mapper->map($elem, new ProjectType()); |
111 | 111 | }, $json); |
112 | 112 |