Completed
Pull Request — 2.1-date-format-consistency (#11234)
by
unknown
40:11
created
extensions/authclient/BaseOAuth.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     }
109 109
 
110 110
     /**
111
-     * @param array|OAuthToken $token
111
+     * @param OAuthToken $token
112 112
      */
113 113
     public function setAccessToken($token)
114 114
     {
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
 
295 295
     /**
296 296
      * Converts XML document to array.
297
-     * @param string|\SimpleXMLElement $xml xml to process.
297
+     * @param string $xml xml to process.
298 298
      * @return array XML array representation.
299 299
      */
300 300
     protected function convertXmlToArray($xml)
Please login to merge, or discard this patch.
extensions/authclient/OAuthToken.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
     /**
100 100
      * Sets param by name.
101 101
      * @param string $name param name.
102
-     * @param mixed $value param value,
102
+     * @param string $value param value,
103 103
      */
104 104
     public function setParam($name, $value)
105 105
     {
Please login to merge, or discard this patch.
extensions/authclient/OpenId.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@
 block discarded – undo
232 232
      * @param string $url request URL.
233 233
      * @param string $method request method.
234 234
      * @param array $params request parameters.
235
-     * @return array|string response.
235
+     * @return string response.
236 236
      * @throws \yii\base\Exception on failure.
237 237
      */
238 238
     protected function sendRequest($url, $method = 'GET', $params = [])
Please login to merge, or discard this patch.
extensions/debug/panels/AssetPanel.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      *
76 76
      * @param AssetBundle[] $bundles Array of bundles to formatting.
77 77
      *
78
-     * @return AssetManager
78
+     * @return AssetBundle[]
79 79
      */
80 80
     protected function format(array $bundles)
81 81
     {
Please login to merge, or discard this patch.
extensions/elasticsearch/ActiveQuery.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -250,6 +250,7 @@
 block discarded – undo
250 250
 
251 251
     /**
252 252
      * @inheritdoc
253
+     * @param string $field
253 254
      */
254 255
     public function column($field, $db = null)
255 256
     {
Please login to merge, or discard this patch.
extensions/elasticsearch/Command.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -141,8 +141,8 @@  discard block
 block discarded – undo
141 141
 
142 142
     /**
143 143
      * gets a document from the index
144
-     * @param $index
145
-     * @param $type
144
+     * @param string $index
145
+     * @param string $type
146 146
      * @param $id
147 147
      * @param array $options
148 148
      * @return mixed
@@ -157,8 +157,8 @@  discard block
 block discarded – undo
157 157
      * gets multiple documents from the index
158 158
      *
159 159
      * TODO allow specifying type and index + fields
160
-     * @param $index
161
-     * @param $type
160
+     * @param string $index
161
+     * @param string $type
162 162
      * @param $ids
163 163
      * @param array $options
164 164
      * @return mixed
@@ -199,8 +199,8 @@  discard block
 block discarded – undo
199 199
 
200 200
     /**
201 201
      * deletes a document from the index
202
-     * @param $index
203
-     * @param $type
202
+     * @param string $index
203
+     * @param string $type
204 204
      * @param $id
205 205
      * @param array $options
206 206
      * @return mixed
@@ -213,8 +213,8 @@  discard block
 block discarded – undo
213 213
 
214 214
     /**
215 215
      * updates a document
216
-     * @param $index
217
-     * @param $type
216
+     * @param string $index
217
+     * @param string $type
218 218
      * @param $id
219 219
      * @param array $options
220 220
      * @return mixed
Please login to merge, or discard this patch.
extensions/elasticsearch/Connection.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -274,9 +274,9 @@  discard block
 block discarded – undo
274 274
     /**
275 275
      * Creates URL
276 276
      *
277
-     * @param mixed $path path
277
+     * @param string $path path
278 278
      * @param array $options URL options
279
-     * @return array
279
+     * @return string
280 280
      */
281 281
     private function createUrl($path, $options = [])
282 282
     {
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
     /**
433 433
      * Try to decode error information if it is valid json, return it if not.
434
-     * @param $body
434
+     * @param string $body
435 435
      * @return mixed
436 436
      */
437 437
     protected function decodeErrorBody($body)
Please login to merge, or discard this patch.
extensions/faker/FixtureController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
     /**
226 226
      * Prompts user with confirmation if caches should be flushed.
227 227
      * @param array $cachesNames
228
-     * @return boolean
228
+     * @return boolean|null
229 229
      */
230 230
     private function confirmFlush($cachesNames)
231 231
     {
Please login to merge, or discard this patch.
extensions/gii/CodeFile.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     /**
151 151
      * Returns diff or false if it cannot be calculated
152 152
      *
153
-     * @return boolean|string
153
+     * @return false|string
154 154
      */
155 155
     public function diff()
156 156
     {
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
      * Renders diff between two sets of lines
169 169
      *
170 170
      * @param mixed $lines1
171
-     * @param mixed $lines2
171
+     * @param string $lines2
172 172
      * @return string
173 173
      */
174 174
     private function renderDiff($lines1, $lines2)
Please login to merge, or discard this patch.