@@ -12,7 +12,7 @@ |
||
12 | 12 | /** |
13 | 13 | * Get record via category path address |
14 | 14 | * @param string $path |
15 | - * @return self|object|null |
|
15 | + * @return ContentCategory |
|
16 | 16 | */ |
17 | 17 | public static function getByPath($path = '') |
18 | 18 | { |
@@ -10,6 +10,9 @@ |
||
10 | 10 | { |
11 | 11 | public $message; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $type |
|
15 | + */ |
|
13 | 16 | public function createObject($name, $type) |
14 | 17 | { |
15 | 18 | $singleName = false; |
@@ -15,6 +15,9 @@ |
||
15 | 15 | private $_user; |
16 | 16 | private $_target_id; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $target_id |
|
20 | + */ |
|
18 | 21 | public function __construct(iUser $user, $target_id) |
19 | 22 | { |
20 | 23 | $this->_user = $user; |
@@ -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() |
@@ -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; |