@@ -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); |
@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | { |
| 324 | 324 | $this->log->info("getComments=\n"); |
| 325 | 325 | |
| 326 | - $ret = $this->exec($this->uri.'/'.$issueIdOrKey.'/comment' . $this->toHttpQueryParameter($paramArray), null); |
|
| 326 | + $ret = $this->exec($this->uri.'/'.$issueIdOrKey.'/comment'.$this->toHttpQueryParameter($paramArray), null); |
|
| 327 | 327 | |
| 328 | 328 | $this->log->debug('get comments result='.var_export($ret, true)); |
| 329 | 329 | $comment = $this->json_mapper->map( |
@@ -953,7 +953,7 @@ discard block |
||
| 953 | 953 | $metas = json_decode($ret, true); |
| 954 | 954 | |
| 955 | 955 | // extract only custom field(startWith customefield_XXXXX) |
| 956 | - $cfs = array_filter($metas['fields'], function ($key) { |
|
| 956 | + $cfs = array_filter($metas['fields'], function($key) { |
|
| 957 | 957 | $pos = strpos($key, 'customfield'); |
| 958 | 958 | |
| 959 | 959 | return $pos !== false; |