@@ -49,8 +49,8 @@ |
||
| 49 | 49 | 'redirect_uri', |
| 50 | 50 | [ |
| 51 | 51 | 'label' => Yii::t('yuncms', 'Grant type'), |
| 52 | - 'value' => function ($model) { |
|
| 53 | - if(empty($model->grant_type)){ |
|
| 52 | + 'value' => function($model) { |
|
| 53 | + if (empty($model->grant_type)) { |
|
| 54 | 54 | return Yii::t('yuncms', 'All Type'); |
| 55 | 55 | } |
| 56 | 56 | return $model->grant_type; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | 'columns' => [ |
| 30 | 30 | [ |
| 31 | 31 | 'label' => Yii::t('yuncms', 'App Name'), |
| 32 | - 'value' => function ($model) { |
|
| 32 | + 'value' => function($model) { |
|
| 33 | 33 | return Html::a(Html::encode($model->name), ['/oauth2/client/view', 'id' => $model->client_id]); |
| 34 | 34 | }, |
| 35 | 35 | 'format' => 'html' |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | */ |
| 32 | 32 | public function execute($queue) |
| 33 | 33 | { |
| 34 | - if(self::getVolume()->has($this->path)){ |
|
| 34 | + if (self::getVolume()->has($this->path)) { |
|
| 35 | 35 | self::getVolume()->delete($this->path); |
| 36 | 36 | } |
| 37 | 37 | } |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | <div class="modal-body"> |
| 43 | 43 | <div class="row"> |
| 44 | 44 | <div class="col-sm-12 col-md-8 col-lg-8 col-md-offset-2 col-lg-offset-2"> |
| 45 | - <?= $form->field($model, 'login', ['inputOptions' => ['autofocus' => 'autofocus',]]) ?> |
|
| 45 | + <?= $form->field($model, 'login', ['inputOptions' => ['autofocus' => 'autofocus', ]]) ?> |
|
| 46 | 46 | <?= $form->field($model, 'password')->passwordInput() ?> |
| 47 | 47 | <?= Html::submitButton(Yii::t('yuncms', 'Login'), ['class' => 'btn btn-primary btn-block mt-10']) ?> |
| 48 | 48 | </div> |
@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | use yii\helpers\Url; |
| 3 | 3 | use yuncms\helpers\Html; |
| 4 | - ?> |
|
| 4 | + ?> |
|
| 5 | 5 | <li class="nav-header"> |
| 6 | 6 | <div class="logo-element-main"> |
| 7 | 7 | YUNCMS |
@@ -52,7 +52,7 @@ |
||
| 52 | 52 | public function save() |
| 53 | 53 | { |
| 54 | 54 | if ($this->validate()) { |
| 55 | - if(AvatarHelper::save($this->getUser(), $this->_originalImage)){ |
|
| 55 | + if (AvatarHelper::save($this->getUser(), $this->_originalImage)) { |
|
| 56 | 56 | return true; |
| 57 | 57 | } else { |
| 58 | 58 | return false; |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | $this->fileInputName = md5($this->name); |
| 130 | 130 | if (!array_key_exists('file_param', $this->url)) { |
| 131 | - $this->url['file_param'] = $this->fileInputName;//服务器需要通过这个判断是哪一个input name上传的 |
|
| 131 | + $this->url['file_param'] = $this->fileInputName; //服务器需要通过这个判断是哪一个input name上传的 |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | $this->clientOptions = ArrayHelper::merge($this->clientOptions, [ |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | protected function formatAttachment($attachment) |
| 159 | 159 | { |
| 160 | 160 | if (!empty($attachment) && is_string($attachment)) { |
| 161 | - return ['url' => $attachment, 'path' => $attachment,]; |
|
| 161 | + return ['url' => $attachment, 'path' => $attachment, ]; |
|
| 162 | 162 | } else if (is_array($attachment)) { |
| 163 | 163 | return $attachment; |
| 164 | 164 | } else if ($attachment instanceof Arrayable) |
@@ -161,8 +161,9 @@ |
||
| 161 | 161 | return ['url' => $attachment, 'path' => $attachment,]; |
| 162 | 162 | } else if (is_array($attachment)) { |
| 163 | 163 | return $attachment; |
| 164 | - } else if ($attachment instanceof Arrayable) |
|
| 165 | - return $attachment->toArray(); |
|
| 164 | + } else if ($attachment instanceof Arrayable) { |
|
| 165 | + return $attachment->toArray(); |
|
| 166 | + } |
|
| 166 | 167 | return []; |
| 167 | 168 | } |
| 168 | 169 | |