@@ -57,7 +57,7 @@ |
||
| 57 | 57 | $wallModel = new FormWallPostDelete($wallPost); |
| 58 | 58 | if ($wallModel->send() && $wallModel->validate()) { |
| 59 | 59 | $wallModel->make(); |
| 60 | - $this->response->redirect('profile/show/' . $wallPost->target_id); |
|
| 60 | + $this->response->redirect('profile/show/'.$wallPost->target_id); |
|
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | return $this->view->render('wall_delete', [ |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | public function show($userId) |
| 32 | 32 | { |
| 33 | 33 | $cfg = $this->application->configs; |
| 34 | - if (!(bool)$cfg['guestView'] && !App::$User->isAuth()) { |
|
| 34 | + if (!(bool) $cfg['guestView'] && !App::$User->isAuth()) { |
|
| 35 | 35 | throw new ForbiddenException(__('You must login to view other profile')); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | App::$Session->getFlashBag()->add('error', __('This user are in your black list or you are in blacklist!')); |
| 55 | 55 | } else { |
| 56 | 56 | // check if message added |
| 57 | - if ($wallModel->makePost($targetPersone, $viewerPersone, (int)$cfg['delayBetweenPost'])) { |
|
| 57 | + if ($wallModel->makePost($targetPersone, $viewerPersone, (int) $cfg['delayBetweenPost'])) { |
|
| 58 | 58 | App::$Session->getFlashBag()->add('success', __('The message was successful posted!')); |
| 59 | 59 | } else { |
| 60 | 60 | App::$Session->getFlashBag()->add('warning', __('Posting message was failed! Please, wait few seconds')); |
@@ -64,8 +64,8 @@ discard block |
||
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | // pagination and query params |
| 67 | - $wallPage = (int)$this->request->query->get('page'); |
|
| 68 | - $wallItems = (int)$cfg['wallPostOnPage']; |
|
| 67 | + $wallPage = (int) $this->request->query->get('page'); |
|
| 68 | + $wallItems = (int) $cfg['wallPostOnPage']; |
|
| 69 | 69 | $wallOffset = $wallPage * $wallItems; |
| 70 | 70 | |
| 71 | 71 | // get wall posts by target user_id |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | 'notify' => App::$Session->getFlashBag()->all(), |
| 96 | 96 | 'wallRecords' => $wallRecords, |
| 97 | 97 | 'pagination' => $wallPagination, |
| 98 | - 'ratingOn' => (int)$cfg['rating'] === 1 |
|
| 98 | + 'ratingOn' => (int) $cfg['rating'] === 1 |
|
| 99 | 99 | ]); |
| 100 | 100 | } |
| 101 | 101 | } |
| 102 | 102 | \ No newline at end of file |
@@ -41,9 +41,9 @@ discard block |
||
| 41 | 41 | // check if request is sended |
| 42 | 42 | if ($model->send() && $model->validate()) { |
| 43 | 43 | // get records from db |
| 44 | - $records = ProfileRecords::where('nick', 'like', '%' . $model->query . '%'); |
|
| 45 | - $page = (int)$this->request->query->get('page'); |
|
| 46 | - $userPerPage = (int)$cfgs['usersOnPage']; |
|
| 44 | + $records = ProfileRecords::where('nick', 'like', '%'.$model->query.'%'); |
|
| 45 | + $page = (int) $this->request->query->get('page'); |
|
| 46 | + $userPerPage = (int) $cfgs['usersOnPage']; |
|
| 47 | 47 | if ($userPerPage < 1) { |
| 48 | 48 | $userPerPage = 1; |
| 49 | 49 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | 'model' => $model, |
| 68 | 68 | 'records' => $records, |
| 69 | 69 | 'pagination' => $pagination, |
| 70 | - 'ratingOn' => (int)$cfgs['rating'] |
|
| 70 | + 'ratingOn' => (int) $cfgs['rating'] |
|
| 71 | 71 | ]); |
| 72 | 72 | } |
| 73 | 73 | } |
| 74 | 74 | \ No newline at end of file |
@@ -31,9 +31,9 @@ |
||
| 31 | 31 | if (Any::isArray($notify) && count($notify) > 0) { |
| 32 | 32 | foreach ($notify as $type => $messages) { |
| 33 | 33 | foreach ($messages as $message) { |
| 34 | - echo '<p class="alert ' . type2html($type) . '"> |
|
| 34 | + echo '<p class="alert '.type2html($type).'"> |
|
| 35 | 35 | <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>' |
| 36 | - . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>'; |
|
| 36 | + . \Ffcms\Core\App::$Security->strip_tags($message).'</p>'; |
|
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | } |