Completed
Push — master ( f0ed5f...2ddb0a )
by Xu
173:23 queued 133:27
created
src/gii/generators/crud/views/_form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 
34 34
 <div class="form-group">
35 35
     <div class="col-sm-4 col-sm-offset-2">
36
-        <?= "<?= " ?>Html::submitButton($model->isNewRecord ? <?= $generator->generateString('Create');?> : <?= $generator->generateString('Update');?>, ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
36
+        <?= "<?= " ?>Html::submitButton($model->isNewRecord ? <?= $generator->generateString('Create'); ?> : <?= $generator->generateString('Update'); ?>, ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
37 37
     </div>
38 38
 </div>
39 39
 
Please login to merge, or discard this patch.
src/gii/generators/crud/views/index.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
                         ],
58 58
                         [
59 59
                             'options' => ['id' => 'batch_deletion', 'class'=>'btn btn-sm btn-danger'],
60
-                            'label' => <?= $generator->generateString('Batch Deletion');?>,
60
+                            'label' => <?= $generator->generateString('Batch Deletion'); ?>,
61 61
                             'url' => 'javascript:void(0);',
62 62
                         ]
63 63
                     ]]); ?>
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                     <?= "<?= " ?>$this->render('_search', ['model' => $searchModel]); ?>
67 67
                 </div>
68 68
             </div>
69
-<?php if(!empty($generator->searchModelClass)): ?>
69
+<?php if (!empty($generator->searchModelClass)): ?>
70 70
            <?= " <?php " . ($generator->indexWidgetType === 'grid' ? "// " : "") ?>echo $this->render('_search', ['model' => $searchModel]); ?>
71 71
 <?php endif; ?>
72 72
             <?= "<?= " ?>GridView::widget([
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 ?>
103 103
                     [
104 104
                         'class' => 'yii\grid\ActionColumn',
105
-                        'header' => <?= $generator->generateString('Operation');?>,
105
+                        'header' => <?= $generator->generateString('Operation'); ?>,
106 106
                         'template' => '{view} {update} {delete}',
107 107
                         //'buttons' => [
108 108
                         //    'update' => function ($url, $model, $key) {
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,7 +113,8 @@  discard block
 block discarded – undo
113 113
                 ],
114 114
             ]); ?>
115 115
             <?= "<?php " ?>Box::end(); ?>
116
-            <?php else: ?>
116
+            <?php else {
117
+    : ?>
117 118
                 <?= "<?= " ?>ListView::widget([
118 119
                     'dataProvider' => $dataProvider,
119 120
                     'layout' => "{items}\n{summary}\n{pager}",
@@ -122,7 +123,9 @@  discard block
 block discarded – undo
122 123
                         return Html::a(Html::encode($model-><?= $nameAttribute ?>), ['view', <?= $urlParams ?>]);
123 124
                     },
124 125
                 ]) ?>
125
-            <?php endif; ?><?= $generator->enablePjax ? '<?php Pjax::end(); ?>' : '' ?>
126
+            <?php endif;
127
+}
128
+?><?= $generator->enablePjax ? '<?php Pjax::end(); ?>' : '' ?>
126 129
 
127 130
         </div>
128 131
     </div>
Please login to merge, or discard this patch.
src/gii/generators/crud/views/update.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
 /* @var $this yii\web\View */
20 20
 /* @var $model <?= ltrim($generator->modelClass, '\\') ?> */
21 21
 
22
-$this->title = <?= $generator->generateString('Update '.Inflector::camel2words(StringHelper::basename($generator->modelClass)))?> . ': ' . $model-><?= $generator->getNameAttribute() ?>;
22
+$this->title = <?= $generator->generateString('Update ' . Inflector::camel2words(StringHelper::basename($generator->modelClass)))?> . ': ' . $model-><?= $generator->getNameAttribute() ?>;
23 23
 $this->params['breadcrumbs'][] = ['label' => <?= $generator->generateString('Manage ' . Inflector::camel2words(StringHelper::basename($generator->modelClass))) ?>, 'url' => ['index']];
24 24
 $this->params['breadcrumbs'][] = ['label' => $model-><?= $generator->getNameAttribute() ?>, 'url' => ['view', <?= $urlParams ?>]];
25 25
 $this->params['breadcrumbs'][] = Yii::t('app', 'Update');
Please login to merge, or discard this patch.
src/admin/controllers/AttachmentController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     public function actionDelete($id)
84 84
     {
85 85
         $this->findModel($id)->delete();
86
-        Yii::$app->getSession()->setFlash('success', Yii::t('yuncms','Delete success.'));
86
+        Yii::$app->getSession()->setFlash('success', Yii::t('yuncms', 'Delete success.'));
87 87
         return $this->redirect(['index']);
88 88
     }
89 89
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
         if (($model = Attachment::findOne($id)) !== null) {
120 120
             return $model;
121 121
         } else {
122
-            throw new NotFoundHttpException (Yii::t('yuncms', 'The requested page does not exist.'));
122
+            throw new NotFoundHttpException(Yii::t('yuncms', 'The requested page does not exist.'));
123 123
         }
124 124
     }
125 125
 }
Please login to merge, or discard this patch.
src/admin/controllers/VolumesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
         $variables = [];
30 30
         $variables['volumes'] = Yii::$app->getFilesystem()->getFilesystems();
31 31
 
32
-        print_r($variables);exit;
32
+        print_r($variables); exit;
33 33
         return $this->renderTemplate('settings/assets/volumes/_index', $variables);
34 34
     }
35 35
 }
36 36
\ No newline at end of file
Please login to merge, or discard this patch.
src/user/models/AvatarForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
     {
82 82
         if ($this->validate()) {
83 83
             $user = $this->getUser();
84
-            if(AvatarHelper::save($user, $this->getOriginalImage())){
84
+            if (AvatarHelper::save($user, $this->getOriginalImage())) {
85 85
                 return true;
86 86
             } else {
87 87
                 return false;
Please login to merge, or discard this patch.
src/rest/models/UserEmailRegistrationForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@
 block discarded – undo
81 81
             $user = new User();
82 82
             $user->setScenario(User::SCENARIO_EMAIL_REGISTER);
83 83
             $this->loadAttributes($user);
84
-            if($user->createUser()){
84
+            if ($user->createUser()) {
85 85
                 return $user;
86 86
             }
87 87
         }
Please login to merge, or discard this patch.
src/web/Response.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
92 92
     public function startBuffering($content)
93 93
     {
94 94
         $this->getHeaders()
95
-            ->set('Surrogate-Control','BigPipe/1.0')
95
+            ->set('Surrogate-Control', 'BigPipe/1.0')
96 96
             ->set('X-Accel-Buffering', 'no');
97 97
         $this->data = $content;
98 98
         $this->send();
Please login to merge, or discard this patch.
src/oauth2/actions/QRCode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         if (empty($code)) {
46 46
             $code = Yii::$app->security->generateRandomString(40);
47 47
         }
48
-        $attributes = Yii::$app->cache->getOrSet([self::CACHE_PREFIX, 'code' => $code], function ($cache) use ($code) {
48
+        $attributes = Yii::$app->cache->getOrSet([self::CACHE_PREFIX, 'code' => $code], function($cache) use ($code) {
49 49
             return [
50 50
                 'code' => $code,
51 51
                 'msg' => Yii::t('yuncms', 'Please use App Scan QR code to login.'),
Please login to merge, or discard this patch.