cuileon
489dd119a5
merge from yiisoft/yii2
6 years ago
Thoulah
a32cfcc8ef
Fixes #16266 : Fixed `yii\helpers\BaseStringHelper` where explode would not allow 0 as trim string
6 years ago
SilverFire - Dmitry Naumenko
3d96a45f6b
Fixed BC breaking change in Inflector
...
Fixes #16239
6 years ago
Paul Klimov
1b8da6d951
Add `StringHelper::matchWildcard()` ( #15389 )
...
`StringHelper::matchWildcard()` added
7 years ago
Carsten Brandt
36b535c26b
Fixes #13254 : Made `yii\helpers\StringHelper` and `yii\validators\StringValidator` independent of `Yii::$app` instance
7 years ago
Robert Korulczyk
5a8c3d537b
Enable `phpdoc_summary` rule in php-cs-fixer config ( #14675 )
...
* Enable `phpdoc_summary` rule in php-cs-fixer config.
* Fix case in "PHPDoc".
7 years ago
Robert Korulczyk
0c0942d6e2
Enable `phpdoc_add_missing_param_annotation` rule in php-cs-fixer config. ( #14681 ) [skip ci]
7 years ago
Robert Korulczyk
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.
7 years ago
sam002
a350b34c1b
Fixes additional case for #13657 which wasn't covered by tests
8 years ago
sam002
c78b9e470d
Fixes #13657 : Fixed `yii\helpers\StringHelper::truncateHtml()` skip extra tags at the end
8 years ago
Andrew Nester
953c4a8e5a
Fixes #13407 : Added URL-safe base64 encode/decode methods to `StringHelper`
8 years ago
Nikolay Oleynikov
323568c2e9
Remove trailing spaces from sources and tests ( #13621 ) [skip ci]
8 years ago
Elvira Sheina
0545bb6936
Fixed truncateHtml leaving extra tags ( #7727 )
8 years ago
Alex-Code
37caadfab8
Extra truncate HTML tests
8 years ago
Alexander Makarov
cfbe50e96d
Fixes #11026 : Fixed `StringHelper::truncateWords()` to count words properly for non-English text
9 years ago
Alexander Makarov
c17f887583
Added `StringHelper::countWords()` that given a string returns number of words in it
9 years ago
Andrew Nester
6acab778da
10629 - BaseStringHelper::truncateHtml fix - should not add suffix if words count less than needed #10629
9 years ago
SilverFire - Dima Naumenko
c128d008d3
Added more tests for StringHelper::explode
9 years ago
SilverFire - Dima Naumenko
ccd20793d4
Fixed #9911 - StringHelper::explode with skip_empty option removed item eq to 0
9 years ago
╃巡洋艦㊣
586684b050
2.0.5 bf7edc5
9 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
SilverFire
12fe0c7b85
Fixes #7488 : Added `StringHelper::explode` to perform explode with trimming and skipping of empty elements
10 years ago
Carsten Brandt
2a19b3caa0
fixed whitespace in tests
10 years ago
╃巡洋艦㊣
1468bd4d3d
version 2.0.1 84b42ab
10 years ago
Alex-Code
b2797b0370
truncate $asHtml tests
10 years ago
armab
ef127f6855
Fixes #5316 : Added `startsWith()` and `endsWith()` to `yii\helpers\StringHelper`. Methods are binary-safe, multibyte-safe and optionally case-insensitive
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
Carsten Brandt
7af92173b1
length arg of byteSubstr is now optional
10 years ago
Alexander Makarov
a620342315
Adjusted phpdoc, tests and changelog for StringHelper::truncate and StringHelper::truncateWords
11 years ago
Alex-Code
1c80b9d2cc
Test case for new truncate methods.
...
Test case for new truncate methods.
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Alexander Makarov
26767735dc
Renamed byte methods, moved path methods back to StringHelper
11 years ago
Alexander Makarov
5f2a612c78
Moved file and path related methods from StringHelper to FileHelper, renamed StringHelper byte methods not to be misused as string methods
11 years ago
Qiang Xue
1c24b3e0d8
removed TestCase and WebTestCase.
11 years ago
Carsten Brandt
949dda5fdb
tagged tests with @group tags
11 years ago
Alexander Makarov
0596fa82fd
code style fixes
11 years ago
Alexander Makarov
7cd9123c3b
Tests cleanup
...
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
12 years ago
Antonio Ramirez
641e6ee7cf
ported inflection methods from StringHelper to Inflector helper class
12 years ago
resurtm
5575f53657
CS fixes.
12 years ago
Carsten Brandt
776162b05e
created StringHelper::basename()
...
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
12 years ago
Zander Baldwin
4be9e195c2
Add Newlines
...
Appended newlines to every PHP document that did not have a newline as the last character in the file.
12 years ago
Alexander Makarov
9da81894be
moved helper test from util namespace to helpers namespace, added tests for StringHelper
12 years ago