🍰 Apply fixes from StyleCI

This commit is contained in:
metowolf
2018-03-04 23:58:46 +08:00
parent 967a9e71b6
commit 2a27d66044

View File

@@ -91,7 +91,9 @@ class Meting
private function curl($url, $payload = null, $headerOnly = 0)
{
$header = array_map(function($k, $v){return $k.': '.$v;}, array_keys($this->header), $this->header);
$header = array_map(function ($k, $v) {
return $k.': '.$v;
}, array_keys($this->header), $this->header);
$curl = curl_init();
if (!is_null($payload)) {
curl_setopt($curl, CURLOPT_POST, 1);