mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
fixed code style
This commit is contained in:
@ -20,7 +20,7 @@ use yii\helpers\Html;
|
|||||||
*/
|
*/
|
||||||
class Alert extends \yii\bootstrap\Alert
|
class Alert extends \yii\bootstrap\Alert
|
||||||
{
|
{
|
||||||
private $doNotRender = false;
|
private $_doNotRender = false;
|
||||||
public function init()
|
public function init()
|
||||||
{
|
{
|
||||||
if ($this->body = \Yii::$app->getSession()->getFlash('error')) {
|
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')) {
|
} elseif ($this->body = \Yii::$app->getSession()->getFlash('warning')) {
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$this->doNotRender = true;
|
$this->_doNotRender = true;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -41,7 +41,7 @@ class Alert extends \yii\bootstrap\Alert
|
|||||||
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
if (!$this->doNotRender) {
|
if (!$this->_doNotRender) {
|
||||||
parent::run();
|
parent::run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user