@@ -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 | { |
@@ -71,7 +71,7 @@ |
||
71 | 71 | } else { |
72 | 72 | // set level marker based on slashes count in pathway |
73 | 73 | $slashCount = Str::entryCount($path, '/'); |
74 | - for ($i=-1; $i <= $slashCount; $i++) { |
|
74 | + for ($i = -1; $i <= $slashCount; $i++) { |
|
75 | 75 | $title .= '--'; |
76 | 76 | } |
77 | 77 | } |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Ffcms\Core\App as MainApp; |
6 | 6 | use Ffcms\Core\Arch\ActiveModel; |
7 | 7 | use Ffcms\Core\Helper\Type\Arr; |
8 | -use Ffcms\Core\Helper\Type\Str; |
|
9 | 8 | |
10 | 9 | class Role extends ActiveModel |
11 | 10 | { |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Ffcms\Core\App; |
10 | 10 | use Ffcms\Core\Exception\SyntaxException; |
11 | 11 | use Ffcms\Core\Helper\FileSystem\File; |
12 | -use Ffcms\Core\Helper\Type\Arr; |
|
13 | 12 | use Ffcms\Core\Helper\Type\Integer; |
14 | 13 | use Ffcms\Core\Helper\Type\Str; |
15 | 14 |
@@ -117,9 +117,9 @@ |
||
117 | 117 | */ |
118 | 118 | public function actionDeleteroute() |
119 | 119 | { |
120 | - $type = (string)App::$Request->query->get('type'); |
|
121 | - $loader = (string)App::$Request->query->get('loader'); |
|
122 | - $source = Str::lowerCase((string)App::$Request->query->get('path')); |
|
120 | + $type = (string) App::$Request->query->get('type'); |
|
121 | + $loader = (string) App::$Request->query->get('loader'); |
|
122 | + $source = Str::lowerCase((string) App::$Request->query->get('path')); |
|
123 | 123 | |
124 | 124 | $model = new EntityDeleteRoute($type, $loader, $source); |
125 | 125 | if ($model->send()) { |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Extend\Core\Arch\FrontAppController; |
6 | 6 | use Ffcms\Core\Arch\View; |
7 | -use Apps\Model\Front\User; |
|
8 | 7 | |
9 | 8 | |
10 | 9 | class Main extends FrontAppController |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use Ffcms\Core\Helper\Date; |
10 | 10 | use Ffcms\Core\Helper\FileSystem\Directory; |
11 | 11 | use Ffcms\Core\Helper\FileSystem\File; |
12 | -use Ffcms\Core\Helper\Type\Integer; |
|
13 | 12 | use Ffcms\Core\Helper\Type\Obj; |
14 | 13 | use Ffcms\Core\Helper\Serialize; |
15 | 14 | use Ffcms\Core\Helper\Type\Str; |
@@ -43,8 +43,8 @@ discard block |
||
43 | 43 | } |
44 | 44 | |
45 | 45 | /** |
46 | - * Set model properties from active record data |
|
47 | - */ |
|
46 | + * Set model properties from active record data |
|
47 | + */ |
|
48 | 48 | public function before() |
49 | 49 | { |
50 | 50 | // is new item? |
@@ -105,8 +105,8 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | /** |
108 | - * Labels |
|
109 | - */ |
|
108 | + * Labels |
|
109 | + */ |
|
110 | 110 | public function labels() |
111 | 111 | { |
112 | 112 | return [ |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | */ |
82 | 82 | public function rules() |
83 | 83 | { |
84 | - $res = [ |
|
84 | + $res = [ |
|
85 | 85 | ['title.' . App::$Request->getLanguage(), 'required'], |
86 | 86 | ['text.' . App::$Request->getLanguage(), 'required', null, true, true], |
87 | 87 | ['text', 'used', null, true, true], |
@@ -142,8 +142,8 @@ discard block |
||
142 | 142 | $this->_content->meta_description = Serialize::encode(App::$Security->strip_tags($this->metaDescription)); |
143 | 143 | $this->_content->source = App::$Security->strip_tags($this->source); |
144 | 144 | // check if rating is changed |
145 | - if ((int)$this->addRating !== 0) { |
|
146 | - $this->_content->rating += (int)$this->addRating; |
|
145 | + if ((int) $this->addRating !== 0) { |
|
146 | + $this->_content->rating += (int) $this->addRating; |
|
147 | 147 | } |
148 | 148 | // check if special comment hash is exist |
149 | 149 | if ($this->_new || Str::length($this->_content->comment_hash) < 32) { |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | $data = ContentCategory::getSortedCategories(); |
182 | 182 | $response = []; |
183 | 183 | foreach ($data as $key=>$val) { |
184 | - $response[] = (string)$key; |
|
184 | + $response[] = (string) $key; |
|
185 | 185 | } |
186 | 186 | return $response; |
187 | 187 | } |
@@ -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; |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Apps\Model\Front\Profile; |
4 | 4 | |
5 | -use Apps\ActiveRecord\Blacklist; |
|
6 | 5 | use Apps\ActiveRecord\WallPost as WallRecords; |
7 | 6 | use Ffcms\Core\App; |
8 | 7 | use Ffcms\Core\Interfaces\iUser; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Ffcms\Core\App; |
6 | 6 | use Ffcms\Core\Arch\Model; |
7 | -use Ffcms\Core\Helper\Type\Obj; |
|
8 | 7 | use Ffcms\Core\Helper\Type\Str; |
9 | 8 | use Ffcms\Core\Interfaces\iUser; |
10 | 9 |