@@ -202,7 +202,7 @@ |
||
| 202 | 202 | $findAnswer->delete(); |
| 203 | 203 | |
| 204 | 204 | $this->response = json_encode([ |
| 205 | - 'status' => 1, |
|
| 205 | + 'status' => 1, |
|
| 206 | 206 | 'message' => 'ok' |
| 207 | 207 | ]); |
| 208 | 208 | } |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Prepare model attributes from passed objects |
| 59 | 59 | * @throws ForbiddenException |
| 60 | - */ |
|
| 60 | + */ |
|
| 61 | 61 | public function before() |
| 62 | 62 | { |
| 63 | 63 | $this->title = Serialize::getDecodeLocale($this->_content->title); |
@@ -33,8 +33,8 @@ |
||
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | - * Validation rules |
|
| 37 | - */ |
|
| 36 | + * Validation rules |
|
| 37 | + */ |
|
| 38 | 38 | public function rules() |
| 39 | 39 | { |
| 40 | 40 | return [ |
@@ -20,8 +20,8 @@ discard block |
||
| 20 | 20 | |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * Set post id based on post active record |
|
| 24 | - */ |
|
| 23 | + * Set post id based on post active record |
|
| 24 | + */ |
|
| 25 | 25 | public function before() |
| 26 | 26 | { |
| 27 | 27 | $this->id = $this->_post->id; |
@@ -29,8 +29,8 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Pseudo-rules, here is not required |
|
| 33 | - */ |
|
| 32 | + * Pseudo-rules, here is not required |
|
| 33 | + */ |
|
| 34 | 34 | public function rules() |
| 35 | 35 | { |
| 36 | 36 | 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 [ |
@@ -20,8 +20,8 @@ |
||
| 20 | 20 | public $chmodCheck = []; |
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | - * Get default server information and prepare chmod info |
|
| 24 | - */ |
|
| 23 | + * Get default server information and prepare chmod info |
|
| 24 | + */ |
|
| 25 | 25 | public function before() |
| 26 | 26 | { |
| 27 | 27 | $this->phpVersion = phpversion(); |
@@ -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 = [ |
@@ -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> |