@@ -425,7 +425,7 @@ |
||
425 | 425 | */ |
426 | 426 | public function collectData($attributes = null, $options = []) |
427 | 427 | { |
428 | - $data = []; |
|
428 | + $data = []; |
|
429 | 429 | foreach ($this->models as $model) { |
430 | 430 | /* @var $model ActiveRecord */ |
431 | 431 | $key = $model->getPrimaryKey(); |
@@ -100,7 +100,7 @@ |
||
100 | 100 | if (!empty($traces)) { |
101 | 101 | $traceString .= Html::ul($traces, [ |
102 | 102 | 'class' => 'trace', |
103 | - 'item' => function ($trace) { |
|
103 | + 'item' => function($trace) { |
|
104 | 104 | return "<li>{$trace['file']}({$trace['line']})</li>"; |
105 | 105 | }, |
106 | 106 | ]); |
@@ -430,7 +430,7 @@ |
||
430 | 430 | $result = $result ?: []; |
431 | 431 | |
432 | 432 | // return $this->createCommand($db)->getList($options); |
433 | - return $as_array ? ArrayHelper::map($result, 'gl_key', function ($o) { |
|
433 | + return $as_array ? ArrayHelper::map($result, 'gl_key', function($o) { |
|
434 | 434 | return Yii::t('app', $o->gl_value); |
435 | 435 | }) : $result; |
436 | 436 | } |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | protected function guzzleRequest($method, $url, $body = null, $raw = false) |
282 | 282 | { |
283 | 283 | $method = strtoupper($method); |
284 | - $profile = $method . ' ' . $url[0] . '/' .$url[1] . '?' . (is_array($body) ? http_build_query($body) : $body); |
|
284 | + $profile = $method . ' ' . $url[0] . '/' . $url[1] . '?' . (is_array($body) ? http_build_query($body) : $body); |
|
285 | 285 | $options = [(is_array($body) ? 'form_params' : 'body') => $body]; |
286 | 286 | Yii::beginProfile($profile, __METHOD__); |
287 | 287 | $response = $this->getGuzzle()->request($method, $url[0] . '/' . $url[1], $options); |
@@ -336,12 +336,12 @@ discard block |
||
336 | 336 | CURLOPT_SSL_VERIFYHOST => 2, |
337 | 337 | // http://www.php.net/manual/en/function.curl-setopt.php#82418 |
338 | 338 | CURLOPT_HTTPHEADER => ['Expect:'], |
339 | - CURLOPT_WRITEFUNCTION => function ($curl, $data) use (&$body) { |
|
339 | + CURLOPT_WRITEFUNCTION => function($curl, $data) use (&$body) { |
|
340 | 340 | $body .= $data; |
341 | 341 | |
342 | 342 | return mb_strlen($data, '8bit'); |
343 | 343 | }, |
344 | - CURLOPT_HEADERFUNCTION => function ($curl, $data) use (&$headers) { |
|
344 | + CURLOPT_HEADERFUNCTION => function($curl, $data) use (&$headers) { |
|
345 | 345 | foreach (explode("\r\n", $data) as $row) { |
346 | 346 | if (($pos = strpos($row, ':')) !== false) { |
347 | 347 | $headers[strtolower(substr($row, 0, $pos))] = trim(substr($row, $pos + 1)); |