Commit Graph

144 Commits

Author SHA1 Message Date
Carsten Brandt
69673c0c94 Rename Object -> BaseObject for PHP 7.2 compatibility
issue #7936
2017-07-19 10:51:46 +02:00
Robert Korulczyk
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
Carsten Brandt
fadeb5d2b4 added formatter as second paramter to format closure
to allow reusing the formatter in custom formats.

fixes #4495
addition to #14326
2017-07-03 11:34:20 +02:00
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.
2017-06-12 12:25:45 +03:00
Alexey Rogachev
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
Alex
533da6240e Update phpdoc, \yii\db\ActiveRecord => \yii\db\ActiveRecordInterface [skip ci] (#14076) 2017-04-30 21:14:58 +02:00
Bizley
c5296242b1 Fixes #13698: yii\grid\DataColumn filter is automatically generated as dropdown list in case of format set to boolean 2017-03-09 00:33:13 +03:00
Carsten Brandt
284cadfe03 Made ActionColumn Yii::t() tags static again (#13489)
* Made ActionColumn Yii::t() tags static again

this was changed in 2.0.11 and cause the messages translation to not
recognize them anymore.

* Fixed formatting
2017-02-02 19:46:42 +01:00
Boudewijn Vahrmeijer
7dac3ed1ca Kirkhansen 9053 add radio button column (#13126)
* Added the RadioButtonColumn class and updated the changelog.

* - several enhancements:
- unit tests added
- changelog fixed

* Update CHANGELOG.md

* small markdown fixes

* fix travis: custom ID
2016-12-05 13:58:11 +01:00
Robert Korulczyk
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
Boudewijn Vahrmeijer
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
Evgeniy Tkachenko
6ff2b3e8ab Fixes #9220: GridView::filterModel docs update (#12886) [skip ci] 2016-11-01 13:29:43 +03:00
Edgard Lorraine Messias
d3c7accc49 Added braces check for initDefaultButton (#12863) 2016-10-28 00:22:11 +03:00
Alexey Rogachev
aa6d34a285 Fixes #9796: Initialization of not existing yii\grid\ActionColumn default buttons (#12859) 2016-10-27 22:11:54 +03:00
Evgeniy Tkachenko
757b3de0bf Fixes #12828: Fixed handling of nested arrays, objects in \yii\grid\GridView::guessColumns 2016-10-27 16:19:13 +03:00
Klimov Paul
e0882a864d Added argument to yii\grid\ActionColumn::urlCreator callback, which holds reference to the column instance 2016-08-30 13:57:09 +03:00
Alexander Makarov
ffb7ca2a78 Removed unused import 2016-07-30 00:18:14 +03:00
Carsten Brandt
ee92cfa7ba release version 2.0.9 2016-07-11 15:36:42 +02:00
Carsten Brandt
217d50e4ff improved PHPdoc and @since annotations 2016-07-11 12:58:43 +02:00
Thiago Talma
60a2a54fc8 CheckboxColumn - Use CSS class to find the elements (#11729)
* Use CSS class to fetch the elements

* default null

* CHANGELOG.md

* CHANGELOG.md
2016-06-23 20:16:56 +03:00
Evgeniy Tkachenko
8e34f9f45d Update DataColumn.php (#11724) [skip ci] 2016-06-08 18:25:41 +02:00
Nikola Kovacs
9d327baa8b coding style fixes 2016-05-26 11:19:32 +02:00
SilverFire - Dmitry Naumenko
53e1018648 Updated yii\grid\DataColumn::getHeaderCellLabel() to extract attribute label from the filterModel of Grid
Closes #9950
2016-05-03 15:01:33 +03:00
SilverFire - Dmitry Naumenko
030913e7f0 Fixed code style and indentations 2016-05-03 14:51:25 +03:00
PowerGamer1
7f3511a908 Update ArrayDataProvider.php
Update DataColumn.php

Update CHANGELOG.md
2016-05-03 14:51:22 +03:00
Alexander Makarov
84827597dc Added @since tags for #10631 2016-04-23 01:27:36 +03:00
Alexander Makarov
9f45a94661 #10631: added changelog, simpified code a bit more 2016-04-22 17:07:22 +03:00
Konstantin Timoshenko
b5b55ad302 Fixes #10631: Splitted gettng label and rendering cell in yii\grid\DataColumn::renderHeaderCellContent() to make code simpler 2016-04-22 17:07:07 +03:00
SilverFire - Dmitry Naumenko
d3beca32b4 Refactored PR, updated CHANGELOG 2016-04-22 13:41:13 +03:00
SilverFire - Dmitry Naumenko
f2e8725de5 Merge branch '9074-checkboxColumn-selectedRows-fix' of https://github.com/NekitoSP/yii2 into NekitoSP-9074-checkboxColumn-selectedRows-fix 2016-04-22 11:53:35 +03:00
Taras Gudz
151610f611 Fixed #10784
Added tests for CheckboxColumn value
Updated CHANGELOG
2016-03-20 16:59:21 +02:00
Carsten Brandt
191f2a4943 fixed phpdoc type names 2016-02-25 20:24:32 +01:00
Alexander Makarov
5c4e2d4372 Removed unnecessary parentheses 2016-02-16 14:08:43 +03:00
Alexander Makarov
97bc4e0567 Fixed wrong case in method calls 2016-02-16 13:53:53 +03:00
Daniel Gomez Pan
e630072408 Add phpdoc [skip ci] 2016-01-26 18:01:17 +01:00
SilverFire - Dmitry Naumenko
275a7827c3 ActionColumn::visibleButtins() - changed PHPDoc wording 2016-01-26 10:17:16 +02:00
Vit
f17a881539 fix typo 2016-01-26 10:29:32 +03:00
Vit S
bdddcc54ad code review fixes 2016-01-25 22:56:44 +03:00
Vit S
c6c765b014 Merge branches '9198-buttons-visible-in-action-column' and 'master' of github.com:fornit1917/yii2 into 9198-buttons-visible-in-action-column 2016-01-25 21:28:54 +03:00
SilverFire - Dmitry Naumenko
6bff405287 Code style minor fix 2016-01-17 12:31:52 +02:00
SilverFire - Dmitry Naumenko
32c560e629 Merge branch 'master' into gridview-checkboxcolumn 2016-01-17 12:30:43 +02:00
SilverFire - Dmitry Naumenko
eda1e7b027 Fixed yii\grid\GridView::guessColumns() to work with numeric column names
Closes #10580
2016-01-15 13:35:08 +02:00
freezy
b6254dd68b Fixes #10056: Allowed any callable to be passed to ActionColumn::$urlCreator 2015-10-30 22:37:23 +03:00
Alexander Makarov
1b3770fd21 Use === instead of == where possible 2015-10-10 01:04:35 +03:00
Alexander Makarov
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
Vit S
88612a49b4 Merge branches '9198-buttons-visible-in-action-column' and 'master' of github.com:fornit1917/yii2 into 9198-buttons-visible-in-action-column
Conflicts:
	framework/CHANGELOG.md
2015-10-05 22:16:21 +03:00
Alexey Rogachev
ad69fb9c7e Closed #9635: Added default CSS class for \yii\grid\ActionColumn header 2015-09-10 18:01:30 +06:00
NekitoSP
3ee89ac42c selectedRows fix for $showHeader=false #9074 2015-08-14 22:03:42 +05:00
Vit S
dacd9cdcd4 add buttonsVisible suggestion (issue #9198) 2015-07-24 22:57:54 +04:00
Carsten Brandt
1ea1cacc11 improved GridView docs about empty cell
fixes #9159
2015-07-22 08:35:41 +02:00