@@ -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 | } |
@@ -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 |
@@ -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 | } |
@@ -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 | } |
@@ -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 |
@@ -79,7 +79,7 @@ |
||
79 | 79 | */ |
80 | 80 | public function jsonSerialize() |
81 | 81 | { |
82 | - return array_filter(get_object_vars($this), function ($var) { |
|
82 | + return array_filter(get_object_vars($this), function($var) { |
|
83 | 83 | return !is_null($var); |
84 | 84 | }); |
85 | 85 | } |
@@ -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); |
@@ -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; |