Passed
Branch master (25273e)
by Mihail
04:42
created
Extend/Core/Arch/FrontWidget.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         }
29 29
 
30 30
         // if widget is disabled - lets return nothing
31
-        if ((int)$wData->disabled === 1) {
31
+        if ((int) $wData->disabled === 1) {
32 32
             return null;
33 33
         }
34 34
 
Please login to merge, or discard this patch.
Private/Config/Permissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3
-return array (
3
+return array(
4 4
   0 => 'global/write',
5 5
   1 => 'global/modify',
6 6
   2 => 'global/file',
Please login to merge, or discard this patch.
Apps/Controller/Admin/Profile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         $query = new UserRecords();
27 27
 
28 28
         // set current page and offset
29
-        $page = (int)App::$Request->query->get('page');
29
+        $page = (int) App::$Request->query->get('page');
30 30
         $offset = $page * self::ITEM_PER_PAGE;
31 31
 
32 32
         // build pagination
Please login to merge, or discard this patch.
Apps/View/Admin/default/content/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Install/Main/FormInstall.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         $cfg['database'] = $this->db;
71 71
         $cfg['adminEmail'] = $this->email;
72 72
         $cfg['singleLanguage'] = $this->singleLanguage;
73
-        $cfg['multiLanguage'] = (bool)$this->multiLanguage;
73
+        $cfg['multiLanguage'] = (bool) $this->multiLanguage;
74 74
         $cfg['passwordSalt'] = '$2a$07$' . Str::randomLatinNumeric(mt_rand(21, 30)) . '$';
75 75
         $cfg['debug']['cookie']['key'] = 'fdebug_' . Str::randomLatinNumeric(mt_rand(4, 16));
76 76
         $cfg['debug']['cookie']['value'] = Str::randomLatinNumeric(mt_rand(32, 128));
Please login to merge, or discard this patch.
Apps/Controller/Console/Db.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@
 block discarded – undo
52 52
             throw new NativeException('Password is bad');
53 53
         }
54 54
         echo "RoleId (1 = user, 3 = admin):";
55
-        $role = (int)App::$Input->read();
56
-        if (!Arr::in($role, [1,2,3])) {
55
+        $role = (int) App::$Input->read();
56
+        if (!Arr::in($role, [1, 2, 3])) {
57 57
             $role = 1;
58 58
         }
59 59
 
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/show.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         <?php
45 45
         if ($ratingOn):
46 46
             $rateClass = 'btn-default';
47
-            $rateValue = (int)$user->getProfile()->rating;
47
+            $rateValue = (int) $user->getProfile()->rating;
48 48
             if ($user->getProfile()->rating > 0) {
49 49
                 $rateClass = 'btn-info';
50 50
             } elseif ($user->getProfile()->rating < 0) {
@@ -226,8 +226,7 @@  discard block
 block discarded – undo
226 226
                     continue;
227 227
                 }
228 228
                 $referNickname = ($referObject->getProfile()->nick == null ?
229
-                    __('No name') . ' <sup>id' . $referObject->getId() . '</sup>' :
230
-                    \App::$Security->strip_tags($referObject->getProfile()->nick));
229
+                    __('No name') . ' <sup>id' . $referObject->getId() . '</sup>' : \App::$Security->strip_tags($referObject->getProfile()->nick));
231 230
                 ?>
232 231
                 <div class="row object-lightborder" id="wall-post-<?= $post->id ?>">
233 232
                     <div class="col-md-2">
Please login to merge, or discard this patch.
Apps/View/Install/default/main/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 ]);
55 55
 ?>
56 56
 
57
-<?php if($model->checkAll()): ?>
57
+<?php if ($model->checkAll()): ?>
58 58
     <?= \Ffcms\Core\Helper\Url::link('main/install', __('Start install'), ['class' => 'btn btn-success btn-block']) ?>
59 59
 <?php else: ?>
60 60
     <?= \Ffcms\Core\Helper\Url::link('main/index', __('Check again'), ['class' => 'btn btn-warning btn-block']) ?>
Please login to merge, or discard this patch.