@@ -16,7 +16,6 @@ |
||
| 16 | 16 | use yii\db\ActiveQuery; |
| 17 | 17 | use yii\db\ActiveRecord; |
| 18 | 18 | use yii\db\Connection; |
| 19 | -use yii\db\Schema; |
|
| 20 | 19 | use yii\gii\CodeFile; |
| 21 | 20 | use yii\helpers\Inflector; |
| 22 | 21 | use yii\base\NotSupportedException; |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | |
| 74 | 74 | /** |
| 75 | 75 | * Apply confirmation. |
| 76 | - * @return boolean |
|
| 76 | + * @return false|null |
|
| 77 | 77 | * @throws \yii\base\NotSupportedException |
| 78 | 78 | */ |
| 79 | 79 | public function applyConfirmation() |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | public $queryClass; |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return \static New self without any initializations. |
|
| 62 | + * @return EntityTrait New self without any initializations. |
|
| 63 | 63 | */ |
| 64 | 64 | public static function buildNoInitModel() |
| 65 | 65 | { |
@@ -38,7 +38,6 @@ discard block |
||
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Finds an identity by the given ID. |
| 41 | - * @param string|integer $id |
|
| 42 | 41 | * @return type |
| 43 | 42 | */ |
| 44 | 43 | public static function findIdentity($identity) |
@@ -93,7 +92,7 @@ discard block |
||
| 93 | 92 | /** |
| 94 | 93 | * Validate the auth key. |
| 95 | 94 | * @param string $authKey |
| 96 | - * @return string |
|
| 95 | + * @return boolean |
|
| 97 | 96 | */ |
| 98 | 97 | public function validateAuthKey($authKey) |
| 99 | 98 | { |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | 152 | * Check if $identity existed. |
| 153 | - * @param mixed $identity |
|
| 153 | + * @param integer $identity |
|
| 154 | 154 | * @return boolean |
| 155 | 155 | */ |
| 156 | 156 | public function checkIdExists($identity) |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | * If you disable($this->enableIP = false) the IP feature, this method will |
| 116 | 116 | * return null, or return the significantly IP address(Colon hexadecimal of |
| 117 | 117 | * IPv6 or Dotted decimal of IPv4). |
| 118 | - * @return string|integer|null |
|
| 118 | + * @return null|string |
|
| 119 | 119 | */ |
| 120 | 120 | public function getIpAddress() |
| 121 | 121 | { |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | * If you disable($this->enableIP = false) the IP feature, this method will |
| 174 | 174 | * be skipped(return null). |
| 175 | 175 | * @param string $ipAddress the significantly IP address. |
| 176 | - * @return string|integer|null Integer when succeeded to convert. |
|
| 176 | + * @return null|integer Integer when succeeded to convert. |
|
| 177 | 177 | */ |
| 178 | 178 | public function setIpAddress($ipAddress) |
| 179 | 179 | { |
@@ -198,7 +198,7 @@ |
||
| 198 | 198 | /** |
| 199 | 199 | * Remove invalid blame guid from provided guid array. |
| 200 | 200 | * @param array $guids guid array of blames. |
| 201 | - * @return array guid array of blames unset invalid. |
|
| 201 | + * @return string[] guid array of blames unset invalid. |
|
| 202 | 202 | */ |
| 203 | 203 | protected function unsetInvalidBlames($guids) |
| 204 | 204 | { |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | /** |
| 122 | 122 | * Event triggered before deleting itself. |
| 123 | 123 | * @param \yii\base\ModelEvent $event |
| 124 | - * @return boolean true if parentAttribute not specified. |
|
| 124 | + * @return boolean|null true if parentAttribute not specified. |
|
| 125 | 125 | * @throws \yii\db\IntegrityException throw if $throwRestrictException is true when $onDeleteType is on restrict. |
| 126 | 126 | */ |
| 127 | 127 | public function onDeleteChildren($event) |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | /** |
| 154 | 154 | * Event triggered before updating itself. |
| 155 | 155 | * @param \yii\base\ModelEvent $event |
| 156 | - * @return boolean true if parentAttribute not specified. |
|
| 156 | + * @return boolean|null true if parentAttribute not specified. |
|
| 157 | 157 | * @throws \yii\db\IntegrityException throw if $throwRestrictException is true when $onUpdateType is on restrict. |
| 158 | 158 | */ |
| 159 | 159 | public function onUpdateChildren($event) |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | 89 | * Get whether this relation is favorite or not. |
| 90 | - * @return boolean |
|
| 90 | + * @return boolean|null |
|
| 91 | 91 | */ |
| 92 | 92 | public function getIsFavorite() |
| 93 | 93 | { |