@@ -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); |
@@ -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(); |
@@ -123,7 +123,7 @@ |
||
123 | 123 | /** |
124 | 124 | * Get current extension active record |
125 | 125 | * @param string|null $type |
126 | - * @return mixed |
|
126 | + * @return AppRecord |
|
127 | 127 | */ |
128 | 128 | public function getTypeItem($type = null) |
129 | 129 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * EntityContentSearch constructor. Pass search terms (query string) to model and used items to skip it by id. |
27 | 27 | * @param $terms |
28 | - * @param int|array $skipIds |
|
28 | + * @param integer $skipIds |
|
29 | 29 | */ |
30 | 30 | public function __construct($terms, $skipIds = 0) |
31 | 31 | { |
@@ -95,7 +95,7 @@ |
||
95 | 95 | |
96 | 96 | /** |
97 | 97 | * Send email notification after feedback request creation |
98 | - * @param $record |
|
98 | + * @param FeedbackPost $record |
|
99 | 99 | * @throws \Ffcms\Core\Exception\SyntaxException |
100 | 100 | */ |
101 | 101 | private function sendEmail($record) |
@@ -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> |
@@ -159,12 +159,12 @@ |
||
159 | 159 | <div class="col-md-12"> |
160 | 160 | <div class="pull-left"> |
161 | 161 | <?php if ($properties['rating']) { |
162 | - echo \App::$View->render('content/_rate', [ |
|
163 | - 'id' => $model->id, |
|
164 | - 'rating' => $model->rating, |
|
165 | - 'canRate' => $model->canRate |
|
166 | - ]); |
|
167 | - } ?> |
|
162 | + echo \App::$View->render('content/_rate', [ |
|
163 | + 'id' => $model->id, |
|
164 | + 'rating' => $model->rating, |
|
165 | + 'canRate' => $model->canRate |
|
166 | + ]); |
|
167 | + } ?> |
|
168 | 168 | <?= \App::$View->render('content/_rateJs') ?> |
169 | 169 | </div> |
170 | 170 | <div class="pull-right"> |
@@ -78,7 +78,7 @@ |
||
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Make query to database |
81 | - * @return object |
|
81 | + * @return string |
|
82 | 82 | */ |
83 | 83 | private function makeQuery() |
84 | 84 | { |
@@ -72,7 +72,7 @@ |
||
72 | 72 | |
73 | 73 | // render view |
74 | 74 | return App::$View->render($this->tpl, [ |
75 | - 'records' => $query |
|
75 | + 'records' => $query |
|
76 | 76 | ]); |
77 | 77 | } |
78 | 78 |