@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | } |
142 | 142 | public function renderConfigForm(ActiveForm $form) |
143 | 143 | { |
144 | - echo \Yii::$app->view->renderFile(__DIR__.'/cms/_form.php', [ |
|
144 | + echo \Yii::$app->view->renderFile(__DIR__ . '/cms/_form.php', [ |
|
145 | 145 | 'form' => $form, |
146 | 146 | 'model' => $this, |
147 | 147 | ], $this); |
@@ -238,10 +238,10 @@ discard block |
||
238 | 238 | $this->noImageUrl = CmsAsset::getAssetUrl('img/image-not-found.jpg'); |
239 | 239 | } |
240 | 240 | |
241 | - \Yii::$app->view->on(View::EVENT_BEGIN_PAGE, function (Event $e) { |
|
241 | + \Yii::$app->view->on(View::EVENT_BEGIN_PAGE, function(Event $e) { |
|
242 | 242 | if (!\Yii::$app->request->isAjax && !\Yii::$app->request->isPjax) { |
243 | 243 | \Yii::$app->response->getHeaders()->setDefault('X-Powered-CMS', |
244 | - $this->descriptor->name." {$this->descriptor->homepage}"); |
|
244 | + $this->descriptor->name . " {$this->descriptor->homepage}"); |
|
245 | 245 | |
246 | 246 | /** |
247 | 247 | * @var $view View |
@@ -250,7 +250,7 @@ discard block |
||
250 | 250 | if (!isset($view->metaTags[self::$_huck])) { |
251 | 251 | $view->registerMetaTag([ |
252 | 252 | "name" => base64_decode(self::$_huck), |
253 | - "content" => $this->descriptor->name." — {$this->descriptor->homepage}", |
|
253 | + "content" => $this->descriptor->name . " — {$this->descriptor->homepage}", |
|
254 | 254 | ], self::$_huck); |
255 | 255 | } |
256 | 256 | |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | } |
264 | 264 | }); |
265 | 265 | |
266 | - \Yii::$app->user->on(\yii\web\User::EVENT_AFTER_LOGIN, function (UserEvent $e) { |
|
266 | + \Yii::$app->user->on(\yii\web\User::EVENT_AFTER_LOGIN, function(UserEvent $e) { |
|
267 | 267 | $e->identity->logged_at = \Yii::$app->formatter->asTimestamp(time()); |
268 | 268 | $e->identity->save(false); |
269 | 269 | |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | 'fields' => [ |
372 | 372 | 'access' => [ |
373 | 373 | 'class' => HtmlBlock::class, |
374 | - 'content' => function (HtmlBlock $htmlBlock) { |
|
374 | + 'content' => function(HtmlBlock $htmlBlock) { |
|
375 | 375 | $content = \yii\bootstrap\Alert::widget([ |
376 | 376 | 'options' => [ |
377 | 377 | 'class' => 'alert-warning', |