Completed
Pull Request — master (#3)
by
unknown
03:50
created
src/Connection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -296,12 +296,12 @@
 block discarded – undo
296 296
             CURLOPT_SSL_VERIFYHOST => 2,
297 297
             // http://www.php.net/manual/en/function.curl-setopt.php#82418
298 298
             CURLOPT_HTTPHEADER    => ['Expect:'],
299
-            CURLOPT_WRITEFUNCTION => function ($curl, $data) use (&$body) {
299
+            CURLOPT_WRITEFUNCTION => function($curl, $data) use (&$body) {
300 300
                 $body .= $data;
301 301
 
302 302
                 return mb_strlen($data, '8bit');
303 303
             },
304
-            CURLOPT_HEADERFUNCTION => function ($curl, $data) use (&$headers) {
304
+            CURLOPT_HEADERFUNCTION => function($curl, $data) use (&$headers) {
305 305
                 foreach (explode("\r\n", $data) as $row) {
306 306
                     if (($pos = strpos($row, ':')) !== false) {
307 307
                         $headers[strtolower(substr($row, 0, $pos))] = trim(substr($row, $pos + 1));
Please login to merge, or discard this patch.
src/Collection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/DebugPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@
 block discarded – undo
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
                 ]);
Please login to merge, or discard this patch.
src/ActiveQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.