@@ -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 |
@@ -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; |
@@ -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 | } |
@@ -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); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | $ret = $this->exec("/user/assignable/search?project=$projectIdOrKey", null); |
74 | 74 | $json = json_decode($ret); |
75 | - $results = array_map(function ($elem) { |
|
75 | + $results = array_map(function($elem) { |
|
76 | 76 | return $this->json_mapper->map($elem, new Reporter()); |
77 | 77 | }, $json); |
78 | 78 | |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | { |
91 | 91 | $ret = $this->exec($this->uri."/$projectIdOrKey/statuses", null); |
92 | 92 | $json = json_decode($ret); |
93 | - $results = array_map(function ($elem) { |
|
93 | + $results = array_map(function($elem) { |
|
94 | 94 | return $this->json_mapper->map($elem, new IssueType()); |
95 | 95 | }, $json); |
96 | 96 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | { |
109 | 109 | $ret = $this->exec($this->uri."/$projectIdOrKey/statuses", null); |
110 | 110 | $json = json_decode($ret); |
111 | - $results = array_map(function ($elem) { |
|
111 | + $results = array_map(function($elem) { |
|
112 | 112 | return $this->json_mapper->map($elem, new IssueType()); |
113 | 113 | }, $json); |
114 | 114 | |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | foreach ($results as $issueType) { |
117 | 117 | foreach ($issueType->statuses as $status) { |
118 | 118 | |
119 | - if (! in_array($status->id, array_column($transitions, 'id'))) { |
|
119 | + if (!in_array($status->id, array_column($transitions, 'id'))) { |
|
120 | 120 | $transitions[] = [ |
121 | 121 | 'id' => $status->id, |
122 | 122 | 'name' => $status->name, |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $this->log->info('Result='.$ret); |
142 | 142 | |
143 | 143 | $json = json_decode($ret); |
144 | - $results = array_map(function ($elem) { |
|
144 | + $results = array_map(function($elem) { |
|
145 | 145 | return $this->json_mapper->map($elem, new ProjectType()); |
146 | 146 | }, $json); |
147 | 147 |