Completed
Push — master ( 76c9ed...47b819 )
by vistart
10:25 queued 04:16
created
traits/ConfirmationTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
traits/EntityTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
traits/IdentityTrait.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,7 +38,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
traits/IDTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
traits/UserRelationTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
traits/MetaTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
traits/IPTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
traits/EntityQueryTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * Specify page condition.
97
-     * @param string|int $pageSize It will return all models if it is 'all',
97
+     * @param integer $pageSize It will return all models if it is 'all',
98 98
      * or it will be regarded as sum of models.
99 99
      * @param int $currentPage The current page number if it is integer begun with 0.
100 100
      * @return $this
Please login to merge, or discard this patch.
traits/SelfBlameableTrait.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     /**
127 127
      * Event triggered before deleting itself.
128 128
      * @param ModelEvent $event
129
-     * @return boolean true if parentAttribute not specified.
129
+     * @return boolean|null true if parentAttribute not specified.
130 130
      * @throws IntegrityException throw if $throwRestrictException is true when $onDeleteType is on restrict.
131 131
      */
132 132
     public function onDeleteChildren($event)
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
     /**
159 159
      * Event triggered before updating itself.
160 160
      * @param ModelEvent $event
161
-     * @return boolean true if parentAttribute not specified.
161
+     * @return boolean|null true if parentAttribute not specified.
162 162
      * @throws IntegrityException throw if $throwRestrictException is true when $onUpdateType is on restrict.
163 163
      */
164 164
     public function onUpdateChildren($event)
@@ -222,6 +222,9 @@  discard block
 block discarded – undo
222 222
         return $this->parent !== null;
223 223
     }
224 224
 
225
+    /**
226
+     * @param SelfBlameableTrait $ancestor
227
+     */
225 228
     public function hasAncestor($ancestor)
226 229
     {
227 230
         if ($this->guid == $ancestor->guid) {
Please login to merge, or discard this patch.