@@ -54,7 +54,7 @@ |
||
| 54 | 54 | </li> |
| 55 | 55 | </ul> |
| 56 | 56 | |
| 57 | -<?php if ((int)$configs['guestAdd'] === 1 || \App::$User->isAuth()): ?> |
|
| 57 | +<?php if ((int) $configs['guestAdd'] === 1 || \App::$User->isAuth()): ?> |
|
| 58 | 58 | <!-- comment form --> |
| 59 | 59 | <form name="comment-add-form" action="" method="post" style="padding-top: 15px;" class="form-horizontal"> |
| 60 | 60 | <input type="hidden" name="replay-to" value="0" /> |
@@ -32,8 +32,8 @@ |
||
| 32 | 32 | foreach ($records as $item) { |
| 33 | 33 | $message = Str::sub(\App::$Security->strip_tags($item->message), 0, 50); |
| 34 | 34 | $author = Simplify::parseUserNick($item->user_id, $item->guest_name); |
| 35 | - if ((int)$item->user_id > 0) { |
|
| 36 | - $author = Url::link(['user/update', (int)$item->user_id], $author); |
|
| 35 | + if ((int) $item->user_id > 0) { |
|
| 36 | + $author = Url::link(['user/update', (int) $item->user_id], $author); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | |
@@ -38,7 +38,7 @@ discard block |
||
| 38 | 38 | public function actionIndex() |
| 39 | 39 | { |
| 40 | 40 | // set current page and offset |
| 41 | - $page = (int)App::$Request->query->get('page'); |
|
| 41 | + $page = (int) App::$Request->query->get('page'); |
|
| 42 | 42 | $offset = $page * self::ITEM_PER_PAGE; |
| 43 | 43 | |
| 44 | 44 | // initialize active record model |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | public function actionDelete($type, $id = 0) |
| 134 | 134 | { |
| 135 | 135 | // sounds like a multiply delete definition |
| 136 | - if ($id === 0 || (int)$id < 1) { |
|
| 136 | + if ($id === 0 || (int) $id < 1) { |
|
| 137 | 137 | $ids = App::$Request->query->get('selectRemove'); |
| 138 | 138 | if (Obj::isArray($ids) && Arr::onlyNumericValues($ids)) { |
| 139 | 139 | $id = $ids; |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | public function actionAnswerlist() |
| 184 | 184 | { |
| 185 | 185 | // set current page and offset |
| 186 | - $page = (int)App::$Request->query->get('page'); |
|
| 186 | + $page = (int) App::$Request->query->get('page'); |
|
| 187 | 187 | $offset = $page * self::ITEM_PER_PAGE; |
| 188 | 188 | |
| 189 | 189 | // initialize ar answers model |