mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #12055: Changed boolean
to bool
and integer
to int
in phpdoc
This commit is contained in:

committed by
Alexander Makarov

parent
940f7c7cd4
commit
4aa935e69e
@ -81,13 +81,13 @@ class SluggableBehavior extends AttributeBehavior
|
||||
*/
|
||||
public $value;
|
||||
/**
|
||||
* @var boolean whether to generate a new slug if it has already been generated before.
|
||||
* @var bool whether to generate a new slug if it has already been generated before.
|
||||
* If true, the behavior will not generate a new slug even if [[attribute]] is changed.
|
||||
* @since 2.0.2
|
||||
*/
|
||||
public $immutable = false;
|
||||
/**
|
||||
* @var boolean whether to ensure generated slug value to be unique among owner class records.
|
||||
* @var bool whether to ensure generated slug value to be unique among owner class records.
|
||||
* If enabled behavior will validate slug uniqueness automatically. If validation fails it will attempt
|
||||
* generating unique slug value from based one until success.
|
||||
*/
|
||||
@ -157,7 +157,7 @@ class SluggableBehavior extends AttributeBehavior
|
||||
* Checks whether the new slug generation is needed
|
||||
* This method is called by [[getValue]] to check whether the new slug generation is needed.
|
||||
* You may override it to customize checking.
|
||||
* @return boolean
|
||||
* @return bool
|
||||
* @since 2.0.7
|
||||
*/
|
||||
protected function isNewSlugNeeded()
|
||||
@ -215,7 +215,7 @@ class SluggableBehavior extends AttributeBehavior
|
||||
/**
|
||||
* Checks if given slug value is unique.
|
||||
* @param string $slug slug value
|
||||
* @return boolean whether slug is unique.
|
||||
* @return bool whether slug is unique.
|
||||
*/
|
||||
protected function validateSlug($slug)
|
||||
{
|
||||
@ -239,7 +239,7 @@ class SluggableBehavior extends AttributeBehavior
|
||||
/**
|
||||
* Generates slug using configured callback or increment of iteration.
|
||||
* @param string $baseSlug base slug value
|
||||
* @param integer $iteration iteration number
|
||||
* @param int $iteration iteration number
|
||||
* @return string new slug value
|
||||
* @throws \yii\base\InvalidConfigException
|
||||
*/
|
||||
|
Reference in New Issue
Block a user