From 7cf628f86c51ebbdb2db800b60d14d6b5d74de1d Mon Sep 17 00:00:00 2001 From: LouisGac Date: Mon, 5 Mar 2018 13:27:45 +0100 Subject: [PATCH] Dev: identations --- .../ListSurveysWidget/ListSurveysWidget.php | 22 ++++++------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/application/extensions/admin/survey/ListSurveysWidget/ListSurveysWidget.php b/application/extensions/admin/survey/ListSurveysWidget/ListSurveysWidget.php index 34a6cf6a6c5..093bdb22270 100644 --- a/application/extensions/admin/survey/ListSurveysWidget/ListSurveysWidget.php +++ b/application/extensions/admin/survey/ListSurveysWidget/ListSurveysWidget.php @@ -30,8 +30,7 @@ public function run() { // Search - if (isset($_GET['Survey']['searched_value'])) - { + if (isset($_GET['Survey']['searched_value'])){ $this->model->searched_value = $_GET['Survey']['searched_value']; } @@ -39,21 +38,18 @@ public function run() $this->model->gsid = null; // Filter state - if (isset($_GET['active']) && !empty($_GET['active'])) - { + if (isset($_GET['active']) && !empty($_GET['active'])){ $this->model->active = $_GET['active']; } // Filter survey group - if (isset($_GET['gsid']) && !empty($_GET['gsid'])) - { + if (isset($_GET['gsid']) && !empty($_GET['gsid'])){ $this->model->gsid = $_GET['gsid']; } // Set number of page - if (isset($_GET['pageSize'])) - { + if (isset($_GET['pageSize'])){ Yii::app()->user->setState('pageSize',(int)$_GET['pageSize']); } @@ -63,17 +59,13 @@ public function run() $this->massiveAction = $this->render('massive_actions/_selector', array(), true, false); - if ($this->bRenderFooter) - { + if ($this->bRenderFooter){ $this->template = "{items}\n
$this->massiveAction
{pager}
{summary}
"; - } - else - { + }else{ $this->template = "{items}"; } - if ($this->bRenderSearchBox) - { + if ($this->bRenderSearchBox){ $this->render('searchBox'); }