Skip to content

Commit f0de59c

Browse files
author
igor-chepurnoi
committed
cs-fix
1 parent 538b331 commit f0de59c

File tree

12 files changed

+38
-37
lines changed

12 files changed

+38
-37
lines changed

.php_cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $config = PhpCsFixer\Config::create()
2727
'phpdoc_add_missing_param_annotation' => true,
2828
'array_syntax' => ['syntax' => 'short'],
2929
'visibility_required' => true,
30+
'yoda_style' => false,
3031
])
3132
->setFinder($finder);
3233

mail/layouts/html.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,18 @@
66
/* @var $content string */
77

88
?>
9-
<?php $this->beginPage() ?>
9+
<?php $this->beginPage(); ?>
1010
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1111
<html xmlns="http://www.w3.org/1999/xhtml">
1212
<head>
13-
<meta http-equiv="Content-Type" content="text/html; charset=<?= Yii::$app->charset ?>" />
14-
<title><?= Html::encode($this->title) ?></title>
15-
<?php $this->head() ?>
13+
<meta http-equiv="Content-Type" content="text/html; charset=<?= Yii::$app->charset; ?>" />
14+
<title><?= Html::encode($this->title); ?></title>
15+
<?php $this->head(); ?>
1616
</head>
1717
<body>
18-
<?php $this->beginBody() ?>
19-
<?= $content ?>
20-
<?php $this->endBody() ?>
18+
<?php $this->beginBody(); ?>
19+
<?= $content; ?>
20+
<?php $this->endBody(); ?>
2121
</body>
2222
</html>
23-
<?php $this->endPage() ?>
23+
<?php $this->endPage(); ?>

mail/passwordResetToken.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
$resetLink = Yii::$app->urlManager->createAbsoluteUrl(['site/password-reset', 'token' => $user->password_reset_token]);
99
?>
1010

11-
Hello <?php echo Html::encode($user->username) ?>,
11+
Hello <?php echo Html::encode($user->username); ?>,
1212

1313
Follow the link below to reset your password:
1414

15-
<?php echo Html::a(Html::encode($resetLink), $resetLink) ?>
15+
<?php echo Html::a(Html::encode($resetLink), $resetLink); ?>

modules/admin/views/layouts/column2.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313

1414
AdminAsset::register($this);
1515
?>
16-
<?php $this->beginPage() ?>
16+
<?php $this->beginPage(); ?>
1717
<!DOCTYPE html>
18-
<html lang="<?php echo Yii::$app->language ?>">
18+
<html lang="<?php echo Yii::$app->language; ?>">
1919
<head>
2020
<?php $this->registerMetaTag(['charset' => Yii::$app->charset]); ?>
2121
<?php $this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1']); ?>
22-
<?php echo Html::csrfMetaTags() ?>
22+
<?php echo Html::csrfMetaTags(); ?>
2323
<title><?php echo implode(' | ', array_filter([Html::encode($this->title), Yii::$app->name])); ?></title>
24-
<?php $this->head() ?>
24+
<?php $this->head(); ?>
2525
</head>
2626
<body>
27-
<?php $this->beginBody() ?>
27+
<?php $this->beginBody(); ?>
2828
<?php echo BootstrapNotify::widget(); ?>
2929
<div class="wrap">
3030
<?php NavBar::begin([
@@ -88,7 +88,7 @@
8888
<div class="container">
8989
<?php echo Breadcrumbs::widget([
9090
'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
91-
]) ?>
91+
]); ?>
9292
<div class="row">
9393
<?php if (isset($this->params['sidebar'])): ?>
9494
<div class="col-lg-2">
@@ -109,7 +109,7 @@
109109
</div>
110110
</div>
111111

112-
<?php $this->endBody() ?>
112+
<?php $this->endBody(); ?>
113113
</body>
114114
</html>
115-
<?php $this->endPage() ?>
115+
<?php $this->endPage(); ?>

modules/admin/views/user/_form.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
<div class="row">
1717
<div class="col-md-6">
18-
<?php echo $form->field($model, 'username')->textInput(['maxlength' => 255]) ?>
18+
<?php echo $form->field($model, 'username')->textInput(['maxlength' => 255]); ?>
1919

20-
<?php echo $form->field($model, 'email')->textInput(['maxlength' => 255]) ?>
20+
<?php echo $form->field($model, 'email')->textInput(['maxlength' => 255]); ?>
2121

2222
<?php echo $form->field($model, 'status')->dropDownList(UserStatus::listData()); ?>
2323

@@ -26,7 +26,7 @@
2626
</div>
2727

2828
<div class="form-group">
29-
<?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
29+
<?php echo Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']); ?>
3030
</div>
3131

3232
<?php ActiveForm::end(); ?>

modules/admin/views/user/create.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
?>
1212
<div class="user-create">
1313

14-
<h1><?php echo Html::encode($this->title) ?></h1>
14+
<h1><?php echo Html::encode($this->title); ?></h1>
1515

1616
<?php echo $this->render('_form', [
1717
'model' => $model,
18-
]) ?>
18+
]); ?>
1919

2020
</div>

modules/admin/views/user/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
?>
1616
<div class="user-index">
1717

18-
<h1><?php echo Html::encode($this->title) ?></h1>
18+
<h1><?php echo Html::encode($this->title); ?></h1>
1919

2020
<p>
21-
<?php echo Html::a(Yii::t('app', 'Create User'), ['create'], ['class' => 'btn btn-success']) ?>
21+
<?php echo Html::a(Yii::t('app', 'Create User'), ['create'], ['class' => 'btn btn-success']); ?>
2222
</p>
2323
<?php Pjax::begin(['timeout' => 10000]); ?>
2424
<?php echo GridView::widget([

modules/admin/views/user/update.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
?>
1212
<div class="user-update">
1313

14-
<h1><?php echo Html::encode($this->title) ?></h1>
14+
<h1><?php echo Html::encode($this->title); ?></h1>
1515

1616
<?php echo $this->render('_form', [
1717
'model' => $model,
18-
]) ?>
18+
]); ?>
1919

2020
</div>

views/layouts/main.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313

1414
AppAsset::register($this);
1515
?>
16-
<?php $this->beginPage() ?>
16+
<?php $this->beginPage(); ?>
1717
<!DOCTYPE html>
1818
<html lang="<?php echo Yii::$app->language; ?>">
1919
<head>
2020
<?php $this->registerMetaTag(['charset' => Yii::$app->charset]); ?>
2121
<?php $this->registerMetaTag(['name' => 'viewport', 'content' => 'width=device-width, initial-scale=1']); ?>
2222
<?php echo Html::csrfMetaTags(); ?>
2323
<title><?php echo implode(' | ', array_filter([Html::encode($this->title), Yii::$app->name])); ?></title>
24-
<?php $this->head() ?>
24+
<?php $this->head(); ?>
2525
</head>
2626
<body>
27-
<?php $this->beginBody() ?>
27+
<?php $this->beginBody(); ?>
2828
<?php echo BootstrapNotify::widget(); ?>
2929
<div class="wrap">
3030
<?php NavBar::begin([
@@ -81,7 +81,7 @@
8181
</div>
8282
</footer>
8383

84-
<?php $this->endBody() ?>
84+
<?php $this->endBody(); ?>
8585
</body>
8686
</html>
87-
<?php $this->endPage() ?>
87+
<?php $this->endPage(); ?>

views/site/account.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
<?php echo $form->field($resetPasswordForm, 'password')->passwordInput(); ?>
2222
<?php echo $form->field($resetPasswordForm, 'confirmPassword')->passwordInput(); ?>
2323
<div class="form-group">
24-
<?php echo Html::resetButton(Yii::t('app', 'Cancel'), ['class' => 'btn btn-default']) ?>
25-
<?php echo Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']) ?>
24+
<?php echo Html::resetButton(Yii::t('app', 'Cancel'), ['class' => 'btn btn-default']); ?>
25+
<?php echo Html::submitButton(Yii::t('app', 'Save'), ['class' => 'btn btn-success']); ?>
2626
</div>
2727
<?php ActiveForm::end(); ?>
2828
</div>

views/site/contact.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
$this->params['breadcrumbs'][] = $this->title;
1313
?>
1414
<div class="site-contact">
15-
<h1><?php echo Html::encode($this->title) ?></h1>
15+
<h1><?php echo Html::encode($this->title); ?></h1>
1616
<p>
1717
<?php echo Yii::t('contact', 'If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.'); ?>
1818
</p>

views/site/error.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
?>
1212
<div class="site-error">
1313

14-
<h1><?= Html::encode($this->title) ?></h1>
14+
<h1><?= Html::encode($this->title); ?></h1>
1515

1616
<div class="alert alert-danger">
17-
<?= nl2br(Html::encode($message)) ?>
17+
<?= nl2br(Html::encode($message)); ?>
1818
</div>
1919

2020
<p>

0 commit comments

Comments
 (0)