@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @var array |
40 | 40 | */ |
41 | - private $_errors = []; |
|
41 | + private $_errors = [ ]; |
|
42 | 42 | |
43 | 43 | |
44 | 44 | /** |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | public function getDataProvider() |
85 | 85 | { |
86 | - $query = NewsletterClient::find()->orderBy(['created_at' => SORT_ASC]); |
|
86 | + $query = NewsletterClient::find()->orderBy([ 'created_at' => SORT_ASC ]); |
|
87 | 87 | |
88 | 88 | return new ActiveDataProvider([ |
89 | 89 | 'query' => $query, |
@@ -21,12 +21,12 @@ |
||
21 | 21 | \yii\bootstrap\BootstrapAsset::register($this); |
22 | 22 | |
23 | 23 | $form = ActiveForm::begin([ |
24 | - 'action' => ['/newsletter/default/subscribe'], |
|
25 | - 'options' => ['class' => 'form-inline'], |
|
24 | + 'action' => [ '/newsletter/default/subscribe' ], |
|
25 | + 'options' => [ 'class' => 'form-inline' ], |
|
26 | 26 | ]); |
27 | 27 | |
28 | 28 | echo $form->field($model, 'contacts') |
29 | - ->textInput(['placeholder' => $model->getAttributeLabel('contacts')]) |
|
29 | + ->textInput([ 'placeholder' => $model->getAttributeLabel('contacts') ]) |
|
30 | 30 | ->label(false); |
31 | 31 | |
32 | 32 | echo Html::submitButton(Yii::t('front/newsletter', 'Subscribe'), [ |