@@ -93,6 +93,9 @@ |
||
| 93 | 93 | return $dataProvider; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | + /** |
|
| 97 | + * @param string $demand |
|
| 98 | + */ |
|
| 96 | 99 | public static function getByDemand($demand) |
| 97 | 100 | { |
| 98 | 101 | $sizes = explode('x', $demand); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Return thumbnail width watermark or create if not exist |
| 65 | - * @param $thumb Thumbnail |
|
| 65 | + * @param Thumbnail $thumb Thumbnail |
|
| 66 | 66 | * @param $water Watermark |
| 67 | 67 | * @return thumbnail |
| 68 | 68 | */ |
@@ -121,7 +121,7 @@ |
||
| 121 | 121 | } |
| 122 | 122 | |
| 123 | 123 | /** |
| 124 | - * @param null $name |
|
| 124 | + * @param string|null $name |
|
| 125 | 125 | * @return array|null|\yii\db\ActiveRecord |
| 126 | 126 | */ |
| 127 | 127 | public static function getGroupByName($name = null) |
@@ -145,6 +145,7 @@ |
||
| 145 | 145 | /** |
| 146 | 146 | * Получает отзывы по конкретной инстанции модели |
| 147 | 147 | * @var $models \app\modules\review\models\Review[] |
| 148 | + * @param integer $formId |
|
| 148 | 149 | * @return array |
| 149 | 150 | */ |
| 150 | 151 | public static function getForObjectModel($object_model_id, $object_id, $formId, $sort = SORT_ASC) |
@@ -11,6 +11,9 @@ discard block |
||
| 11 | 11 | protected $fileHandler; |
| 12 | 12 | protected $urlsCount = 0; |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @return resource |
|
| 16 | + */ |
|
| 14 | 17 | protected function getFileHandler() |
| 15 | 18 | { |
| 16 | 19 | if ($this->fileHandler === null) { |
@@ -38,12 +41,18 @@ discard block |
||
| 38 | 41 | return rename($this->directory . $oldName, $this->directory . $newName); |
| 39 | 42 | } |
| 40 | 43 | |
| 44 | + /** |
|
| 45 | + * @param string $domain |
|
| 46 | + */ |
|
| 41 | 47 | public function __construct($directory, $domain) |
| 42 | 48 | { |
| 43 | 49 | $this->directory = $directory; |
| 44 | 50 | $this->domain = $domain; |
| 45 | 51 | } |
| 46 | 52 | |
| 53 | + /** |
|
| 54 | + * @param string $url |
|
| 55 | + */ |
|
| 47 | 56 | public function addUrl($url) |
| 48 | 57 | { |
| 49 | 58 | // @todo convert "wrong" symbols |
@@ -44,6 +44,10 @@ |
||
| 44 | 44 | return $default; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | + /** |
|
| 48 | + * @param Yml $yml |
|
| 49 | + * @param string $name |
|
| 50 | + */ |
|
| 47 | 51 | private function wrapByYmlParam($yml, $name, $model, $tpl) |
| 48 | 52 | { |
| 49 | 53 | $result = $this->getByYmlParam($yml, $name, $model); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | } |
| 92 | 92 | |
| 93 | 93 | /** |
| 94 | - * @return Response |
|
| 94 | + * @return integer |
|
| 95 | 95 | * @throws HttpException |
| 96 | 96 | */ |
| 97 | 97 | public function actionSavePropertyUnit() |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | /** |
| 240 | 240 | * Returns model using indentity map and cache |
| 241 | 241 | * @param int $id |
| 242 | - * @param int|null $isActive |
|
| 242 | + * @param integer $isActive |
|
| 243 | 243 | * @return Category|null |
| 244 | 244 | */ |
| 245 | 245 | public static function findById($id, $isActive = 1) |
@@ -275,6 +275,7 @@ discard block |
||
| 275 | 275 | /** |
| 276 | 276 | * Finds category by slug inside category_group_id |
| 277 | 277 | * Uses cache and identity_map |
| 278 | + * @param integer $category_group_id |
|
| 278 | 279 | */ |
| 279 | 280 | public static function findBySlug($slug, $category_group_id, $parent_id = 0) |
| 280 | 281 | { |
@@ -328,6 +329,7 @@ discard block |
||
| 328 | 329 | /** |
| 329 | 330 | * Ищет по name в рамках category_group_id |
| 330 | 331 | * Заносит в identity_map |
| 332 | + * @param integer $category_group_id |
|
| 331 | 333 | */ |
| 332 | 334 | public static function findByName($name, $category_group_id, $parent_id = 0) |
| 333 | 335 | { |
@@ -415,6 +417,7 @@ discard block |
||
| 415 | 417 | /** |
| 416 | 418 | * Ищет root для группы категорий |
| 417 | 419 | * Использует identity_map |
| 420 | + * @param integer $id |
|
| 418 | 421 | * @return Category|null |
| 419 | 422 | */ |
| 420 | 423 | public static function findRootForCategoryGroup($id = null) |
@@ -477,7 +480,7 @@ discard block |
||
| 477 | 480 | |
| 478 | 481 | /** |
| 479 | 482 | * @param int $parentId |
| 480 | - * @param int|null $isActive |
|
| 483 | + * @param integer $isActive |
|
| 481 | 484 | * @return Category[]|array |
| 482 | 485 | */ |
| 483 | 486 | public static function getByParentId($parentId = null, $isActive = 1) |
@@ -257,7 +257,7 @@ |
||
| 257 | 257 | |
| 258 | 258 | /** |
| 259 | 259 | * Formats price with current currency settings |
| 260 | - * @param $price |
|
| 260 | + * @param double $price |
|
| 261 | 261 | * @return string |
| 262 | 262 | */ |
| 263 | 263 | public function format($price) |