Remove redundant elses

This commit is contained in:
MaximAL 2015-06-05 17:39:43 +03:00
parent e2f177d360
commit 8a1f362e9f

View File

@ -61,12 +61,11 @@ class SiteController extends Controller
$model = new LoginForm();
if ($model->load(Yii::$app->request->post()) && $model->login()) {
return $this->goBack();
} else {
}
return $this->render('login', [
'model' => $model,
]);
}
}
public function actionLogout()
{
@ -82,12 +81,11 @@ class SiteController extends Controller
Yii::$app->session->setFlash('contactFormSubmitted');
return $this->refresh();
} else {
}
return $this->render('contact', [
'model' => $model,
]);
}
}
public function actionAbout()
{