58 Commits

Author SHA1 Message Date
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
a87c02c712 Fix more types (#19333)
* Migration::upsert() returns void

* Unneeded `@property` tags

* Add missing `null` param/return types

* Null types for db\Query + db\ActiveQuery

* Fixed testSelect

* Null types for Validator

* Several more null types

* One more

* Make AccessRule::$allow always a boolean

It doesn't have any special null handling, so it's safe to default to false

* Validator::$skipOnEmpty is always a boolean

* Catch all throwable from Widget::widget()

* Don't limit $previous args to \Exception

The actual \Exception allows $previous to be any throwable in PHP 7+

* Add Throwable catch block to Instance::get()

* Throwable cleanup

Comment changes only.

- Document \Throwable instead of \Exception wherever appropriate
- Removed redundant exception/error classes when \Throwable is referenced

* Yii::setlogger() accepts null

* ArrayHelper::removeValue() can remove any type of value

* Change default $allow value to false
2022-04-03 11:20:21 +02:00
82be8b61cf Replacing deprecated ::className() with ::class (#18671) 2021-05-22 23:14:54 +03:00
9910519aba Revert "Fixes #16657: Ensure widgets after run event result contains the result of the rendered widget"
This reverts commit 7dc38ff4029ec96931c574dac430a924370ea039.
2018-10-01 01:04:11 +03:00
7dc38ff402 Fixes #16657: Ensure widgets after run event result contains the result of the rendered widget 2018-09-23 13:28:09 +03:00
80d0c2b05a Fixes #16365: Added $filterOnFocusOut option for GridView 2018-07-04 21:42:40 +03:00
8d8d68159d Updated PHPDocs [skip ci]
Closes #15830
2018-03-04 20:28:42 +02:00
cd42f4d2ec minor 2018-02-19 00:11:13 +02:00
65f6b59b35 @inheritdoc notation changed 2018-01-23 13:11:24 +02:00
d0c2ba43d7 Fixes #14806: Added $placeFooterAfterBody option for GridView 2018-01-22 16:32:45 +03:00
792f50759e Refactored GridView->renderColumnGroup 2017-10-04 16:50:00 +02:00
349589bf3b fixed typo in grid view docs
fixes #14736
2017-09-01 09:20:38 +02:00
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +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
80d6f7323a Do not render empty row in GridView when data is empty and emptyText set to false
Fixes #13352
close #13422
2017-05-10 09:40:29 +02:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
6ff2b3e8ab Fixes #9220: GridView::filterModel docs update (#12886) [skip ci] 2016-11-01 13:29:43 +03:00
757b3de0bf Fixes #12828: Fixed handling of nested arrays, objects in \yii\grid\GridView::guessColumns 2016-10-27 16:19:13 +03:00
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
eda1e7b027 Fixed yii\grid\GridView::guessColumns() to work with numeric column names
Closes #10580
2016-01-15 13:35:08 +02:00
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
1ea1cacc11 improved GridView docs about empty cell
fixes #9159
2015-07-22 08:35:41 +02:00
78d3a856d3 Added Json::htmlEncode() to support safer JSON data encoding in HTML code 2015-05-09 23:38:17 -04:00
cd0093f7bd rework grid/list/detail view guide and docs 2015-03-06 07:43:00 +01:00
ebdd56f0db Changed #4277 behavior 2014-11-27 20:42:31 +03:00
af50f5a290 Fixes #4277: yii\grid\GridView is no longer throwing an exception in non-debug mode when results are empty and columns aren't defined 2014-11-27 13:47:40 +03:00
bb8550886e PHP type casting 2014-10-25 15:30:03 +03:00
d82195706f UPGRADE and CHANGELOG notes for the Formatter changes 2014-09-10 17:56:25 +02:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
085f2c0142 gridview and listview use widget ID in base tag 2014-06-27 20:26:26 +02:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
b1bf636983 Fix #3531, allow more characters in \yii\grid\GridView's short array syntax for columns. 2014-05-21 19:39:38 +02:00
c15aceb094 Refactored filter error display for GridView. 2014-04-22 20:46:23 -04:00
4f6e1d305f Refactored the code for #3154 2014-04-22 18:56:05 -04:00
61841345eb Merge pull request #3164 from ivan-kolmychek/3154-gridview-filter-error-indication
GridView filter error indication added (#3154)
2014-04-23 00:25:11 +02:00
cd1152acb5 GridView/DataColumn - moved error list display into GridView 2014-04-22 18:04:43 +03:00
031fddd48c GridView - error rendering scheme changed 2014-04-22 14:56:56 +03:00
a615ef944a Fixed GridView cells calling order 2014-04-19 14:41:58 +04:00
1886877196 Render gridview table footer after table body 2014-04-19 14:41:58 +04:00
3705f17700 Issue #3154 - GridView - list of filter model validation errors added to summary 2014-04-18 12:57:47 +03:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
a7046f27d0 fix 2014-03-17 01:45:39 +02:00
23a669a394 upd for psr2 2014-03-17 00:21:45 +02:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
7c520248bf message fix. [skip ci] 2014-03-14 21:47:48 -04:00
ca3b2cd057 Fix some references to removed Html::url in phpdoc 2014-03-11 11:15:21 +01:00
6fff5662df better use @see for See in phpdoc 2014-03-11 05:38:35 +01:00
c94a40e90d added a large amount of missing documentation 2014-03-11 05:38:35 +01:00