@@ -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 | |
@@ -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 | |
@@ -239,16 +239,16 @@ discard block |
||
| 239 | 239 | |
| 240 | 240 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->getConfiguration()->isCurlOptSslVerifyHost()); |
| 241 | 241 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->getConfiguration()->isCurlOptSslVerifyPeer()); |
| 242 | - if($this->getConfiguration()->isCurlOptSslCert()) { |
|
| 242 | + if ($this->getConfiguration()->isCurlOptSslCert()) { |
|
| 243 | 243 | curl_setopt($ch, CURLOPT_SSLCERT, $this->getConfiguration()->isCurlOptSslCert()); |
| 244 | 244 | } |
| 245 | - if($this->getConfiguration()->isCurlOptSslCertPassword()) { |
|
| 245 | + if ($this->getConfiguration()->isCurlOptSslCertPassword()) { |
|
| 246 | 246 | curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $this->getConfiguration()->isCurlOptSslCertPassword()); |
| 247 | 247 | } |
| 248 | - if($this->getConfiguration()->isCurlOptSslKey()) { |
|
| 248 | + if ($this->getConfiguration()->isCurlOptSslKey()) { |
|
| 249 | 249 | curl_setopt($ch, CURLOPT_SSLKEY, $this->getConfiguration()->isCurlOptSslKey()); |
| 250 | 250 | } |
| 251 | - if($this->getConfiguration()->isCurlOptSslKeyPassword()) { |
|
| 251 | + if ($this->getConfiguration()->isCurlOptSslKeyPassword()) { |
|
| 252 | 252 | curl_setopt($ch, CURLOPT_SSLKEYPASSWD, $this->getConfiguration()->isCurlOptSslKeyPassword()); |
| 253 | 253 | } |
| 254 | 254 | |
@@ -354,16 +354,16 @@ discard block |
||
| 354 | 354 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->getConfiguration()->isCurlOptSslVerifyHost()); |
| 355 | 355 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->getConfiguration()->isCurlOptSslVerifyPeer()); |
| 356 | 356 | |
| 357 | - if($this->getConfiguration()->isCurlOptSslCert()) { |
|
| 357 | + if ($this->getConfiguration()->isCurlOptSslCert()) { |
|
| 358 | 358 | curl_setopt($ch, CURLOPT_SSLCERT, $this->getConfiguration()->isCurlOptSslCert()); |
| 359 | 359 | } |
| 360 | - if($this->getConfiguration()->isCurlOptSslCertPassword()) { |
|
| 360 | + if ($this->getConfiguration()->isCurlOptSslCertPassword()) { |
|
| 361 | 361 | curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $this->getConfiguration()->isCurlOptSslCertPassword()); |
| 362 | 362 | } |
| 363 | - if($this->getConfiguration()->isCurlOptSslKey()) { |
|
| 363 | + if ($this->getConfiguration()->isCurlOptSslKey()) { |
|
| 364 | 364 | curl_setopt($ch, CURLOPT_SSLKEY, $this->getConfiguration()->isCurlOptSslKey()); |
| 365 | 365 | } |
| 366 | - if($this->getConfiguration()->isCurlOptSslKeyPassword()) { |
|
| 366 | + if ($this->getConfiguration()->isCurlOptSslKeyPassword()) { |
|
| 367 | 367 | curl_setopt($ch, CURLOPT_SSLKEYPASSWD, $this->getConfiguration()->isCurlOptSslKeyPassword()); |
| 368 | 368 | } |
| 369 | 369 | |
@@ -575,16 +575,16 @@ discard block |
||
| 575 | 575 | curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, $this->getConfiguration()->isCurlOptSslVerifyHost()); |
| 576 | 576 | curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, $this->getConfiguration()->isCurlOptSslVerifyPeer()); |
| 577 | 577 | |
| 578 | - if($this->getConfiguration()->isCurlOptSslCert()) { |
|
| 578 | + if ($this->getConfiguration()->isCurlOptSslCert()) { |
|
| 579 | 579 | curl_setopt($ch, CURLOPT_SSLCERT, $this->getConfiguration()->isCurlOptSslCert()); |
| 580 | 580 | } |
| 581 | - if($this->getConfiguration()->isCurlOptSslCertPassword()) { |
|
| 581 | + if ($this->getConfiguration()->isCurlOptSslCertPassword()) { |
|
| 582 | 582 | curl_setopt($ch, CURLOPT_SSLCERTPASSWD, $this->getConfiguration()->isCurlOptSslCertPassword()); |
| 583 | 583 | } |
| 584 | - if($this->getConfiguration()->isCurlOptSslKey()) { |
|
| 584 | + if ($this->getConfiguration()->isCurlOptSslKey()) { |
|
| 585 | 585 | curl_setopt($ch, CURLOPT_SSLKEY, $this->getConfiguration()->isCurlOptSslKey()); |
| 586 | 586 | } |
| 587 | - if($this->getConfiguration()->isCurlOptSslKeyPassword()) { |
|
| 587 | + if ($this->getConfiguration()->isCurlOptSslKeyPassword()) { |
|
| 588 | 588 | curl_setopt($ch, CURLOPT_SSLKEYPASSWD, $this->getConfiguration()->isCurlOptSslKeyPassword()); |
| 589 | 589 | } |
| 590 | 590 | |