@@ -88,7 +88,7 @@ |
||
88 | 88 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
89 | 89 | SOFTWARE.</textarea> |
90 | 90 | <br /> |
91 | -<?php if($model->checkAll()): ?> |
|
91 | +<?php if ($model->checkAll()): ?> |
|
92 | 92 | <div class="row"> |
93 | 93 | <div class="col-3" style="padding-top: 5px;padding-left: 25px;"> |
94 | 94 | <input type="checkbox" id="agree-license" /> <label for="agree-license"><?= __('Accept license') ?></label> |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | $allCfg['adminEmail'] = $email; |
125 | 125 | $allCfg['baseDomain'] = $domain; |
126 | 126 | $output->writeln('Generate security cookies for debug panel'); |
127 | - $allCfg['debug']['cookie']['key'] = 'fdebug_' . Crypt::randomString(mt_rand(8, 32)); |
|
127 | + $allCfg['debug']['cookie']['key'] = 'fdebug_'.Crypt::randomString(mt_rand(8, 32)); |
|
128 | 128 | $allCfg['debug']['cookie']['value'] = Crypt::randomString(mt_rand(32, 128)); |
129 | 129 | // write config data |
130 | 130 | $writeCfg = Console::$Properties->writeConfig('default', $allCfg); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | return; |
134 | 134 | } |
135 | 135 | File::write('/Private/Install/install.lock', 'Install is locked'); |
136 | - $output->writeln('Congratulations! FFCMS are successful installed. Used version: ' . Version::VERSION . ' since ' . Version::DATE); |
|
136 | + $output->writeln('Congratulations! FFCMS are successful installed. Used version: '.Version::VERSION.' since '.Version::DATE); |
|
137 | 137 | $output->writeln(''); |
138 | 138 | $output->writeln('> Please, use "php console.php main:adduser" to add admin account(set role=4) or you are unavailable to manage cms.'); |
139 | 139 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | <?php |
8 | 8 | $menu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs nav-fill']) |
9 | 9 | ->menu(['text' => __('User list'), 'link' => ['user/index']]); |
10 | -if ((int)$configs['registrationType'] === 0) { |
|
10 | +if ((int) $configs['registrationType'] === 0) { |
|
11 | 11 | $menu->menu(['text' => __('Invitation list'), 'link' => ['user/invitelist']]); |
12 | 12 | } |
13 | 13 | $menu->menu(['text' => __('Role management'), 'link' => ['user/rolelist']]) |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | <?= $form->fieldset()->text('usersOnPage', null, __('How many users will be displayed per one list page?')) ?> |
29 | 29 | <?= $form->fieldset()->boolean('guestView', null, __('Allow guests view user profiles?')) ?> |
30 | -<?= $form->fieldset()->text('wallPostOnPage', null, __('How many wall posts must be displayed in one page of profile?')) ?> |
|
30 | +<?= $form->fieldset()->text('wallPostOnPage', null, __('How many wall posts must be displayed in one page of profile?')) ?> |
|
31 | 31 | <?= $form->fieldset()->text('wallPostOnFeed', null, __('How many wall posts must be displayed on one page of feed list?')) ?> |
32 | 32 | <?= $form->fieldset()->text('delayBetweenPost', null, __('Delay between 2 posts on wall from one user in seconds')) ?> |
33 | 33 | <?= $form->fieldset()->boolean('rating', null, __('Enable user rating system?')) ?> |
@@ -32,7 +32,7 @@ |
||
32 | 32 | ['text' => $model->type] |
33 | 33 | ])->row([ |
34 | 34 | ['text' => $model->getLabel('reg_exp')], |
35 | - ['text' => ($model->reg_cond == 0 ? '!' : null) . 'preg_match("'.$model->reg_exp.'", $input)'] |
|
35 | + ['text' => ($model->reg_cond == 0 ? '!' : null).'preg_match("'.$model->reg_exp.'", $input)'] |
|
36 | 36 | ])->display(); |
37 | 37 | ?> |
38 | 38 | </div> |
@@ -35,7 +35,7 @@ |
||
35 | 35 | $menu->menu([ |
36 | 36 | 'text' => Str::upperCase($lang), |
37 | 37 | 'tab' => function() use ($form, $lang) { |
38 | - return $form->fieldset()->text('name.' . $lang, null, __('Define field name, which be displayed for user for current language locale')); |
|
38 | + return $form->fieldset()->text('name.'.$lang, null, __('Define field name, which be displayed for user for current language locale')); |
|
39 | 39 | }, |
40 | 40 | 'tabActive' => $lang === \App::$Request->getLanguage(), |
41 | 41 | ]); |
@@ -26,7 +26,7 @@ |
||
26 | 26 | $query = Profile::with(['user']); |
27 | 27 | |
28 | 28 | // set current page and offset |
29 | - $page = (int)$this->request->query->get('page'); |
|
29 | + $page = (int) $this->request->query->get('page'); |
|
30 | 30 | $offset = $page * self::ITEM_PER_PAGE; |
31 | 31 | |
32 | 32 | // count total items count for pagination builder |
@@ -7,7 +7,7 @@ |
||
7 | 7 | /** @var array $url */ |
8 | 8 | /** @var array $properties */ |
9 | 9 | |
10 | -$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999); |
|
10 | +$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999); |
|
11 | 11 | $properties['id'] = $rndId; |
12 | 12 | |
13 | 13 | echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) { |
@@ -32,8 +32,8 @@ |
||
32 | 32 | $menu->menu([ |
33 | 33 | 'text' => Str::upperCase($lang), |
34 | 34 | 'tab' => function() use ($form, $lang) { |
35 | - return $form->fieldset()->text('title.' . $lang, null, __('Enter category title, visible for users')) . |
|
36 | - $form->fieldset()->text('description.' . $lang, null, __('Enter category description')); |
|
35 | + return $form->fieldset()->text('title.'.$lang, null, __('Enter category title, visible for users')). |
|
36 | + $form->fieldset()->text('description.'.$lang, null, __('Enter category description')); |
|
37 | 37 | }, |
38 | 38 | 'tabActive' => $lang === \App::$Request->getLanguage() |
39 | 39 | ]); |