@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php return [ |
| 2 | - 'instances' => [ |
|
| 3 | - 'Apps\Controller\Front\Content::buildSitemapSchedule' => 10800, |
|
| 4 | - 'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800, |
|
| 5 | - 'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400 |
|
| 6 | - ] |
|
| 2 | + 'instances' => [ |
|
| 3 | + 'Apps\Controller\Front\Content::buildSitemapSchedule' => 10800, |
|
| 4 | + 'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800, |
|
| 5 | + 'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400 |
|
| 6 | + ] |
|
| 7 | 7 | ]; |
| 8 | 8 | \ No newline at end of file |
@@ -1,41 +1,41 @@ |
||
| 1 | 1 | <?php return [ |
| 2 | - 'baseProto' => 'http', |
|
| 3 | - 'baseDomain' => 'ffcms.app', |
|
| 4 | - 'basePath' => '/', |
|
| 5 | - 'passwordSalt' => '$2a$07$2NJgci5A7NI9m2J9Ii92a1I3DiH6$', |
|
| 6 | - 'timezone' => 'Europe/Moscow', |
|
| 7 | - 'adminEmail' => '[email protected]', |
|
| 8 | - 'debug' => [ |
|
| 9 | - 'all' => false, |
|
| 10 | - 'cookie' => [ |
|
| 11 | - 'key' => 'fdebug_jepP2', |
|
| 12 | - 'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA' |
|
| 13 | - ] |
|
| 14 | - ], |
|
| 15 | - 'userCron' => false, |
|
| 16 | - 'theme' => [ |
|
| 17 | - 'Front' => 'default', |
|
| 18 | - 'Admin' => 'default' |
|
| 19 | - ], |
|
| 20 | - 'database' => [ |
|
| 21 | - 'driver' => 'mysql', |
|
| 22 | - 'host' => '127.0.0.1', |
|
| 23 | - 'username' => 'mysql', |
|
| 24 | - 'password' => 'mysql', |
|
| 25 | - 'database' => 'ffcms', |
|
| 26 | - 'prefix' => 'ffcms_', |
|
| 27 | - 'charset' => 'utf8', |
|
| 28 | - 'collation' => 'utf8_unicode_ci' |
|
| 29 | - ], |
|
| 30 | - 'baseLanguage' => 'en', |
|
| 31 | - 'multiLanguage' => true, |
|
| 32 | - 'singleLanguage' => 'en', |
|
| 33 | - 'languages' => [ |
|
| 34 | - 'en', |
|
| 35 | - 'ru' |
|
| 36 | - ], |
|
| 37 | - 'languageDomainAlias' => false, |
|
| 38 | - 'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com', |
|
| 39 | - 'gaTrackId' => false, |
|
| 40 | - 'trustedProxy' => false |
|
| 2 | + 'baseProto' => 'http', |
|
| 3 | + 'baseDomain' => 'ffcms.app', |
|
| 4 | + 'basePath' => '/', |
|
| 5 | + 'passwordSalt' => '$2a$07$2NJgci5A7NI9m2J9Ii92a1I3DiH6$', |
|
| 6 | + 'timezone' => 'Europe/Moscow', |
|
| 7 | + 'adminEmail' => '[email protected]', |
|
| 8 | + 'debug' => [ |
|
| 9 | + 'all' => false, |
|
| 10 | + 'cookie' => [ |
|
| 11 | + 'key' => 'fdebug_jepP2', |
|
| 12 | + 'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA' |
|
| 13 | + ] |
|
| 14 | + ], |
|
| 15 | + 'userCron' => false, |
|
| 16 | + 'theme' => [ |
|
| 17 | + 'Front' => 'default', |
|
| 18 | + 'Admin' => 'default' |
|
| 19 | + ], |
|
| 20 | + 'database' => [ |
|
| 21 | + 'driver' => 'mysql', |
|
| 22 | + 'host' => '127.0.0.1', |
|
| 23 | + 'username' => 'mysql', |
|
| 24 | + 'password' => 'mysql', |
|
| 25 | + 'database' => 'ffcms', |
|
| 26 | + 'prefix' => 'ffcms_', |
|
| 27 | + 'charset' => 'utf8', |
|
| 28 | + 'collation' => 'utf8_unicode_ci' |
|
| 29 | + ], |
|
| 30 | + 'baseLanguage' => 'en', |
|
| 31 | + 'multiLanguage' => true, |
|
| 32 | + 'singleLanguage' => 'en', |
|
| 33 | + 'languages' => [ |
|
| 34 | + 'en', |
|
| 35 | + 'ru' |
|
| 36 | + ], |
|
| 37 | + 'languageDomainAlias' => false, |
|
| 38 | + 'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com', |
|
| 39 | + 'gaTrackId' => false, |
|
| 40 | + 'trustedProxy' => false |
|
| 41 | 41 | ]; |
| 42 | 42 | \ No newline at end of file |
@@ -28,38 +28,38 @@ discard block |
||
| 28 | 28 | <div class="panel panel-info"> |
| 29 | 29 | <div class="panel-heading"> |
| 30 | 30 | <?php |
| 31 | - if ((int)$record->readed !== 1) { |
|
| 31 | + if ((int) $record->readed !== 1) { |
|
| 32 | 32 | echo '<i class="fa fa-bell"></i> '; |
| 33 | 33 | } |
| 34 | 34 | ?> |
| 35 | 35 | <?= __('Message sent') ?>: <?= Date::convertToDatetime($record->created_at, Date::FORMAT_TO_HOUR) ?>. |
| 36 | 36 | <?php |
| 37 | - if ((int)$record->closed !== 1) { |
|
| 38 | - echo '<span class="label label-success">' . __('Opened') . '</span>'; |
|
| 37 | + if ((int) $record->closed !== 1) { |
|
| 38 | + echo '<span class="label label-success">'.__('Opened').'</span>'; |
|
| 39 | 39 | } else { |
| 40 | - echo '<span class="label label-danger">' . __('Closed') . '</span>'; |
|
| 40 | + echo '<span class="label label-danger">'.__('Closed').'</span>'; |
|
| 41 | 41 | } |
| 42 | 42 | ?> |
| 43 | 43 | </div> |
| 44 | 44 | <div class="panel-body"> |
| 45 | 45 | <?php |
| 46 | - if ((int)$record->closed !== 0) { |
|
| 47 | - echo '<p class="alert alert-warning">' . __('The feedback request is closed! Thread in only-read mode') . '.</p>'; |
|
| 46 | + if ((int) $record->closed !== 0) { |
|
| 47 | + echo '<p class="alert alert-warning">'.__('The feedback request is closed! Thread in only-read mode').'.</p>'; |
|
| 48 | 48 | } |
| 49 | 49 | ?> |
| 50 | 50 | <p><?= Str::replace("\n", "<br />", $record->message) ?></p> |
| 51 | 51 | <hr /> |
| 52 | 52 | <?php |
| 53 | 53 | // show "mark as read" button if message is not readed |
| 54 | - if ((int)$record->readed !== 1) { |
|
| 55 | - echo Url::link(['feedback/turn', 'read', $record->id], __('Mark as read'), ['class' => 'label label-success']) . ' '; |
|
| 54 | + if ((int) $record->readed !== 1) { |
|
| 55 | + echo Url::link(['feedback/turn', 'read', $record->id], __('Mark as read'), ['class' => 'label label-success']).' '; |
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | 58 | // show close/open button depend of current status |
| 59 | - if ((int)$record->closed === 0) { |
|
| 60 | - echo Url::link(['feedback/turn', 'close', $record->id], __('Close'), ['class' => 'label label-warning']) . ' '; |
|
| 59 | + if ((int) $record->closed === 0) { |
|
| 60 | + echo Url::link(['feedback/turn', 'close', $record->id], __('Close'), ['class' => 'label label-warning']).' '; |
|
| 61 | 61 | } else { |
| 62 | - echo Url::link(['feedback/turn', 'open', $record->id], __('Open'), ['class' => 'label label-info']) . ' '; |
|
| 62 | + echo Url::link(['feedback/turn', 'open', $record->id], __('Open'), ['class' => 'label label-info']).' '; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | ?> |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | <div class="panel-body"> |
| 77 | 77 | <?php |
| 78 | 78 | $uInfo = 'no'; |
| 79 | - if ((int)$record->user_id > 0) { |
|
| 79 | + if ((int) $record->user_id > 0) { |
|
| 80 | 80 | $user = \App::$User->identity($record->user_id); |
| 81 | 81 | if ($user !== null && $user->getId() > 0) { |
| 82 | 82 | $uInfo = Url::link(['user/update', $user->getId()], $user->getProfile()->getNickname()); |
@@ -101,9 +101,9 @@ discard block |
||
| 101 | 101 | |
| 102 | 102 | <?php if ($record->getAnswers()->count() > 0): ?> |
| 103 | 103 | <?php foreach ($record->getAnswers()->get() as $answer): ?> |
| 104 | - <div class="panel <?= (int)$answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
| 104 | + <div class="panel <?= (int) $answer->is_admin === 1 ? 'panel-success' : 'panel-default' ?>"> |
|
| 105 | 105 | <div class="panel-heading"> |
| 106 | - <?= __('From') ?>: <?= $answer->name . '(' . $answer->email . ')' . ((int)$answer->user_id > 0 ? Url::link(['user/update', $answer->user_id], '[id' . $answer->user_id . ']') : null) ?>, |
|
| 106 | + <?= __('From') ?>: <?= $answer->name.'('.$answer->email.')'.((int) $answer->user_id > 0 ? Url::link(['user/update', $answer->user_id], '[id'.$answer->user_id.']') : null) ?>, |
|
| 107 | 107 | <?= Date::convertToDatetime($answer->created_at, Date::FORMAT_TO_HOUR) ?> |
| 108 | 108 | <span class="pull-right"> |
| 109 | 109 | <?= Url::link(['feedback/update', 'answer', $answer->id], __('Edit'), ['class' => 'label label-primary']) ?> |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | <?php |
| 58 | 58 | $form = new Form($model, ['class' => 'form-horizontal', 'method' => 'post', 'action' => '']); |
| 59 | 59 | echo $form->start(); |
| 60 | - echo $form->submitButton(__('Delete'), ['class' => 'btn btn-danger']) . " "; |
|
| 60 | + echo $form->submitButton(__('Delete'), ['class' => 'btn btn-danger'])." "; |
|
| 61 | 61 | echo Url::link(['user/index'], __('Cancel'), ['class' => 'btn btn-default']); |
| 62 | 62 | echo $form->finish(); |
| 63 | 63 | ?> |
| 64 | 64 | \ No newline at end of file |
@@ -41,18 +41,18 @@ discard block |
||
| 41 | 41 | { |
| 42 | 42 | // get configs |
| 43 | 43 | $configs = $this->getConfigs(); |
| 44 | - if (!App::$User->isAuth() && (int)$configs['guestAdd'] !== 1) { |
|
| 44 | + if (!App::$User->isAuth() && (int) $configs['guestAdd'] !== 1) { |
|
| 45 | 45 | throw new ForbiddenException(__('Feedback available only for authorized users')); |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | // initialize model |
| 49 | - $model = new FormFeedbackAdd((int)$configs['useCaptcha'] === 1); |
|
| 49 | + $model = new FormFeedbackAdd((int) $configs['useCaptcha'] === 1); |
|
| 50 | 50 | if ($model->send()) { |
| 51 | 51 | if ($model->validate()) { |
| 52 | 52 | // if validation is passed save data to db and get row |
| 53 | 53 | $record = $model->make(); |
| 54 | 54 | App::$Session->getFlashBag()->add('success', __('Your message was added successful')); |
| 55 | - $this->response->redirect('feedback/read/' . $record->id . '/' . $record->hash); |
|
| 55 | + $this->response->redirect('feedback/read/'.$record->id.'/'.$record->hash); |
|
| 56 | 56 | } else { |
| 57 | 57 | App::$Session->getFlashBag()->add('error', __('Message is not sended! Please, fix issues in form below')); |
| 58 | 58 | } |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | // render output view |
| 62 | 62 | return $this->view->render('create', [ |
| 63 | 63 | 'model' => $model->filter(), |
| 64 | - 'useCaptcha' => (int)$configs['useCaptcha'] === 1 |
|
| 64 | + 'useCaptcha' => (int) $configs['useCaptcha'] === 1 |
|
| 65 | 65 | ]); |
| 66 | 66 | } |
| 67 | 67 | |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | $userId = App::$User->isAuth() ? App::$User->identity()->getId() : 0; |
| 94 | 94 | $model = null; |
| 95 | 95 | // check if feedback post is not closed for answers |
| 96 | - if ((int)$recordPost->closed === 0) { |
|
| 96 | + if ((int) $recordPost->closed === 0) { |
|
| 97 | 97 | // init new answer add model |
| 98 | 98 | $model = new FormAnswerAdd($recordPost, $userId); |
| 99 | 99 | // if answer is sender lets try to make it model |
@@ -138,10 +138,10 @@ discard block |
||
| 138 | 138 | // check if action is submited |
| 139 | 139 | if ($this->request->request->get('closeRequest', false)) { |
| 140 | 140 | // if created by authorized user |
| 141 | - if ((int)$record->user_id !== 0) { |
|
| 141 | + if ((int) $record->user_id !== 0) { |
|
| 142 | 142 | $user = App::$User->identity(); |
| 143 | 143 | // button is pressed not by request creator |
| 144 | - if ($user === null || $user->getId() !== (int)$record->user_id) { |
|
| 144 | + if ($user === null || $user->getId() !== (int) $record->user_id) { |
|
| 145 | 145 | throw new ForbiddenException(__('This feedback request was created by another user')); |
| 146 | 146 | } |
| 147 | 147 | } |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | |
| 153 | 153 | // add notification and redirect |
| 154 | 154 | App::$Session->getFlashBag()->add('warning', __('Feedback request now is closed!')); |
| 155 | - $this->response->redirect('feedback/read/' . $id . '/' . $hash); |
|
| 155 | + $this->response->redirect('feedback/read/'.$id.'/'.$hash); |
|
| 156 | 156 | } |
| 157 | 157 | |
| 158 | 158 | return $this->view->render('close'); |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | public function actionList() |
| 169 | 169 | { |
| 170 | 170 | // set current page and offset |
| 171 | - $page = (int)$this->request->query->get('page'); |
|
| 171 | + $page = (int) $this->request->query->get('page'); |
|
| 172 | 172 | $offset = $page * self::ITEM_PER_PAGE; |
| 173 | 173 | |
| 174 | 174 | // check if user is authorized or throw exception |
@@ -25,14 +25,14 @@ |
||
| 25 | 25 | public function actionIndex() |
| 26 | 26 | { |
| 27 | 27 | // get search query value from GET headers |
| 28 | - $query = (string)$this->request->query->get('query', null); |
|
| 28 | + $query = (string) $this->request->query->get('query', null); |
|
| 29 | 29 | // strip html tags |
| 30 | 30 | $query = App::$Security->strip_tags($query); |
| 31 | 31 | // get configs |
| 32 | 32 | $configs = $this->getConfigs(); |
| 33 | 33 | |
| 34 | 34 | // check search query length |
| 35 | - if (Str::likeEmpty($query) || Str::length($query) < (int)$configs['minLength']) { |
|
| 35 | + if (Str::likeEmpty($query) || Str::length($query) < (int) $configs['minLength']) { |
|
| 36 | 36 | throw new NotFoundException(__('Search query is too short!')); |
| 37 | 37 | } |
| 38 | 38 | |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | $this->setJsonHeader(); |
| 33 | 33 | $configs = AppRecord::getConfigs('widget', 'Comments'); |
| 34 | 34 | |
| 35 | - $replayTo = (int)$this->request->request->get('replay-to'); |
|
| 35 | + $replayTo = (int) $this->request->request->get('replay-to'); |
|
| 36 | 36 | $model = null; |
| 37 | 37 | // check if its a answer (comment answer type) |
| 38 | 38 | if ($replayTo > 0) { |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | // pass general comment params to model |
| 47 | - $model->message = App::$Security->secureHtml((string)$this->request->request->get('message')); |
|
| 47 | + $model->message = App::$Security->secureHtml((string) $this->request->request->get('message')); |
|
| 48 | 48 | $model->guestName = App::$Security->strip_tags($this->request->request->get('guest-name')); |
| 49 | 49 | |
| 50 | 50 | // check model conditions before add new row |
@@ -76,12 +76,12 @@ discard block |
||
| 76 | 76 | // get configs |
| 77 | 77 | $configs = AppRecord::getConfigs('widget', 'Comments'); |
| 78 | 78 | // items per page |
| 79 | - $perPage = (int)$configs['perPage']; |
|
| 79 | + $perPage = (int) $configs['perPage']; |
|
| 80 | 80 | // offset can be only integer |
| 81 | - $index = (int)$index; |
|
| 81 | + $index = (int) $index; |
|
| 82 | 82 | $offset = $perPage * $index; |
| 83 | 83 | // get comment target path and check |
| 84 | - $path = (string)$this->request->query->get('path'); |
|
| 84 | + $path = (string) $this->request->query->get('path'); |
|
| 85 | 85 | if (Str::likeEmpty($path)) { |
| 86 | 86 | throw new NotFoundException('Wrong path'); |
| 87 | 87 | } |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | ->where('moderate', '=', 0); |
| 92 | 92 | |
| 93 | 93 | // check if comments is depend of language locale |
| 94 | - if ((int)$configs['onlyLocale'] === 1) { |
|
| 94 | + if ((int) $configs['onlyLocale'] === 1) { |
|
| 95 | 95 | $query = $query->where('lang', '=', $this->request->getLanguage()); |
| 96 | 96 | } |
| 97 | 97 | |
@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | { |
| 142 | 142 | $this->setJsonHeader(); |
| 143 | 143 | // check input data |
| 144 | - if (!Obj::isLikeInt($commentId) || (int)$commentId < 1) { |
|
| 144 | + if (!Obj::isLikeInt($commentId) || (int) $commentId < 1) { |
|
| 145 | 145 | throw new ForbiddenException('Input data is incorrect'); |
| 146 | 146 | } |
| 147 | 147 | |
@@ -151,7 +151,7 @@ discard block |
||
| 151 | 151 | // get data from db by comment id |
| 152 | 152 | $records = CommentAnswer::where('comment_id', '=', $commentId) |
| 153 | 153 | ->where('moderate', '=', 0); |
| 154 | - if ((int)$configs['onlyLocale'] === 1) { |
|
| 154 | + if ((int) $configs['onlyLocale'] === 1) { |
|
| 155 | 155 | $records = $records->where('lang', '=', $this->request->getLanguage()); |
| 156 | 156 | } |
| 157 | 157 | |
@@ -195,11 +195,11 @@ discard block |
||
| 195 | 195 | foreach ($path as $id => $uri) { |
| 196 | 196 | $query = CommentPost::where('pathway', '=', $uri)->where('moderate', '=', 0); |
| 197 | 197 | // check if comments is depend of language locale |
| 198 | - if ((int)$configs['onlyLocale'] === 1) { |
|
| 198 | + if ((int) $configs['onlyLocale'] === 1) { |
|
| 199 | 199 | $query = $query->where('lang', '=', $this->request->getLanguage()); |
| 200 | 200 | } |
| 201 | 201 | // set itemId => count |
| 202 | - $count[(int)$id] = $query->count(); |
|
| 202 | + $count[(int) $id] = $query->count(); |
|
| 203 | 203 | } |
| 204 | 204 | // render json response |
| 205 | 205 | return json_encode(['status' => 1, 'count' => $count]); |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | public function actionIndex() |
| 34 | 34 | { |
| 35 | 35 | // set current page and offset |
| 36 | - $page = (int)$this->request->query->get('page'); |
|
| 36 | + $page = (int) $this->request->query->get('page'); |
|
| 37 | 37 | $offset = $page * self::ITEM_PER_PAGE; |
| 38 | 38 | |
| 39 | 39 | // get feedback posts AR table |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | // initialize model with answer add if thread is not closed |
| 77 | 77 | $model = null; |
| 78 | - if ((int)$record->closed !== 1) { |
|
| 78 | + if ((int) $record->closed !== 1) { |
|
| 79 | 79 | $model = new FormAnswerAdd($record, App::$User->identity()->getId()); |
| 80 | 80 | if ($model->send()) { |
| 81 | 81 | if ($model->validate()) { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | case 'answer': |
| 116 | 116 | $record = FeedbackAnswer::find($id); |
| 117 | 117 | if ($record !== null && $record !== false) { |
| 118 | - $postId = (int)$record->getFeedbackPost()->id; |
|
| 118 | + $postId = (int) $record->getFeedbackPost()->id; |
|
| 119 | 119 | } |
| 120 | 120 | break; |
| 121 | 121 | } |
@@ -131,7 +131,7 @@ discard block |
||
| 131 | 131 | if ($model->validate()) { |
| 132 | 132 | $model->make(); |
| 133 | 133 | App::$Session->getFlashBag()->add('success', __('Feedback item are successful changed')); |
| 134 | - $this->response->redirect('feedback/read/' . $postId); |
|
| 134 | + $this->response->redirect('feedback/read/'.$postId); |
|
| 135 | 135 | } else { |
| 136 | 136 | App::$Session->getFlashBag()->add('danger', __('Updating is failed')); |
| 137 | 137 | } |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | App::$Session->getFlashBag()->add('success', __('Feedback request is changed!')); |
| 182 | 182 | |
| 183 | 183 | // redirect to feedback post read |
| 184 | - $this->response->redirect('feedback/read/' . $id); |
|
| 184 | + $this->response->redirect('feedback/read/'.$id); |
|
| 185 | 185 | return null; |
| 186 | 186 | } |
| 187 | 187 | |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | // its a answer, lets remove it and redirect back in post |
| 227 | 227 | $postId = $record->feedback_id; |
| 228 | 228 | $record->delete(); |
| 229 | - $this->response->redirect('feedback/read/' . $postId); |
|
| 229 | + $this->response->redirect('feedback/read/'.$postId); |
|
| 230 | 230 | } |
| 231 | 231 | } |
| 232 | 232 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $query = new UserRecords(); |
| 41 | 41 | |
| 42 | 42 | // set current page and offset |
| 43 | - $page = (int)$this->request->query->get('page', 0); |
|
| 43 | + $page = (int) $this->request->query->get('page', 0); |
|
| 44 | 44 | $offset = $page * self::ITEM_PER_PAGE; |
| 45 | 45 | |
| 46 | 46 | // build pagination |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | public function actionDelete($id = null) |
| 105 | 105 | { |
| 106 | 106 | // check if id is passed or get data from GET as array ids |
| 107 | - if ($id === 0 || (int)$id < 1) { |
|
| 107 | + if ($id === 0 || (int) $id < 1) { |
|
| 108 | 108 | $ids = $this->request->query->get('selected'); |
| 109 | 109 | if (Obj::isArray($ids) && Arr::onlyNumericValues($ids)) { |
| 110 | 110 | $id = $ids; |