@@ -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) |
@@ -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 | { |
@@ -134,7 +134,7 @@ |
||
134 | 134 | * Set values in batch. |
135 | 135 | * @param array $keys meta key-value pairs. |
136 | 136 | * @param string $createdBy |
137 | - * @return false if $keys is not an array. |
|
137 | + * @return false|null if $keys is not an array. |
|
138 | 138 | */ |
139 | 139 | public static function sets($keys, $createdBy = null) |
140 | 140 | { |
@@ -141,7 +141,7 @@ |
||
141 | 141 | * If you disable($this->enableIP = false) the IP feature, this method will |
142 | 142 | * return null, or return the significantly IP address(Colon hexadecimal of |
143 | 143 | * IPv6 or Dotted decimal of IPv4). |
144 | - * @return string|integer|null |
|
144 | + * @return null|string |
|
145 | 145 | */ |
146 | 146 | public function getIpAddress() |
147 | 147 | { |