Passed
Push — master ( 3de7ee...b534e3 )
by Mihail
14:25
created
Apps/Controller/Front/Profile/ActionWallDelete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
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', [
Please login to merge, or discard this patch.
Apps/Controller/Front/Profile/ActionShow.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Apps/Controller/Front/Profile/ActionSearch.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
Apps/View/Admin/default/native/macro/notify.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
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">&times;</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
 }
Please login to merge, or discard this patch.