@@ -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 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | public function __construct($captcha = true) |
22 | 22 | { |
23 | - $this->_useCaptcha = (bool)$captcha; |
|
23 | + $this->_useCaptcha = (bool) $captcha; |
|
24 | 24 | parent::__construct(); |
25 | 25 | } |
26 | 26 |
@@ -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 |
@@ -32,8 +32,8 @@ |
||
32 | 32 | foreach ($records as $item) { |
33 | 33 | $message = Str::sub(\App::$Security->strip_tags($item->message), 0, 50); |
34 | 34 | $author = Simplify::parseUserNick($item->user_id, $item->guest_name); |
35 | - if ((int)$item->user_id > 0) { |
|
36 | - $author = Url::link(['user/update', (int)$item->user_id], $author); |
|
35 | + if ((int) $item->user_id > 0) { |
|
36 | + $author = Url::link(['user/update', (int) $item->user_id], $author); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | App::$Session->set('content.rate.ignore', $ignored); |
65 | 65 | |
66 | 66 | // save rating changes to database |
67 | - switch($this->_type) { |
|
67 | + switch ($this->_type) { |
|
68 | 68 | case 'plus': |
69 | 69 | $this->_content->rating += 1; |
70 | 70 | break; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $this->_content->save(); |
77 | 77 | |
78 | 78 | // update content author rating |
79 | - $authorId = (int)$this->_content->author_id; |
|
79 | + $authorId = (int) $this->_content->author_id; |
|
80 | 80 | if ($authorId > 0 && App::$User->isExist($authorId)) { |
81 | 81 | $authorObject = App::$User->identity($authorId); |
82 | 82 | if ($authorObject !== null) { |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | <?php |
26 | 26 | $items = []; |
27 | -foreach($records as $role) { |
|
27 | +foreach ($records as $role) { |
|
28 | 28 | $permissions = explode(';', $role->permissions); |
29 | 29 | $permissionsLabel = null; |
30 | 30 | foreach ($permissions as $perm) { |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | } else { |
37 | 37 | $labelMark = 'label-default'; |
38 | 38 | } |
39 | - $permissionsLabel .= '<span class="label ' . $labelMark . '">' . $perm . '</span> '; |
|
39 | + $permissionsLabel .= '<span class="label '.$labelMark.'">'.$perm.'</span> '; |
|
40 | 40 | } |
41 | 41 | $items[] = [ |
42 | 42 | ['text' => $role->id], |
@@ -2,6 +2,6 @@ |
||
2 | 2 | use Ffcms\Core\Helper\Url; |
3 | 3 | |
4 | 4 | if (isset($controller)): ?> |
5 | -<a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a> |
|
5 | +<a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a> |
|
6 | 6 | <a href="<?= Url::to('widget/turn', $controller) ?>"><i class="fa fa-power-off"></i></a> |
7 | 7 | <?php endif; ?> |
8 | 8 | \ No newline at end of file |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | <?php |
23 | 23 | $customCssCode = \App::$View->showPlainCode('css'); |
24 | 24 | if ($customCssCode !== null) { |
25 | - echo '<style>' . $customCssCode . '</style>'; |
|
25 | + echo '<style>'.$customCssCode.'</style>'; |
|
26 | 26 | } ?> |
27 | 27 | <script> |
28 | 28 | window.jQ = []; |
@@ -130,11 +130,11 @@ discard block |
||
130 | 130 | 'type' => 'ul', |
131 | 131 | 'property' => ['class' => 'nav nav-second-level'], |
132 | 132 | 'items' => [ |
133 | - ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true], |
|
134 | - ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> ' . __('Files'), 'html' => true], |
|
135 | - ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> ' . __('Antivirus'), 'html' => true], |
|
136 | - ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> ' . __('Routing'), 'html' => true], |
|
137 | - ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> ' . __('Updates'), 'html' => true] |
|
133 | + ['type' => 'link', 'link' => ['main/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true], |
|
134 | + ['type' => 'link', 'link' => ['main/files'], 'text' => '<i class="fa fa-file-o"></i> '.__('Files'), 'html' => true], |
|
135 | + ['type' => 'link', 'link' => ['main/antivirus'], 'text' => '<i class="fa fa-shield"></i> '.__('Antivirus'), 'html' => true], |
|
136 | + ['type' => 'link', 'link' => ['main/routing'], 'text' => '<i class="fa fa-code"></i> '.__('Routing'), 'html' => true], |
|
137 | + ['type' => 'link', 'link' => ['main/updates'], 'text' => '<i class="fa fa-gavel"></i> '.__('Updates'), 'html' => true] |
|
138 | 138 | ] |
139 | 139 | ]) ?> |
140 | 140 | <!-- /.nav-second-level --> |
@@ -154,22 +154,22 @@ discard block |
||
154 | 154 | foreach ($extTable as $item) { |
155 | 155 | $menuItem = [ |
156 | 156 | 'type' => 'link', |
157 | - 'link' => [Str::lowerCase($item->sys_name) . '/index'], |
|
158 | - 'text' => $item->getLocaleName() . (!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null), |
|
157 | + 'link' => [Str::lowerCase($item->sys_name).'/index'], |
|
158 | + 'text' => $item->getLocaleName().(!$item->checkVersion() ? ' <i class="fa fa-wrench" style="color: #ffbd26;"></i>' : null), |
|
159 | 159 | 'html' => true |
160 | 160 | ]; |
161 | 161 | if ($item->type === 'app') { |
162 | 162 | $appControllers[] = $item->sys_name; |
163 | 163 | $appMenuItems[] = $menuItem; |
164 | - } elseif($item->type === 'widget') { |
|
164 | + } elseif ($item->type === 'widget') { |
|
165 | 165 | $widgetControllers[] = $item->sys_name; |
166 | 166 | $widgetMenuItems[] = $menuItem; |
167 | 167 | } |
168 | 168 | } |
169 | 169 | |
170 | - $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps') . '...']; |
|
170 | + $appMenuItems[] = ['type' => 'link', 'link' => ['application/index'], 'text' => __('All apps').'...']; |
|
171 | 171 | $appControllers[] = 'Application'; |
172 | - $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets') . '...']; |
|
172 | + $widgetMenuItems[] = ['type' => 'link', 'link' => ['widget/index'], 'text' => __('All widgets').'...']; |
|
173 | 173 | $widgetControllers[] = 'Widget'; |
174 | 174 | ?> |
175 | 175 | <li<?= Arr::in(\App::$Request->getController(), $appControllers) ? ' class="active"' : null ?>> |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | echo $body; |
231 | 231 | } else { |
232 | 232 | \App::$Response->setStatusCode(404); |
233 | - echo '<p>' . __('Page is not founded!') . '</p>'; |
|
233 | + echo '<p>'.__('Page is not founded!').'</p>'; |
|
234 | 234 | } |
235 | 235 | ?> |
236 | 236 | </article> |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | <?php |
262 | 262 | $customJsCode = \App::$View->showPlainCode('js'); |
263 | 263 | if ($customJsCode !== null) { |
264 | - echo '<script>' . $customJsCode . '</script>'; |
|
264 | + echo '<script>'.$customJsCode.'</script>'; |
|
265 | 265 | } |
266 | 266 | ?> |
267 | 267 | </body> |
@@ -33,8 +33,8 @@ |
||
33 | 33 | foreach (\App::$Properties->get('languages') as $lang) { |
34 | 34 | $nameTab[] = [ |
35 | 35 | 'type' => 'tab', |
36 | - 'text' => __('Lang') . ': ' . Str::upperCase($lang), |
|
37 | - 'content' => $form->field('name.' . $lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')), |
|
36 | + 'text' => __('Lang').': '.Str::upperCase($lang), |
|
37 | + 'content' => $form->field('name.'.$lang, 'text', ['class' => 'form-control'], __('Define field name, which be displayed for user for current language locale')), |
|
38 | 38 | 'active' => $lang === \App::$Request->getLanguage(), |
39 | 39 | 'html' => true, |
40 | 40 | '!secure' => true |