Remove redundant else
s
This commit is contained in:
parent
e2f177d360
commit
8a1f362e9f
@ -61,12 +61,11 @@ class SiteController extends Controller
|
|||||||
$model = new LoginForm();
|
$model = new LoginForm();
|
||||||
if ($model->load(Yii::$app->request->post()) && $model->login()) {
|
if ($model->load(Yii::$app->request->post()) && $model->login()) {
|
||||||
return $this->goBack();
|
return $this->goBack();
|
||||||
} else {
|
}
|
||||||
return $this->render('login', [
|
return $this->render('login', [
|
||||||
'model' => $model,
|
'model' => $model,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public function actionLogout()
|
public function actionLogout()
|
||||||
{
|
{
|
||||||
@ -82,12 +81,11 @@ class SiteController extends Controller
|
|||||||
Yii::$app->session->setFlash('contactFormSubmitted');
|
Yii::$app->session->setFlash('contactFormSubmitted');
|
||||||
|
|
||||||
return $this->refresh();
|
return $this->refresh();
|
||||||
} else {
|
}
|
||||||
return $this->render('contact', [
|
return $this->render('contact', [
|
||||||
'model' => $model,
|
'model' => $model,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public function actionAbout()
|
public function actionAbout()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user