From 42397df05400435d91c1f689d803651da7588d17 Mon Sep 17 00:00:00 2001 From: Alexander Makarov Date: Mon, 22 Jul 2013 14:36:48 +0400 Subject: [PATCH] fixed code style --- apps/advanced/frontend/widgets/Alert.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/advanced/frontend/widgets/Alert.php b/apps/advanced/frontend/widgets/Alert.php index 7442b3a..0a32ca6 100644 --- a/apps/advanced/frontend/widgets/Alert.php +++ b/apps/advanced/frontend/widgets/Alert.php @@ -20,7 +20,7 @@ use yii\helpers\Html; */ class Alert extends \yii\bootstrap\Alert { - private $doNotRender = false; + private $_doNotRender = false; public function init() { if ($this->body = \Yii::$app->getSession()->getFlash('error')) { @@ -32,7 +32,7 @@ class Alert extends \yii\bootstrap\Alert } elseif ($this->body = \Yii::$app->getSession()->getFlash('warning')) { } else { - $this->doNotRender = true; + $this->_doNotRender = true; return; } @@ -41,7 +41,7 @@ class Alert extends \yii\bootstrap\Alert public function run() { - if (!$this->doNotRender) { + if (!$this->_doNotRender) { parent::run(); } }