@@ -28,8 +28,8 @@ |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
31 | - * Magic method before |
|
32 | - */ |
|
31 | + * Magic method before |
|
32 | + */ |
|
33 | 33 | public function before() |
34 | 34 | { |
35 | 35 | // get full name of update object |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php return [ |
2 | - 'Alias' => [ |
|
3 | - 'Front' => [ |
|
4 | - '/about' => '/content/read/page/about-page' |
|
5 | - ] |
|
6 | - ], |
|
7 | - 'Callback' => [ |
|
8 | - 'Front' => [ |
|
9 | - 'Demo' => '\Apps\Controller\Front\Main' |
|
10 | - ] |
|
11 | - ] |
|
2 | + 'Alias' => [ |
|
3 | + 'Front' => [ |
|
4 | + '/about' => '/content/read/page/about-page' |
|
5 | + ] |
|
6 | + ], |
|
7 | + 'Callback' => [ |
|
8 | + 'Front' => [ |
|
9 | + 'Demo' => '\Apps\Controller\Front\Main' |
|
10 | + ] |
|
11 | + ] |
|
12 | 12 | ]; |
13 | 13 | \ No newline at end of file |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | } |
43 | 43 | |
44 | 44 | /** |
45 | - * Labels for form |
|
46 | - */ |
|
45 | + * Labels for form |
|
46 | + */ |
|
47 | 47 | public function labels() |
48 | 48 | { |
49 | 49 | return [ |
@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | /** |
60 | - * Validation rules for comments settings |
|
61 | - */ |
|
60 | + * Validation rules for comments settings |
|
61 | + */ |
|
62 | 62 | public function rules() |
63 | 63 | { |
64 | 64 | return [ |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | - * Labels to display edit form |
|
38 | - */ |
|
37 | + * Labels to display edit form |
|
38 | + */ |
|
39 | 39 | public function labels() |
40 | 40 | { |
41 | 41 | return [ |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | /** |
49 | - * Rules to validate changes |
|
50 | - */ |
|
49 | + * Rules to validate changes |
|
50 | + */ |
|
51 | 51 | public function rules() |
52 | 52 | { |
53 | 53 | return [ |
@@ -47,8 +47,8 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * Labels for display form |
|
51 | - */ |
|
50 | + * Labels for display form |
|
51 | + */ |
|
52 | 52 | public function labels() |
53 | 53 | { |
54 | 54 | return [ |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | } |
60 | 60 | |
61 | 61 | /** |
62 | - * Form validation rules |
|
63 | - */ |
|
62 | + * Form validation rules |
|
63 | + */ |
|
64 | 64 | public function rules() |
65 | 65 | { |
66 | 66 | return [ |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | |
27 | 27 | |
28 | 28 | /** |
29 | - * Set user data if he is logged in |
|
30 | - */ |
|
29 | + * Set user data if he is logged in |
|
30 | + */ |
|
31 | 31 | public function before() |
32 | 32 | { |
33 | 33 | if (App::$User->isAuth()) { |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
41 | - * Labels to display form |
|
42 | - */ |
|
41 | + * Labels to display form |
|
42 | + */ |
|
43 | 43 | public function labels() |
44 | 44 | { |
45 | 45 | return [ |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * Rules to validate send form |
|
55 | - */ |
|
54 | + * Rules to validate send form |
|
55 | + */ |
|
56 | 56 | public function rules() |
57 | 57 | { |
58 | 58 | $rules = [ |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | App::$Session->getFlashBag()->add('error', __('User is never exist or password is incorrect!')); |
54 | 54 | // initialize fail event |
55 | 55 | App::$Event->run(static::EVENT_USER_LOGIN_FAIL, [ |
56 | - 'model' => $loginForm |
|
56 | + 'model' => $loginForm |
|
57 | 57 | ]); |
58 | 58 | } |
59 | 59 | |
@@ -113,14 +113,14 @@ discard block |
||
113 | 113 | if ($registerForm->tryRegister($configs['registrationType'] === 1)) { |
114 | 114 | // initialize succes signup event |
115 | 115 | App::$Event->run(static::EVENT_USER_REGISTER_SUCCESS, [ |
116 | - 'model' => $registerForm |
|
116 | + 'model' => $registerForm |
|
117 | 117 | ]); |
118 | 118 | // send notification of successful registering |
119 | 119 | App::$Session->getFlashBag()->add('success', __('Your account is registered. You must confirm account via email')); |
120 | 120 | } else { |
121 | 121 | // init fail signup event |
122 | 122 | App::$Event->run(static::EVENT_USER_REGISTER_FAIL, [ |
123 | - 'model' => $registerForm |
|
123 | + 'model' => $registerForm |
|
124 | 124 | ]); |
125 | 125 | App::$Session->getFlashBag()->add('error', __('Login or email is always used on website')); |
126 | 126 | } |
@@ -24,8 +24,8 @@ discard block |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * Set default values from active record data |
|
28 | - */ |
|
27 | + * Set default values from active record data |
|
28 | + */ |
|
29 | 29 | public function before() |
30 | 30 | { |
31 | 31 | $this->message = $this->_record->message; |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * Labels to display in view |
|
37 | - */ |
|
36 | + * Labels to display in view |
|
37 | + */ |
|
38 | 38 | public function labels() |
39 | 39 | { |
40 | 40 | return [ |
@@ -44,8 +44,8 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * Validation rules for comment body |
|
48 | - */ |
|
47 | + * Validation rules for comment body |
|
48 | + */ |
|
49 | 49 | public function rules() |
50 | 50 | { |
51 | 51 | return [ |
@@ -100,12 +100,12 @@ |
||
100 | 100 | </div> |
101 | 101 | <div class="meta"> |
102 | 102 | <?php if ((int)$catConfigs['showRating'] === 1) { |
103 | - echo \App::$View->render('content/_rate', [ |
|
104 | - 'id' => $item['id'], |
|
105 | - 'canRate' => $item['canRate'], |
|
106 | - 'rating' => $item['rating'] |
|
107 | - ]); |
|
108 | - } ?> |
|
103 | + echo \App::$View->render('content/_rate', [ |
|
104 | + 'id' => $item['id'], |
|
105 | + 'canRate' => $item['canRate'], |
|
106 | + 'rating' => $item['rating'] |
|
107 | + ]); |
|
108 | + } ?> |
|
109 | 109 | |
110 | 110 | <span class="spaced hidden-xs"><i class="fa fa-comments"></i> |
111 | 111 | <a href="#"><?= __('Comments') ?>: <span itemprop="commentCount">0</span></a> |