Test Setup Failed
Push — master ( 09e290...352899 )
by Xu
41:32
created
src/console/views/migrate/addColumnMigration.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@
 block discarded – undo
23 23
 /**
24 24
  * Handles adding <?= $columns ?> to table `<?= $table ?>`.
25 25
 <?= $this->render('_foreignTables', [
26
-     'foreignKeys' => $foreignKeys,
27
- ]) ?>
26
+        'foreignKeys' => $foreignKeys,
27
+    ]) ?>
28 28
  */
29 29
 class <?= $className ?> extends Migration
30 30
 {
Please login to merge, or discard this patch.
src/behaviors/DatetimeBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,6 +139,6 @@
 block discarded – undo
139 139
         if ($owner->getIsNewRecord()) {
140 140
             throw new InvalidCallException('Updating the timestamp is not possible on a new record.');
141 141
         }
142
-        $owner->updateAttributes(array_fill_keys((array) $attribute, $this->getValue(null)));
142
+        $owner->updateAttributes(array_fill_keys((array)$attribute, $this->getValue(null)));
143 143
     }
144 144
 }
145 145
\ No newline at end of file
Please login to merge, or discard this patch.
src/sms/gateways/AliyunGateway.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,13 +55,13 @@
 block discarded – undo
55 55
     {
56 56
         parent::init();
57 57
         if (empty ($this->accessId)) {
58
-            throw new InvalidConfigException ('The "accessId" property must be set.');
58
+            throw new InvalidConfigException('The "accessId" property must be set.');
59 59
         }
60 60
         if (empty ($this->accessKey)) {
61
-            throw new InvalidConfigException ('The "accessKey" property must be set.');
61
+            throw new InvalidConfigException('The "accessKey" property must be set.');
62 62
         }
63 63
         if (empty ($this->signName)) {
64
-            throw new InvalidConfigException ('The "signName" property must be set.');
64
+            throw new InvalidConfigException('The "signName" property must be set.');
65 65
         }
66 66
     }
67 67
 
Please login to merge, or discard this patch.
src/sms/gateways/QcloudGateway.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@
 block discarded – undo
44 44
     {
45 45
         parent::init();
46 46
         if (empty ($this->appId)) {
47
-            throw new InvalidConfigException ('The "appId" property must be set.');
47
+            throw new InvalidConfigException('The "appId" property must be set.');
48 48
         }
49 49
         if (empty ($this->appKey)) {
50
-            throw new InvalidConfigException ('The "appKey" property must be set.');
50
+            throw new InvalidConfigException('The "appKey" property must be set.');
51 51
         }
52 52
     }
53 53
 
Please login to merge, or discard this patch.
src/sms/gateways/YuntongxunGateway.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@
 block discarded – undo
45 45
     {
46 46
         parent::init();
47 47
         if (empty ($this->appId)) {
48
-            throw new InvalidConfigException ('The "appId" property must be set.');
48
+            throw new InvalidConfigException('The "appId" property must be set.');
49 49
         }
50 50
         if (empty ($this->accountSid)) {
51
-            throw new InvalidConfigException ('The "accountSid" property must be set.');
51
+            throw new InvalidConfigException('The "accountSid" property must be set.');
52 52
         }
53 53
         if (empty ($this->accountToken)) {
54
-            throw new InvalidConfigException ('The "accountToken" property must be set.');
54
+            throw new InvalidConfigException('The "accountToken" property must be set.');
55 55
         }
56 56
     }
57 57
 
Please login to merge, or discard this patch.
src/sms/strategies/RandomStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function apply(array $gateways)
24 24
     {
25
-        uasort($gateways, function () {
25
+        uasort($gateways, function() {
26 26
             return mt_rand() - mt_rand();
27 27
         });
28 28
         return $gateways;
Please login to merge, or discard this patch.
src/sms/captcha/Captcha.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
     {
117 117
         if ($this->hasModel()) {
118 118
             $input = Html::activeTextInput($this->model, $this->attribute, $this->options);
119
-            $this->mobileField = Html::getInputId($this->model,$this->mobileField);
119
+            $this->mobileField = Html::getInputId($this->model, $this->mobileField);
120 120
         } else {
121 121
             $input = Html::textInput($this->name, $this->value, $this->options);
122 122
             $this->mobileField = $this->name;
Please login to merge, or discard this patch.
src/authclient/LinkedIn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @inheritdoc
20 20
      */
21 21
     protected function defaultTitle() {
22
-        return Yii::t('yuncms','LinkedIn');
22
+        return Yii::t('yuncms', 'LinkedIn');
23 23
     }
24 24
 
25 25
     /**
Please login to merge, or discard this patch.
config/wechat.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,20 +11,20 @@
 block discarded – undo
11 11
     ],
12 12
     'components' => [
13 13
         'cache' => [
14
-            'keyPrefix' => 'wechat',       //前缀
14
+            'keyPrefix' => 'wechat', //前缀
15 15
         ],
16 16
         'request' => [
17 17
             'class' => yuncms\wechat\Request::class,
18 18
             'secureProtocolHeaders' => [
19 19
                 'X-Forwarded-Proto' => ['https'], // Common
20 20
                 'Front-End-Https' => ['on'], // Microsoft
21
-                'X-Client-Scheme' => ['https'],// Aliyun CDN
21
+                'X-Client-Scheme' => ['https'], // Aliyun CDN
22 22
                 'X-Client-Proto' => ['https'],
23 23
             ],
24 24
             'ipHeaders' => [
25
-                'X-Forwarded-For',// Common
25
+                'X-Forwarded-For', // Common
26 26
                 'X-Cluster-Client-IP',
27
-                'ALI-CDN-REAL-IP',// Aliyun CDN
27
+                'ALI-CDN-REAL-IP', // Aliyun CDN
28 28
                 'Client-IP',
29 29
                 'X-Forwarded',
30 30
                 'Forwarded-For',
Please login to merge, or discard this patch.