@@ -7,5 +7,9 @@ |
||
| 7 | 7 | interface SpamCheckable |
| 8 | 8 | { |
| 9 | 9 | public function check(); |
| 10 | + |
|
| 11 | + /** |
|
| 12 | + * @return string |
|
| 13 | + */ |
|
| 10 | 14 | public function getType(); |
| 11 | 15 | } |
| 12 | 16 | \ No newline at end of file |
@@ -16,6 +16,9 @@ discard block |
||
| 16 | 16 | const EVENT_PRE_DECORATOR = 'pre-decorator'; |
| 17 | 17 | const EVENT_POST_DECORATOR = 'post-decorator'; |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $methodName |
|
| 21 | + */ |
|
| 19 | 22 | protected function renderDecorator($methodName, $view, $params = []) |
| 20 | 23 | { |
| 21 | 24 | if (!empty(Yii::$app->response->title)) { |
@@ -91,6 +94,7 @@ discard block |
||
| 91 | 94 | |
| 92 | 95 | /** |
| 93 | 96 | * @inheritdoc |
| 97 | + * @param string $view |
|
| 94 | 98 | */ |
| 95 | 99 | public function render($view, $params = []) |
| 96 | 100 | { |
@@ -99,6 +103,7 @@ discard block |
||
| 99 | 103 | |
| 100 | 104 | /** |
| 101 | 105 | * @inheritdoc |
| 106 | + * @param string $view |
|
| 102 | 107 | */ |
| 103 | 108 | public function renderAjax($view, $params = []) |
| 104 | 109 | { |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | * Installs module |
| 32 | 32 | * @param bool $applyAppMigrations |
| 33 | 33 | * @param bool $updateComposer |
| 34 | - * @return mixed |
|
| 34 | + * @return boolean |
|
| 35 | 35 | */ |
| 36 | 36 | public static function installModule($applyAppMigrations = true, $updateComposer = true) |
| 37 | 37 | { |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - * @return string|null |
|
| 64 | + * @return null|\yii\web\Response |
|
| 65 | 65 | */ |
| 66 | 66 | public function customCheck() |
| 67 | 67 | { |
@@ -31,6 +31,9 @@ |
||
| 31 | 31 | : $name; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $name |
|
| 36 | + */ |
|
| 34 | 37 | protected function saveEav($id, $groupId, $name, $value) |
| 35 | 38 | { |
| 36 | 39 | $key = $this->getKey($name); |
@@ -79,6 +79,7 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Возвращает модель по ID с использованием IdentityMap |
| 82 | + * @param integer $id |
|
| 82 | 83 | */ |
| 83 | 84 | public static function findById($id) |
| 84 | 85 | { |
@@ -139,7 +140,7 @@ discard block |
||
| 139 | 140 | } |
| 140 | 141 | |
| 141 | 142 | /** |
| 142 | - * @param $name |
|
| 143 | + * @param string $name |
|
| 143 | 144 | * @return null|int |
| 144 | 145 | */ |
| 145 | 146 | public static function findByName($name) |
@@ -137,6 +137,9 @@ |
||
| 137 | 137 | return $result; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param integer $view_id |
|
| 142 | + */ |
|
| 140 | 143 | public static function deleteByViewId($view_id = null) |
| 141 | 144 | { |
| 142 | 145 | if (null === $view_id) { |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * @param string $key ContentBlock key |
| 292 | 292 | * @param array $params . Array of params to be replaced while render |
| 293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
| 294 | - * @return mixed |
|
| 294 | + * @return string |
|
| 295 | 295 | */ |
| 296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
| 297 | 297 | { |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * @param string $key |
| 94 | 94 | * @param bool $valueOnly |
| 95 | 95 | * @param mixed $defaultValue |
| 96 | - * @return ContentBlock|string |
|
| 96 | + * @return string |
|
| 97 | 97 | */ |
| 98 | 98 | public static function getChunk($key, $valueOnly = true, $defaultValue = null) |
| 99 | 99 | { |