@@ -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 | } |
@@ -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 | |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | { |
| 111 | 111 | $ret = $this->exec($this->uri."/$projectIdOrKey/statuses", null); |
| 112 | 112 | $json = json_decode($ret); |
| 113 | - $results = array_map(function ($elem) { |
|
| 113 | + $results = array_map(function($elem) { |
|
| 114 | 114 | return $this->json_mapper->map($elem, new IssueType()); |
| 115 | 115 | }, $json); |
| 116 | 116 | |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | $this->log->info('Result='.$ret); |
| 143 | 143 | |
| 144 | 144 | $json = json_decode($ret); |
| 145 | - $results = array_map(function ($elem) { |
|
| 145 | + $results = array_map(function($elem) { |
|
| 146 | 146 | return $this->json_mapper->map($elem, new ProjectType()); |
| 147 | 147 | }, $json); |
| 148 | 148 | |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | public function jsonSerialize() |
| 43 | 43 | { |
| 44 | - return array_filter(get_object_vars($this), function ($var) { |
|
| 44 | + return array_filter(get_object_vars($this), function($var) { |
|
| 45 | 45 | return $var !== null; |
| 46 | 46 | }); |
| 47 | 47 | } |
@@ -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 | exit(1); |