@@ -109,13 +109,16 @@ |
||
| 109 | 109 | <?php foreach ($this->breadcrumbs as $bUrl => $bText): ?> |
| 110 | 110 | <?php if (Obj::isLikeInt($bUrl)): // only text ?> |
| 111 | 111 | <li class="active"><?= \App::$Security->strip_tags($bText) ?></li> |
| 112 | - <?php else: ?> |
|
| 112 | + <?php else { |
|
| 113 | + : ?> |
|
| 113 | 114 | <li> |
| 114 | 115 | <a href="<?= \App::$Security->strip_tags($bUrl) ?>"> |
| 115 | 116 | <?= \App::$Security->strip_tags($bText) ?> |
| 116 | 117 | </a> |
| 117 | 118 | </li> |
| 118 | - <?php endif; ?> |
|
| 119 | + <?php endif; |
|
| 120 | +} |
|
| 121 | +?> |
|
| 119 | 122 | <?php endforeach; ?> |
| 120 | 123 | </ol> |
| 121 | 124 | <?php endif; ?> |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | /** @var $body string */ |
| 3 | 3 | use Ffcms\Core\Helper\Type\Obj; |
| 4 | 4 | use Widgets\Basic\LanguageSwitcher; |
| 5 | -use Ffcms\Core\Arch\Widget; |
|
| 6 | 5 | use Ffcms\Core\Helper\HTML\Bootstrap\Navbar; |
| 7 | 6 | |
| 8 | 7 | ?> |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | <?php |
| 24 | 24 | $customCssCode = \App::$View->showPlainCode('css'); |
| 25 | 25 | if ($customCssCode !== null) { |
| 26 | - echo '<style>' . $customCssCode . '</style>'; |
|
| 26 | + echo '<style>'.$customCssCode.'</style>'; |
|
| 27 | 27 | } ?> |
| 28 | 28 | <script> |
| 29 | 29 | window.jQ = []; |
@@ -40,32 +40,32 @@ discard block |
||
| 40 | 40 | if (\App::$User->isAuth()) { |
| 41 | 41 | $userId = \App::$User->identity()->getId(); |
| 42 | 42 | // show 'add content' button if current controller is Content and user add is enabled |
| 43 | - if (\App::$Request->getController() === 'Content' && (bool)AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
| 44 | - $items[] = ['type' => 'link', 'link' => ['content/update'], 'text' => '<i class="fa fa-plus"></i> ' . __('Add content'), 'html' => true, 'position' => 'right']; |
|
| 43 | + if (\App::$Request->getController() === 'Content' && (bool) AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
| 44 | + $items[] = ['type' => 'link', 'link' => ['content/update'], 'text' => '<i class="fa fa-plus"></i> '.__('Add content'), 'html' => true, 'position' => 'right']; |
|
| 45 | 45 | } |
| 46 | 46 | $accountDropdown[] = ['link' => ['profile/show', $userId], 'text' => __('My profile')]; |
| 47 | - $accountDropdown[] = ['link' => ['profile/messages'], 'text' => __('Messages') . ' <span class="badge" id="pm-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
| 48 | - $accountDropdown[] = ['link' => ['profile/notifications'], 'text' => __('Notifications') . ' <span class="badge" id="notify-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
| 49 | - if ((bool)AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
| 47 | + $accountDropdown[] = ['link' => ['profile/messages'], 'text' => __('Messages').' <span class="badge" id="pm-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
| 48 | + $accountDropdown[] = ['link' => ['profile/notifications'], 'text' => __('Notifications').' <span class="badge" id="notify-count-block">0</span>', 'html' => true, '!secure' => true]; |
|
| 49 | + if ((bool) AppRecord::getConfig('app', 'Content', 'userAdd')) { |
|
| 50 | 50 | $accountDropdown[] = ['link' => ['content/my'], 'text' => __('My content')]; |
| 51 | 51 | } |
| 52 | 52 | $accountDropdown[] = ['link' => ['profile/settings'], 'text' => __('Settings')]; |
| 53 | 53 | |
| 54 | 54 | $items[] = [ |
| 55 | 55 | 'type' => 'dropdown', |
| 56 | - 'text' => '<i class="fa fa-user"></i> ' . __('Account') . ' <span class="badge" id="summary-count-block">0</span>', |
|
| 56 | + 'text' => '<i class="fa fa-user"></i> '.__('Account').' <span class="badge" id="summary-count-block">0</span>', |
|
| 57 | 57 | 'html' => true, |
| 58 | 58 | '!secure' => true, |
| 59 | 59 | 'position' => 'right', |
| 60 | 60 | 'items' => $accountDropdown |
| 61 | 61 | ]; |
| 62 | 62 | if (\App::$User->identity()->getRole()->can('Admin/Main/Index')) { |
| 63 | - $items[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl . '/admin/', 'text' => '<i class="fa fa-cogs"></i> Admin', 'position' => 'right', 'html' => true]; |
|
| 63 | + $items[] = ['type' => 'link', 'link' => \App::$Alias->scriptUrl.'/admin/', 'text' => '<i class="fa fa-cogs"></i> Admin', 'position' => 'right', 'html' => true]; |
|
| 64 | 64 | } |
| 65 | - $items[] = ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="fa fa-user-times"></i> ' . __('Logout'), 'html' => true, 'position' => 'right']; |
|
| 65 | + $items[] = ['type' => 'link', 'link' => ['user/logout'], 'text' => '<i class="fa fa-user-times"></i> '.__('Logout'), 'html' => true, 'position' => 'right']; |
|
| 66 | 66 | } else { |
| 67 | - $items[] = ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="fa fa-sign-in"></i> ' . __('Sign in'), 'position' => 'right', 'html' => true]; |
|
| 68 | - $items[] = ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="fa fa-check-square-o"></i> ' . __('Sign up'), 'position' => 'right', 'html' => true]; |
|
| 67 | + $items[] = ['type' => 'link', 'link' => ['user/login'], 'text' => '<i class="fa fa-sign-in"></i> '.__('Sign in'), 'position' => 'right', 'html' => true]; |
|
| 68 | + $items[] = ['type' => 'link', 'link' => ['user/signup'], 'text' => '<i class="fa fa-check-square-o"></i> '.__('Sign up'), 'position' => 'right', 'html' => true]; |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | echo Navbar::display([ |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | 'container' => 'container', |
| 76 | 76 | 'collapseId' => 'collapse-object', |
| 77 | 77 | 'items' => $items |
| 78 | -]);?> |
|
| 78 | +]); ?> |
|
| 79 | 79 | </header> |
| 80 | 80 | |
| 81 | 81 | <div class="container body-container"> |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | echo $body; |
| 151 | 151 | } else { |
| 152 | 152 | \App::$Response->setStatusCode(404); |
| 153 | - echo '<p>' . __('Page is not founded!') . '</p>'; |
|
| 153 | + echo '<p>'.__('Page is not founded!').'</p>'; |
|
| 154 | 154 | } |
| 155 | 155 | ?> |
| 156 | 156 | </div> |
@@ -243,7 +243,7 @@ discard block |
||
| 243 | 243 | <?php |
| 244 | 244 | $customJsCode = \App::$View->showPlainCode('js'); |
| 245 | 245 | if ($customJsCode !== null) { |
| 246 | - echo '<script>' . $customJsCode . '</script>'; |
|
| 246 | + echo '<script>'.$customJsCode.'</script>'; |
|
| 247 | 247 | } |
| 248 | 248 | // render google analytics code here |
| 249 | 249 | echo \App::$View->render('blocks/googleanalytics'); |
@@ -59,7 +59,8 @@ discard block |
||
| 59 | 59 | </a> |
| 60 | 60 | </div> |
| 61 | 61 | </div> |
| 62 | - <?php else: ?> |
|
| 62 | + <?php else { |
|
| 63 | + : ?> |
|
| 63 | 64 | <div class="row"> |
| 64 | 65 | <div class="col-md-8" style="padding-right: 0;"> |
| 65 | 66 | <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>"> |
@@ -76,7 +77,9 @@ discard block |
||
| 76 | 77 | <a href="javascript:void(0);" class="btn btn-block btn-danger" id="reduceRating">-</a> |
| 77 | 78 | </div> |
| 78 | 79 | </div> |
| 79 | - <?php endif; ?> |
|
| 80 | + <?php endif; |
|
| 81 | +} |
|
| 82 | +?> |
|
| 80 | 83 | <?php endif; ?> |
| 81 | 84 | <?php |
| 82 | 85 | $userMenu = null; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | $name = __('No name'); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | -$this->title = __('Profile') . ': ' . $name; |
|
| 30 | +$this->title = __('Profile').': '.$name; |
|
| 31 | 31 | |
| 32 | 32 | $this->breadcrumbs = [ |
| 33 | 33 | Url::to('/') => __('Home'), |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | <?php |
| 48 | 48 | if ($ratingOn): |
| 49 | 49 | $rateClass = 'btn-default'; |
| 50 | - $rateValue = (int)$user->getProfile()->rating; |
|
| 50 | + $rateValue = (int) $user->getProfile()->rating; |
|
| 51 | 51 | if ($user->getProfile()->rating > 0) { |
| 52 | 52 | $rateClass = 'btn-info'; |
| 53 | 53 | } elseif ($user->getProfile()->rating < 0) { |
@@ -85,19 +85,19 @@ discard block |
||
| 85 | 85 | $userMenu = null; |
| 86 | 86 | if (true === $isSelf) { |
| 87 | 87 | $userMenu = [ |
| 88 | - ['type' => 'link', 'link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> ' . __('Avatar'), 'html' => true], |
|
| 89 | - ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> ' . __('Messages') . ' <span class="badge pm-count-block">0</span>', 'html' => true], |
|
| 90 | - ['type' => 'link', 'link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> ' . __('Settings'), 'html' => true] |
|
| 88 | + ['type' => 'link', 'link' => ['profile/avatar'], 'text' => '<i class="fa fa-camera"></i> '.__('Avatar'), 'html' => true], |
|
| 89 | + ['type' => 'link', 'link' => ['profile/messages'], 'text' => '<i class="fa fa-envelope"></i> '.__('Messages').' <span class="badge pm-count-block">0</span>', 'html' => true], |
|
| 90 | + ['type' => 'link', 'link' => ['profile/settings'], 'text' => '<i class="fa fa-cogs"></i> '.__('Settings'), 'html' => true] |
|
| 91 | 91 | ]; |
| 92 | 92 | } elseif (\App::$User->isAuth()) { |
| 93 | 93 | $userMenu = [ |
| 94 | 94 | [ |
| 95 | 95 | 'type' => 'link', 'link' => Url::to('profile/messages', null, null, ['newdialog' => $user->id]), |
| 96 | - 'text' => '<i class="fa fa-pencil-square-o"></i> ' . __('Write message'), 'html' => true |
|
| 96 | + 'text' => '<i class="fa fa-pencil-square-o"></i> '.__('Write message'), 'html' => true |
|
| 97 | 97 | ], |
| 98 | 98 | [ |
| 99 | 99 | 'type' => 'link', 'link' => Url::to('profile/ignore', null, null, ['id' => $user->id]), |
| 100 | - 'text' => '<i class="fa fa-user-times"></i> ' . __('Block'), 'html' => true, 'property' => ['class' => 'alert-danger'] |
|
| 100 | + 'text' => '<i class="fa fa-user-times"></i> '.__('Block'), 'html' => true, 'property' => ['class' => 'alert-danger'] |
|
| 101 | 101 | ] |
| 102 | 102 | ]; |
| 103 | 103 | } |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | foreach ($hobbyArray as $item) { |
| 174 | 174 | $item = \App::$Security->strip_tags($item); |
| 175 | 175 | if ($item !== null && Str::length($item) > 1) { |
| 176 | - echo Url::link(['profile/index', 'hobby', trim($item, ' ')], $item, ['class' => 'label label-success']) . ' '; |
|
| 176 | + echo Url::link(['profile/index', 'hobby', trim($item, ' ')], $item, ['class' => 'label label-success']).' '; |
|
| 177 | 177 | } |
| 178 | 178 | } |
| 179 | 179 | ?> |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | <?= $form->field('message', 'textarea', ['class' => 'form-control']); ?> |
| 220 | 220 | <div class="text-right"><?= $form->submitButton(__('Send'), ['class' => 'btn btn-default']); ?></div> |
| 221 | 221 | <?= $form->finish(); ?> |
| 222 | - <?php \App::$Alias->addPlainCode('js', "$('#" . $wall->getFormName() . "').on('change keyup keydown paste cut', 'textarea', function () { $(this).height(0).height(this.scrollHeight);}).find('textarea').change();") ?> |
|
| 222 | + <?php \App::$Alias->addPlainCode('js', "$('#".$wall->getFormName()."').on('change keyup keydown paste cut', 'textarea', function () { $(this).height(0).height(this.scrollHeight);}).find('textarea').change();") ?> |
|
| 223 | 223 | <?php endif; ?> |
| 224 | 224 | <?php |
| 225 | 225 | if ($wallRecords !== null): |
@@ -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', |
@@ -1,68 +1,68 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | return array ( |
| 4 | - 0 => 'global/write', |
|
| 5 | - 1 => 'global/modify', |
|
| 6 | - 2 => 'global/file', |
|
| 7 | - 3 => 'global/all', |
|
| 8 | - 4 => 'Admin/Application/Index', |
|
| 9 | - 5 => 'Admin/Application/Install', |
|
| 10 | - 6 => 'Admin/Application/Update', |
|
| 11 | - 7 => 'Admin/Application/Turn', |
|
| 12 | - 8 => 'Admin/Comments/Index', |
|
| 13 | - 9 => 'Admin/Comments/Read', |
|
| 14 | - 10 => 'Admin/Comments/Edit', |
|
| 15 | - 11 => 'Admin/Comments/Delete', |
|
| 16 | - 12 => 'Admin/Comments/Publish', |
|
| 17 | - 13 => 'Admin/Comments/Answerlist', |
|
| 18 | - 14 => 'Admin/Comments/Settings', |
|
| 19 | - 15 => 'Admin/Content/Index', |
|
| 20 | - 16 => 'Admin/Content/Update', |
|
| 21 | - 17 => 'Admin/Content/Delete', |
|
| 22 | - 18 => 'Admin/Content/Restore', |
|
| 23 | - 19 => 'Admin/Content/Clear', |
|
| 24 | - 20 => 'Admin/Content/Categories', |
|
| 25 | - 21 => 'Admin/Content/Categorydelete', |
|
| 26 | - 22 => 'Admin/Content/Categoryupdate', |
|
| 27 | - 23 => 'Admin/Content/Globdelete', |
|
| 28 | - 24 => 'Admin/Content/Publish', |
|
| 29 | - 25 => 'Admin/Content/Settings', |
|
| 30 | - 26 => 'Admin/Contenttag/Index', |
|
| 31 | - 27 => 'Admin/Feedback/Index', |
|
| 32 | - 28 => 'Admin/Feedback/Read', |
|
| 33 | - 29 => 'Admin/Feedback/Update', |
|
| 34 | - 30 => 'Admin/Feedback/Turn', |
|
| 35 | - 31 => 'Admin/Feedback/Delete', |
|
| 36 | - 32 => 'Admin/Feedback/Settings', |
|
| 37 | - 33 => 'Admin/Main/Index', |
|
| 38 | - 34 => 'Admin/Main/Settings', |
|
| 39 | - 35 => 'Admin/Main/Files', |
|
| 40 | - 36 => 'Admin/Main/Antivirus', |
|
| 41 | - 37 => 'Admin/Main/Debugcookie', |
|
| 42 | - 38 => 'Admin/Main/Routing', |
|
| 43 | - 39 => 'Admin/Main/Addroute', |
|
| 44 | - 40 => 'Admin/Main/Deleteroute', |
|
| 45 | - 41 => 'Admin/Main/Cache', |
|
| 46 | - 42 => 'Admin/Main/Sessions', |
|
| 47 | - 43 => 'Admin/Newcomment/Index', |
|
| 48 | - 44 => 'Admin/Newcontent/Index', |
|
| 49 | - 45 => 'Admin/Profile/Index', |
|
| 50 | - 46 => 'Admin/Profile/Delete', |
|
| 51 | - 47 => 'Admin/Profile/Update', |
|
| 52 | - 48 => 'Admin/Profile/Fieldlist', |
|
| 53 | - 49 => 'Admin/Profile/Fieldupdate', |
|
| 54 | - 50 => 'Admin/Profile/Fielddelete', |
|
| 55 | - 51 => 'Admin/Profile/Settings', |
|
| 56 | - 52 => 'Admin/Search/Index', |
|
| 57 | - 53 => 'Admin/User/Index', |
|
| 58 | - 54 => 'Admin/User/Update', |
|
| 59 | - 55 => 'Admin/User/Delete', |
|
| 60 | - 56 => 'Admin/User/Grouplist', |
|
| 61 | - 57 => 'Admin/User/GroupUpdate', |
|
| 62 | - 58 => 'Admin/User/Settings', |
|
| 63 | - 59 => 'Admin/User/Invite', |
|
| 64 | - 60 => 'Admin/Widget/Index', |
|
| 65 | - 61 => 'Admin/Widget/Install', |
|
| 66 | - 62 => 'Admin/Widget/Update', |
|
| 67 | - 63 => 'Admin/Widget/Turn', |
|
| 4 | + 0 => 'global/write', |
|
| 5 | + 1 => 'global/modify', |
|
| 6 | + 2 => 'global/file', |
|
| 7 | + 3 => 'global/all', |
|
| 8 | + 4 => 'Admin/Application/Index', |
|
| 9 | + 5 => 'Admin/Application/Install', |
|
| 10 | + 6 => 'Admin/Application/Update', |
|
| 11 | + 7 => 'Admin/Application/Turn', |
|
| 12 | + 8 => 'Admin/Comments/Index', |
|
| 13 | + 9 => 'Admin/Comments/Read', |
|
| 14 | + 10 => 'Admin/Comments/Edit', |
|
| 15 | + 11 => 'Admin/Comments/Delete', |
|
| 16 | + 12 => 'Admin/Comments/Publish', |
|
| 17 | + 13 => 'Admin/Comments/Answerlist', |
|
| 18 | + 14 => 'Admin/Comments/Settings', |
|
| 19 | + 15 => 'Admin/Content/Index', |
|
| 20 | + 16 => 'Admin/Content/Update', |
|
| 21 | + 17 => 'Admin/Content/Delete', |
|
| 22 | + 18 => 'Admin/Content/Restore', |
|
| 23 | + 19 => 'Admin/Content/Clear', |
|
| 24 | + 20 => 'Admin/Content/Categories', |
|
| 25 | + 21 => 'Admin/Content/Categorydelete', |
|
| 26 | + 22 => 'Admin/Content/Categoryupdate', |
|
| 27 | + 23 => 'Admin/Content/Globdelete', |
|
| 28 | + 24 => 'Admin/Content/Publish', |
|
| 29 | + 25 => 'Admin/Content/Settings', |
|
| 30 | + 26 => 'Admin/Contenttag/Index', |
|
| 31 | + 27 => 'Admin/Feedback/Index', |
|
| 32 | + 28 => 'Admin/Feedback/Read', |
|
| 33 | + 29 => 'Admin/Feedback/Update', |
|
| 34 | + 30 => 'Admin/Feedback/Turn', |
|
| 35 | + 31 => 'Admin/Feedback/Delete', |
|
| 36 | + 32 => 'Admin/Feedback/Settings', |
|
| 37 | + 33 => 'Admin/Main/Index', |
|
| 38 | + 34 => 'Admin/Main/Settings', |
|
| 39 | + 35 => 'Admin/Main/Files', |
|
| 40 | + 36 => 'Admin/Main/Antivirus', |
|
| 41 | + 37 => 'Admin/Main/Debugcookie', |
|
| 42 | + 38 => 'Admin/Main/Routing', |
|
| 43 | + 39 => 'Admin/Main/Addroute', |
|
| 44 | + 40 => 'Admin/Main/Deleteroute', |
|
| 45 | + 41 => 'Admin/Main/Cache', |
|
| 46 | + 42 => 'Admin/Main/Sessions', |
|
| 47 | + 43 => 'Admin/Newcomment/Index', |
|
| 48 | + 44 => 'Admin/Newcontent/Index', |
|
| 49 | + 45 => 'Admin/Profile/Index', |
|
| 50 | + 46 => 'Admin/Profile/Delete', |
|
| 51 | + 47 => 'Admin/Profile/Update', |
|
| 52 | + 48 => 'Admin/Profile/Fieldlist', |
|
| 53 | + 49 => 'Admin/Profile/Fieldupdate', |
|
| 54 | + 50 => 'Admin/Profile/Fielddelete', |
|
| 55 | + 51 => 'Admin/Profile/Settings', |
|
| 56 | + 52 => 'Admin/Search/Index', |
|
| 57 | + 53 => 'Admin/User/Index', |
|
| 58 | + 54 => 'Admin/User/Update', |
|
| 59 | + 55 => 'Admin/User/Delete', |
|
| 60 | + 56 => 'Admin/User/Grouplist', |
|
| 61 | + 57 => 'Admin/User/GroupUpdate', |
|
| 62 | + 58 => 'Admin/User/Settings', |
|
| 63 | + 59 => 'Admin/User/Invite', |
|
| 64 | + 60 => 'Admin/Widget/Index', |
|
| 65 | + 61 => 'Admin/Widget/Install', |
|
| 66 | + 62 => 'Admin/Widget/Update', |
|
| 67 | + 63 => 'Admin/Widget/Turn', |
|
| 68 | 68 | ); |
| 69 | 69 | \ No newline at end of file |
@@ -14,8 +14,9 @@ |
||
| 14 | 14 | |
| 15 | 15 | public function init() |
| 16 | 16 | { |
| 17 | - if ($this->message === null) |
|
| 18 | - $this->message = 'Hello, world'; |
|
| 17 | + if ($this->message === null) { |
|
| 18 | + $this->message = 'Hello, world'; |
|
| 19 | + } |
|
| 19 | 20 | } |
| 20 | 21 | |
| 21 | 22 | public function display() |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | public $captcha; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Labels |
|
| 21 | - */ |
|
| 20 | + * Labels |
|
| 21 | + */ |
|
| 22 | 22 | public function labels() |
| 23 | 23 | { |
| 24 | 24 | return [ |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * Validation rules |
|
| 32 | - */ |
|
| 31 | + * Validation rules |
|
| 32 | + */ |
|
| 33 | 33 | public function rules() |
| 34 | 34 | { |
| 35 | 35 | return [ |
@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | const COMPRESS_QUALITY = 90; |
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | - * Example of usage magic labels for future form helper usage |
|
| 20 | - */ |
|
| 19 | + * Example of usage magic labels for future form helper usage |
|
| 20 | + */ |
|
| 21 | 21 | public function labels() |
| 22 | 22 | { |
| 23 | 23 | return [ |
@@ -26,8 +26,8 @@ discard block |
||
| 26 | 26 | } |
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | - * Example of usage magic rules for future usage in condition $model->validate() |
|
| 30 | - */ |
|
| 29 | + * Example of usage magic rules for future usage in condition $model->validate() |
|
| 30 | + */ |
|
| 31 | 31 | public function rules() |
| 32 | 32 | { |
| 33 | 33 | return [ |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | public $captcha; |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | - * Labels |
|
| 21 | - */ |
|
| 20 | + * Labels |
|
| 21 | + */ |
|
| 22 | 22 | public function labels() |
| 23 | 23 | { |
| 24 | 24 | return [ |
@@ -28,8 +28,8 @@ discard block |
||
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | /** |
| 31 | - * Validation rules |
|
| 32 | - */ |
|
| 31 | + * Validation rules |
|
| 32 | + */ |
|
| 33 | 33 | public function rules() |
| 34 | 34 | { |
| 35 | 35 | return [ |
@@ -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 |