Passed
Push — master ( df5b6f...0d9957 )
by Mihail
05:31
created
Apps/View/Front/default/_layouts/default.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     <?php if (\App::$Debug): ?>
31 31
         <?= \App::$Debug->renderHead() ?>
32 32
     <?php endif; ?>
33
-    <?php if (!isset($fullgrid)){ $fullgrid = false; } ?>
33
+    <?php if (!isset($fullgrid)) { $fullgrid = false; } ?>
34 34
 </head>
35 35
 <body class="bg-light">
36 36
 
@@ -45,23 +45,23 @@  discard block
 block discarded – undo
45 45
 if (\App::$Properties->get('multiLanguage') && count(\App::$Properties->get('languages')) > 1) {
46 46
     foreach (\App::$Properties->get('languages') as $lang) {
47 47
         $navbar->menu('left', [
48
-            'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-' . $lang . '" alt="' . $lang . '">',
49
-            'link' => App::$Alias->baseUrlNoLang . '/' . $lang . App::$Request->getPathInfo(),
48
+            'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" alt="'.$lang.'">',
49
+            'link' => App::$Alias->baseUrlNoLang.'/'.$lang.App::$Request->getPathInfo(),
50 50
             'html' => true
51 51
         ]);
52 52
     }
53 53
 }
54 54
 if (\App::$User->isAuth()) {
55 55
     $userId = \App::$User->identity()->getId();
56
-    $navbar->menu('right', ['text' => __('Account') . ' <span class="badge" id="summary-count-block">0</span>', 'dropdown' => [
56
+    $navbar->menu('right', ['text' => __('Account').' <span class="badge" id="summary-count-block">0</span>', 'dropdown' => [
57 57
         ['text' => __('My profile'), 'link' => ['profile/show', [$userId]]],
58
-        ['text' => __('Messages') . ' <span class="badge" id="pm-count-block">0</span>', 'link' => ['profile/messages'], 'class' => 'dropdown-item', 'html' => true],
58
+        ['text' => __('Messages').' <span class="badge" id="pm-count-block">0</span>', 'link' => ['profile/messages'], 'class' => 'dropdown-item', 'html' => true],
59 59
         ['text' => __('Feed'), 'link' => ['profile/feed'], 'class' => 'dropdown-item'],
60
-        ['text' => __('Notifications') . ' <span class="badge" id="notify-count-block">0</span>', 'link' => ['profile/notifications'], 'class' => 'dropdown-item', 'html' => true],
60
+        ['text' => __('Notifications').' <span class="badge" id="notify-count-block">0</span>', 'link' => ['profile/notifications'], 'class' => 'dropdown-item', 'html' => true],
61 61
         ['text' => __('Settings'), 'link' => ['profile/settings'], 'class' => 'dropdown-item'],
62 62
     ], 'properties' => ['html' => true]]);
63 63
     if (\App::$User->identity()->role->can('Admin/Main/Index')) {
64
-        $navbar->menu('right', ['text' => __('Admin'), 'link' => \App::$Alias->scriptUrl . '/admin']);
64
+        $navbar->menu('right', ['text' => __('Admin'), 'link' => \App::$Alias->scriptUrl.'/admin']);
65 65
     }
66 66
     $navbar->menu('right', ['text' => __('Logout'), 'link' => ['user/logout']]);
67 67
 } else {
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/settings.php 1 patch
Spacing   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -27,54 +27,54 @@
 block discarded – undo
27 27
 
28 28
 <?= $this->bootstrap()->nav('ul', ['class' => 'nav-tabs'])
29 29
     ->menu(['text' => __('Base'), 'tab' => function() use ($form) {
30
-        return $form->fieldset()->text('baseDomain', ['class' => 'form-control'], __('Main domain of website. Use only in console or cron tasks, if domain cannot be defined from request string')) .
31
-            $form->fieldset()->radio('baseProto', ['options' => ['http', 'https']], __('Main website transfer protocol. Use only if request data is not available in console or cron tasks')) .
32
-            $form->fieldset()->text('basePath', ['class' => 'form-control'], __('FFCMS installation sub-directory, used if installed not in root. Example: /subdir/')) .
33
-            $form->fieldset()->select('timezone', ['class' => 'selectize-select', 'options' => DateTimeZone::listIdentifiers()], __('Define website default timezone id')) .
34
-            $form->fieldset()->boolean('userCron', null, __('Initialize cron manager when user load website? Enable this option if you are not configured cron tasks in your operation system')) .
35
-            $form->fieldset()->boolean('debug.all', null, __('Enable debug bar panel for all visitors? Recommended only on development environment')) .
30
+        return $form->fieldset()->text('baseDomain', ['class' => 'form-control'], __('Main domain of website. Use only in console or cron tasks, if domain cannot be defined from request string')).
31
+            $form->fieldset()->radio('baseProto', ['options' => ['http', 'https']], __('Main website transfer protocol. Use only if request data is not available in console or cron tasks')).
32
+            $form->fieldset()->text('basePath', ['class' => 'form-control'], __('FFCMS installation sub-directory, used if installed not in root. Example: /subdir/')).
33
+            $form->fieldset()->select('timezone', ['class' => 'selectize-select', 'options' => DateTimeZone::listIdentifiers()], __('Define website default timezone id')).
34
+            $form->fieldset()->boolean('userCron', null, __('Initialize cron manager when user load website? Enable this option if you are not configured cron tasks in your operation system')).
35
+            $form->fieldset()->boolean('debug.all', null, __('Enable debug bar panel for all visitors? Recommended only on development environment')).
36 36
             $form->fieldset()->boolean('testSuite', null, __('Enable codeception test suite adapter? Use this option ONLY to run codeception tests! Disable this option on production'));
37 37
     }, 'tabActive' => true])
38 38
     ->menu(['text' => __('Themes'), 'tab' => function() use ($form, $model) {
39
-        return $form->fieldset()->select('theme.Front', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Front')], __('Set theme for user part of website')) .
39
+        return $form->fieldset()->select('theme.Front', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Front')], __('Set theme for user part of website')).
40 40
             $form->fieldset()->select('theme.Admin', ['class' => 'form-control', 'options' => $model->getAvailableThemes('Admin')], __('Set theme for admin panel'));
41 41
     }])
42 42
     ->menu(['text' => __('Mail'), 'tab' => function() use ($form) {
43
-        return '<p>' . __('Configure sendmail over smtp server. You should set host:port and auth data for your smtp server') . '</p>' .
44
-            $form->fieldset()->text('mail.host', ['class' => 'form-control'], __('Set SMTP hostname or ip')) .
45
-            $form->fieldset()->text('mail.port', ['class' => 'form-control'], __('Set SMTP connection port')) .
46
-            $form->fieldset()->select('mail.encrypt', ['class' => 'form-control', 'options' => ['tls', 'ssl', 'none']], __('Set encryption method for your smtp server. For remote service we are strongly recommend use tls/ssl encryption')) .
47
-            $form->fieldset()->text('mail.user', ['class' => 'form-control'], __('Set auth user name if required')) .
43
+        return '<p>'.__('Configure sendmail over smtp server. You should set host:port and auth data for your smtp server').'</p>'.
44
+            $form->fieldset()->text('mail.host', ['class' => 'form-control'], __('Set SMTP hostname or ip')).
45
+            $form->fieldset()->text('mail.port', ['class' => 'form-control'], __('Set SMTP connection port')).
46
+            $form->fieldset()->select('mail.encrypt', ['class' => 'form-control', 'options' => ['tls', 'ssl', 'none']], __('Set encryption method for your smtp server. For remote service we are strongly recommend use tls/ssl encryption')).
47
+            $form->fieldset()->text('mail.user', ['class' => 'form-control'], __('Set auth user name if required')).
48 48
             $form->fieldset()->text('mail.password', ['class' => 'form-control'], __('Set auth user password if exist'));
49 49
     }])
50 50
     ->menu(['text' => __('Localization'), 'tab' => function() use ($form) {
51
-        return $form->fieldset()->select('singleLanguage', ['class' => 'form-control', 'options' => \App::$Translate->getAvailableLangs()], __('Default language of website')) .
52
-            $form->fieldset()->boolean('multiLanguage', null, __('Must we use multi language system in site pathway')) .
53
-            $form->fieldset()->text('baseLanguage', ['class' => 'form-control', 'disabled' => null], __('Website base script language. Do not change it')) .
51
+        return $form->fieldset()->select('singleLanguage', ['class' => 'form-control', 'options' => \App::$Translate->getAvailableLangs()], __('Default language of website')).
52
+            $form->fieldset()->boolean('multiLanguage', null, __('Must we use multi language system in site pathway')).
53
+            $form->fieldset()->text('baseLanguage', ['class' => 'form-control', 'disabled' => null], __('Website base script language. Do not change it')).
54 54
             $form->fieldset()->checkboxes('languages', ['options' => App::$Translate->getAvailableLangs()], __('Website available languages'));
55 55
 
56 56
     }])
57 57
     ->menu(['text' => __('Database'), 'tab' => function() use ($form) {
58
-        return '<p>' . __('Do not change any information in this tab if you not sure what you do!') . '</p>' .
59
-            $form->fieldset()->select('database.driver', ['class' => 'form-control', 'options' => ['mysql', 'sqlite', 'pgsql']], __('Database connection driver')) .
60
-            $form->fieldset()->text('database.host', ['class' => 'form-control'], __('Database connection host name')) .
61
-            $form->fieldset()->text('database.database', ['class' => 'form-control'], __('Database name or path to sqlite created file database')) .
62
-            $form->fieldset()->text('database.username', ['class' => 'form-control'], __('User name for database connection')) .
63
-            $form->fieldset()->text('database.password', ['class' => 'form-control'], __('Password for user of database connection')) .
64
-            $form->fieldset()->text('database.charset', ['class' => 'form-control']) .
65
-            $form->fieldset()->text('database.collation', ['class' => 'form-control']) .
58
+        return '<p>'.__('Do not change any information in this tab if you not sure what you do!').'</p>'.
59
+            $form->fieldset()->select('database.driver', ['class' => 'form-control', 'options' => ['mysql', 'sqlite', 'pgsql']], __('Database connection driver')).
60
+            $form->fieldset()->text('database.host', ['class' => 'form-control'], __('Database connection host name')).
61
+            $form->fieldset()->text('database.database', ['class' => 'form-control'], __('Database name or path to sqlite created file database')).
62
+            $form->fieldset()->text('database.username', ['class' => 'form-control'], __('User name for database connection')).
63
+            $form->fieldset()->text('database.password', ['class' => 'form-control'], __('Password for user of database connection')).
64
+            $form->fieldset()->text('database.charset', ['class' => 'form-control']).
65
+            $form->fieldset()->text('database.collation', ['class' => 'form-control']).
66 66
             $form->fieldset()->text('database.prefix', ['class' => 'form-control'], __('Database tables prefix'));
67 67
     }])
68 68
     ->menu(['text' => __('Debug'), 'tab' => function() use ($form){
69
-        return '<p>' . __('The key-value of cookie to enable debugging on website') . '. ' . __('If user got this cookie he can see debug bar') . '. ' .
70
-            Url::a(['main/debugcookie'], __('Set cookie for me')) . '</p>' .
71
-            $form->fieldset()->text('debug.cookie.key', ['class' => 'form-control'], __('Set cookie name(key) for enable debug bar panel')) .
69
+        return '<p>'.__('The key-value of cookie to enable debugging on website').'. '.__('If user got this cookie he can see debug bar').'. '.
70
+            Url::a(['main/debugcookie'], __('Set cookie for me')).'</p>'.
71
+            $form->fieldset()->text('debug.cookie.key', ['class' => 'form-control'], __('Set cookie name(key) for enable debug bar panel')).
72 72
             $form->fieldset()->text('debug.cookie.value', ['class' => 'form-control'], __('Set cookie value for enable debug bar panel'));
73 73
     }])
74 74
     ->menu(['text' => __('Other'), 'tab' => function() use ($form){
75
-        return '<p>' . __('There you can change specified configs depends of other platforms. GA = google analytics.') . '</p>' .
76
-            $form->fieldset()->text('gaClientId', ['class' => 'form-control'], __('Google oAuth2 client id. This id will be used to display google.analytics info. Client ID looks like: xxxxxx.apps.googleusercontent.com')) .
77
-            $form->fieldset()->text('gaTrackId', ['class' => 'form-control'], __('Set google analytics tracking id for your website. Track id looks like: UA-XXXXXX-Y')) .
75
+        return '<p>'.__('There you can change specified configs depends of other platforms. GA = google analytics.').'</p>'.
76
+            $form->fieldset()->text('gaClientId', ['class' => 'form-control'], __('Google oAuth2 client id. This id will be used to display google.analytics info. Client ID looks like: xxxxxx.apps.googleusercontent.com')).
77
+            $form->fieldset()->text('gaTrackId', ['class' => 'form-control'], __('Set google analytics tracking id for your website. Track id looks like: UA-XXXXXX-Y')).
78 78
             $form->fieldset()->text('trustedProxy', ['class' => 'form-control'], __('Set trusted proxy list to accept X-FORWARDED data. Example: 103.21.244.15,103.22.200.0/22'));
79 79
     }])
80 80
     ->display(); ?>
Please login to merge, or discard this patch.
Apps/View/Admin/default/_layouts/default.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                                         <div class="media-left">
179 179
                                             <a href="<?= ($comment->user ? Url::link(['user/update', [$comment->user->id]]) : '#') ?>">
180 180
                                                 <?php
181
-                                                $commentAva = \App::$Alias->scriptUrl . '/upload/user/avatar/small/default.jpg';
181
+                                                $commentAva = \App::$Alias->scriptUrl.'/upload/user/avatar/small/default.jpg';
182 182
                                                 if ($comment->user && $comment->user->id > 0) {
183 183
                                                     $commentAva = $comment->user->profile->getAvatarUrl('small');
184 184
                                                 }
@@ -222,8 +222,8 @@  discard block
 block discarded – undo
222 222
                             $list = $this->listing('ul', ['class' => 'list-inline']);
223 223
                             foreach (\App::$Properties->get('languages') as $lang) {
224 224
                                 $list->li([
225
-                                    'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-' . $lang . '" alt="' . $lang . '">',
226
-                                    'link' => App::$Alias->baseUrlNoLang . '/' . $lang . App::$Request->getPathInfo(),
225
+                                    'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" alt="'.$lang.'">',
226
+                                    'link' => App::$Alias->baseUrlNoLang.'/'.$lang.App::$Request->getPathInfo(),
227 227
                                     'html' => true
228 228
                                 ], ['class' => 'list-inline-item']);
229 229
                             }
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
                         </li>
267 267
                         <li class="nav-item<?= (\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? ' active' : null ?>">
268 268
                             <?= Url::a(['#system-dropdown'],
269
-                                '<i class="fa fa-fire"></i> <span class="nav-text">' . __('System') . '</span>',
269
+                                '<i class="fa fa-fire"></i> <span class="nav-text">'.__('System').'</span>',
270 270
                                 [
271 271
                                     'class' => 'nav-container',
272 272
                                     'data-toggle' => 'collapse',
@@ -274,12 +274,12 @@  discard block
 block discarded – undo
274 274
                                 ])
275 275
                             ?>
276 276
 
277
-                            <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown'])
278
-                                ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true])
279
-                                ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true])
280
-                                ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true])
281
-                                ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true])
282
-                                ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true])
277
+                            <?= $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((\App::$Request->getController() === 'Main' && \App::$Request->getAction() !== 'Index') ? 'in show' : null), 'id' => 'system-dropdown'])
278
+                                ->menu(['link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true])
279
+                                ->menu(['link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true])
280
+                                ->menu(['link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true])
281
+                                ->menu(['link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true])
282
+                                ->menu(['link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true])
283 283
                                 ->display();
284 284
                             ?>
285 285
                         </li>
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
                         ?>
298 298
                         <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? ' active' : null ?>">
299 299
                             <?= Url::a(['#apps-dropdown'],
300
-                                '<i class="fa fa-plug"></i> <span class="nav-text">' . __('Applications') . '</span>',
300
+                                '<i class="fa fa-plug"></i> <span class="nav-text">'.__('Applications').'</span>',
301 301
                                 [
302 302
                                     'class' => 'nav-container',
303 303
                                     'data-toggle' => 'collapse',
@@ -306,18 +306,18 @@  discard block
 block discarded – undo
306 306
                             ?>
307 307
 
308 308
                             <?php
309
-                            $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']);
309
+                            $appMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $apps) || \App::$Request->getController() === 'Application') ? 'in show' : null), 'id' => 'apps-dropdown']);
310 310
                             foreach ($apps as $app) {
311 311
                                 /** @var \Apps\ActiveRecord\App $app */
312
-                                $appMenu->menu(['link' => [Str::lowerCase($app->sys_name) . '/index'], 'text' => $app->getLocaleName()]);
312
+                                $appMenu->menu(['link' => [Str::lowerCase($app->sys_name).'/index'], 'text' => $app->getLocaleName()]);
313 313
                             }
314
-                            $appMenu->menu(['link' => 'application/index', 'text' => __('All apps') . '...']);
314
+                            $appMenu->menu(['link' => 'application/index', 'text' => __('All apps').'...']);
315 315
                             echo $appMenu->display();
316 316
                             ?>
317 317
                         </li>
318 318
                         <li class="nav-item<?= (array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? ' active' : null ?>">
319 319
                             <?= Url::a(['#widgets-dropdown'],
320
-                                '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">' . __('Widgets') . '</span>',
320
+                                '<i class="fa fa-puzzle-piece"></i> <span class="nav-text">'.__('Widgets').'</span>',
321 321
                                 [
322 322
                                     'class' => 'nav-container',
323 323
                                     'data-toggle' => 'collapse',
@@ -326,12 +326,12 @@  discard block
 block discarded – undo
326 326
                             ?>
327 327
 
328 328
                             <?php
329
-                            $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse' . ((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']);
329
+                            $widgetMenu = $this->bootstrap()->nav('ul', ['class' => 'nav nav-pills nav-stacked collapse'.((array_key_exists(\App::$Request->getController(), $widgets) || \App::$Request->getController() === 'Widget') ? 'in show' : null), 'id' => 'widgets-dropdown']);
330 330
                             foreach ($widgets as $widget) {
331 331
                                 /** @var \Apps\ActiveRecord\App $widget */
332
-                                $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name) . '/index'], 'text' => $widget->getLocaleName()]);
332
+                                $widgetMenu->menu(['link' => [Str::lowerCase($widget->sys_name).'/index'], 'text' => $widget->getLocaleName()]);
333 333
                             }
334
-                            $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets') . '...']);
334
+                            $widgetMenu->menu(['link' => 'widget/index', 'text' => __('All widgets').'...']);
335 335
                             echo $widgetMenu->display();
336 336
                             ?>
337 337
                         </li>
Please login to merge, or discard this patch.
Apps/View/Install/default/_layouts/default.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         var script_lang = '<?= \App::$Request->getLanguage() ?>';
28 28
         var site_url = '<?= \App::$Alias->baseUrl ?>';
29 29
     </script>
30
-    <?php if (!isset($fullgrid)){ $fullgrid = false; } ?>
30
+    <?php if (!isset($fullgrid)) { $fullgrid = false; } ?>
31 31
 </head>
32 32
 
33 33
 <body>
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
                 $list = $this->listing('ul', ['class' => 'list-inline']);
45 45
                 foreach (\App::$Properties->get('languages') as $lang) {
46 46
                     $list->li([
47
-                        'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-' . $lang . '" alt="' . $lang . '">',
48
-                        'link' => App::$Alias->baseUrlNoLang . '/' . $lang . App::$Request->getPathInfo(),
47
+                        'text' => '<img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="flag flag-'.$lang.'" alt="'.$lang.'">',
48
+                        'link' => App::$Alias->baseUrlNoLang.'/'.$lang.App::$Request->getPathInfo(),
49 49
                         'html' => true
50 50
                     ], ['class' => 'list-inline-item']);
51 51
                 }
Please login to merge, or discard this patch.
Apps/Model/Admin/Content/FormCategoryUpdate.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     public function __construct(ContentCategory $record, $dependId = null)
37 37
     {
38 38
         $this->_record = $record;
39
-        $this->_tmpDependId = (int)$dependId;
39
+        $this->_tmpDependId = (int) $dependId;
40 40
         parent::__construct();
41 41
     }
42 42
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
         ];
114 114
 
115 115
         // general category
116
-        if (!$this->_new && (int)$this->_record->id === 1) {
116
+        if (!$this->_new && (int) $this->_record->id === 1) {
117 117
             $rules[] = ['path', 'used'];
118 118
         } else {
119 119
             $rules[] = ['path', 'required'];
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
             $rules[] = ['path', 'reverse_match', '/[\/\'~`\[email protected]#\$%\^&\*\(\)+=\{\}\[\]\|;:"\<\>,\?\\\]/'];
123 123
         }
124 124
 
125
-        $rules[] = ['title.' . App::$Request->getLanguage(), 'required'];
125
+        $rules[] = ['title.'.App::$Request->getLanguage(), 'required'];
126 126
 
127 127
 
128 128
         return $rules;
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     {
136 136
         $this->_record->title = $this->title;
137 137
         $this->_record->description = $this->description;
138
-        $savePath = trim($this->_pathNested . '/' . $this->path, '/');
138
+        $savePath = trim($this->_pathNested.'/'.$this->path, '/');
139 139
         $this->_record->path = $savePath;
140 140
         $this->_record->configs = $this->configs;
141 141
         $this->_record->save();
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
         // build path with owner category
171 171
         $this->_pathNested = $owner->path;
172 172
         if (Str::length($this->_pathNested) > 0) {
173
-            $path = $this->_pathNested . '/' . $path;
173
+            $path = $this->_pathNested.'/'.$path;
174 174
         }
175 175
 
176 176
         // make select for check
Please login to merge, or discard this patch.