38 Commits

Author SHA1 Message Date
d880148fd0 Add php-intl dependency info for SluggableBehavior (#15997) [skip ci] 2018-03-28 13:25:31 +03:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
0adae899ce Additional fix for SluggableBehavior immutability after merge of #13449 2017-07-15 22:07:43 +03:00
d26493a287 Fixes #13378: Added skipOnEmpty option to SluggableBehaviour 2017-07-04 20:47:14 +03:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
be658f82bf release version 2.0.12 2017-06-05 16:33:41 +02:00
d0ce165ba6 Fixes #13728: Fixed the bug when yii\behaviors\SluggableBehavior wasn't preserving immutable slug values 2017-04-20 21:30:04 +03:00
ad1ce9e498 Improve sluggable behavior documentation (#13747) [skip ci] 2017-03-10 17:19:24 +03:00
b58fee7d37 Fixes #13035: Use ArrayHelper::getValue() in SluggableBehavior::getValue() 2016-11-22 13:20:45 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
217d50e4ff improved PHPdoc and @since annotations 2016-07-11 12:58:43 +02:00
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
73803ff28b Fixes #8422: added note to behaviors explaining that there's no sense in validating attributes there are set automatically 2016-04-30 21:05:33 +03:00
6936c41cf1 SluggableBahavior - PHPDoc and code style fixed; validateSlug, generateUniqueSlug - private -> protected 2016-01-23 10:42:56 +02:00
bd6b70b470 fixes some coding styles in sluggableBehavior 2016-01-23 10:42:56 +02:00
a8dfd50078 numerous refactors for SluggabeBehavior class 2016-01-23 10:42:56 +02:00
e2c8c08875 made it easier to extend SluggableBehavior slug generation
fixes #10118
2015-11-07 16:59:24 +01:00
654dbbb29e Fixes #6678: yii\behaviors\SluggableBehavior will generate a new slug only when the slug attribute is empty or the source attribute is changed 2014-12-28 11:31:18 -05:00
58516ae8a9 Fixes #6434: Added yii\behaviors\SluggableBehavior::immutable to support keeping the generated slug unchanged 2014-12-15 22:19:09 -05:00
4dd15a669f Adds immutable property fit SluggableBehavior fixes #6430 2014-12-15 22:02:49 -05:00
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
0a709b10a0 Model parameter added to yii\behaviors\Sluggable::uniqueSlugGenerator callback 2014-08-12 16:45:57 +03:00
c072cc2eaf yii\behaviors\Sluggable adjusted 2014-08-12 12:24:08 +03:00
101d771ecf yii\behaviors\Sluggable::validateSlug() fixed to respect updating record 2014-08-12 12:01:23 +03:00
f27254b9aa yii\behaviors\Sluggable simplified 2014-08-12 11:43:15 +03:00
d362af6ede yii\behaviors\Sluggable optimized 2014-08-12 11:36:50 +03:00
b062a6601d Default event for yii\behaviors\Sluggable with unique enabled changed to 'insert'. 2014-08-11 18:04:18 +03:00
327914e452 Added automatic generating of unique slug value to yii\behaviors\Sluggable 2014-08-11 17:43:00 +03:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
c7b51e2565 \yii\behaviors\SluggableBehavior updated 2014-07-23 22:58:30 -04:00
785b027dbf doc update [skip ci] 2014-06-18 17:45:10 -04:00
038257e3ed SluggableBehavior phpDoc updated 2014-06-18 19:31:39 +04:00
15f3385d53 SluggableBehavior phpDoc updated 2014-06-18 19:14:23 +04:00
f368cff3ec SluggableBehavior phpDoc updated 2014-06-18 19:10:17 +04:00
031c9cca06 SluggableBehavior phpDoc added 2014-06-18 18:56:47 +04:00
7a81fff972 SluggableBehavior updated 2014-06-18 18:32:11 +04:00
22b04c5c99 SluggableBehavior initial implementation 2014-06-17 04:08:39 +04:00