@@ -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 []; |
@@ -188,13 +188,16 @@ |
||
188 | 188 | <?php foreach ($this->breadcrumbs as $bUrl => $bText): ?> |
189 | 189 | <?php if (Obj::isLikeInt($bUrl)): // only text ?> |
190 | 190 | <li class="active"><?= \App::$Security->strip_tags($bText) ?></li> |
191 | - <?php else: ?> |
|
191 | + <?php else { |
|
192 | + : ?> |
|
192 | 193 | <li> |
193 | 194 | <a href="<?= \App::$Security->strip_tags($bUrl) ?>"> |
194 | 195 | <?= \App::$Security->strip_tags($bText) ?> |
195 | 196 | </a> |
196 | 197 | </li> |
197 | - <?php endif; ?> |
|
198 | + <?php endif; |
|
199 | +} |
|
200 | +?> |
|
198 | 201 | <?php endforeach; ?> |
199 | 202 | </ol> |
200 | 203 | <?php endif; ?> |
@@ -66,6 +66,9 @@ |
||
66 | 66 | ] |
67 | 67 | ]); |
68 | 68 | ?> |
69 | -<?php else: ?> |
|
69 | +<?php else { |
|
70 | + : ?> |
|
70 | 71 | <p>No additional fields is added!</p> |
71 | -<?php endif; ?> |
|
72 | 72 | \ No newline at end of file |
73 | +<?php endif; |
|
74 | +} |
|
75 | +?> |
|
73 | 76 | \ No newline at end of file |
@@ -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; ?> |
@@ -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; |
@@ -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() |