Completed
Push — revert-action-di ( 42b856...357845 )
by Alexander
07:50
created
framework/requirements/YiiRequirementChecker.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
      * Check the given requirements, collecting results into internal field.
61 61
      * This method can be invoked several times checking different requirement sets.
62 62
      * Use [[getResult()]] or [[render()]] to get the results.
63
-     * @param array|string $requirements requirements to be checked.
63
+     * @param string $requirements requirements to be checked.
64 64
      * If an array, it is treated as the set of requirements;
65 65
      * If a string, it is treated as the path of the file, which contains the requirements;
66 66
      * @return $this self instance.
Please login to merge, or discard this patch.
framework/validators/DateValidator.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -244,7 +244,7 @@
 block discarded – undo
244 244
      * Parses date string into UNIX timestamp
245 245
      *
246 246
      * @param string $value string representing date
247
-     * @return integer|false a UNIX timestamp or `false` on failure.
247
+     * @return integer a UNIX timestamp or `false` on failure.
248 248
      */
249 249
     protected function parseDateValue($value)
250 250
     {
Please login to merge, or discard this patch.
framework/web/AssetManager.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
      * Returns the actual file path for the specified asset.
327 327
      * @param AssetBundle $bundle the asset bundle which the asset file belongs to
328 328
      * @param string $asset the asset path. This should be one of the assets listed in [[js]] or [[css]].
329
-     * @return string|boolean the actual file path, or false if the asset is specified as an absolute URL
329
+     * @return string|false the actual file path, or false if the asset is specified as an absolute URL
330 330
      */
331 331
     public function getAssetPath($bundle, $asset)
332 332
     {
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
     /**
463 463
      * Publishes a file.
464 464
      * @param string $src the asset file to be published
465
-     * @return array the path and the URL that the asset is published as.
465
+     * @return string[] the path and the URL that the asset is published as.
466 466
      * @throws InvalidParamException if the asset to be published does not exist.
467 467
      */
468 468
     protected function publishFile($src)
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
      *   it is found in the target directory. This option is used only when publishing a directory.
508 508
      *   This overrides [[forceCopy]] if set.
509 509
      *
510
-     * @return array the path directory and the URL that the asset is published as.
510
+     * @return string[] the path directory and the URL that the asset is published as.
511 511
      * @throws InvalidParamException if the asset to be published does not exist.
512 512
      */
513 513
     protected function publishDirectory($src, $options)
Please login to merge, or discard this patch.
framework/web/Request.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -426,7 +426,7 @@
 block discarded – undo
426 426
      * If the parameter does not exist, the second parameter passed to this method will be returned.
427 427
      * @param string $name the parameter name
428 428
      * @param mixed $defaultValue the default parameter value if the parameter does not exist.
429
-     * @return mixed the parameter value
429
+     * @return string the parameter value
430 430
      * @see getBodyParams()
431 431
      * @see setBodyParams()
432 432
      */
Please login to merge, or discard this patch.
framework/web/Response.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -726,7 +726,7 @@
 block discarded – undo
726 726
      * });
727 727
      * ~~~
728 728
      *
729
-     * @param string|array $url the URL to be redirected to. This can be in one of the following formats:
729
+     * @param string $url the URL to be redirected to. This can be in one of the following formats:
730 730
      *
731 731
      * - a string representing a URL (e.g. "http://example.com")
732 732
      * - a string representing a URL alias (e.g. "@example.com")
Please login to merge, or discard this patch.
framework/web/User.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
      * stored in session and reconstruct the corresponding identity object, if it has not done so before.
164 164
      * @param boolean $autoRenew whether to automatically renew authentication status if it has not been done so before.
165 165
      * This is only useful when [[enableSession]] is true.
166
-     * @return IdentityInterface|null the identity object associated with the currently logged-in user.
166
+     * @return null|boolean the identity object associated with the currently logged-in user.
167 167
      * `null` is returned if the user is not logged in (not authenticated).
168 168
      * @see login()
169 169
      * @see logout()
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * with the provided access token. If successful, it will call [[login()]] to log in the authenticated user.
255 255
      * If authentication fails or [[login()]] is unsuccessful, it will return null.
256 256
      * @param string $token the access token
257
-     * @param mixed $type the type of the token. The value of this parameter depends on the implementation.
257
+     * @param string $type the type of the token. The value of this parameter depends on the implementation.
258 258
      * For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`.
259 259
      * @return IdentityInterface|null the identity associated with the given access token. Null is returned if
260 260
      * the access token is invalid or [[login()]] is unsuccessful.
Please login to merge, or discard this patch.
framework/widgets/LinkPager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
     }
225 225
 
226 226
     /**
227
-     * @return array the begin and end pages that need to be displayed.
227
+     * @return integer[] the begin and end pages that need to be displayed.
228 228
      */
229 229
     protected function getPageRange()
230 230
     {
Please login to merge, or discard this patch.
framework/db/BaseActiveRecord.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -788,7 +788,7 @@
 block discarded – undo
788 788
      * In the above step 1 and 3, events named [[EVENT_BEFORE_DELETE]] and [[EVENT_AFTER_DELETE]]
789 789
      * will be raised by the corresponding methods.
790 790
      *
791
-     * @return integer|false the number of rows deleted, or false if the deletion is unsuccessful for some reason.
791
+     * @return boolean the number of rows deleted, or false if the deletion is unsuccessful for some reason.
792 792
      * Note that it is possible the number of rows deleted is 0, even though the deletion execution is successful.
793 793
      * @throws StaleObjectException if [[optimisticLock|optimistic locking]] is enabled and the data
794 794
      * being deleted is outdated.
Please login to merge, or discard this patch.
framework/caching/TagDependency.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     /**
61 61
      * Invalidates all of the cached data items that are associated with any of the specified [[tags]].
62 62
      * @param Cache $cache the cache component that caches the data items
63
-     * @param string|array $tags
63
+     * @param string $tags
64 64
      */
65 65
     public static function invalidate($cache, $tags)
66 66
     {
Please login to merge, or discard this patch.