@@ -28,7 +28,7 @@ |
||
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 |
@@ -1,6 +1,6 @@ |
||
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', |
@@ -26,7 +26,7 @@ |
||
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 |
@@ -9,4 +9,4 @@ |
||
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 |
@@ -9,4 +9,4 @@ |
||
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 |
@@ -70,7 +70,7 @@ |
||
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)); |
@@ -52,8 +52,8 @@ |
||
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 |
@@ -44,7 +44,7 @@ discard block |
||
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 |
||
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"> |
@@ -54,7 +54,7 @@ |
||
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']) ?> |