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
|
1501c659ac
|
Add empty lines before return statements. (#14682) [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 |
Nikolay Oleynikov
|
950e895fe0
|
Fix phpDocumentor annotations (#13905) [skip ci]
|
8 years ago |
Elvira Sheina
|
2de18cf9a5
|
Fixes #13087: Fixed getting active validators for safe attribute
|
8 years ago |
Dmitry Klyukin
|
4e9d903fed
|
Fixes #11404: `yii\base\Model::loadMultiple()` returns true even if `yii\base\Model::load()` returns false
|
8 years ago |
Alexander Makarov
|
954c771fdb
|
Code cleanup (#13113)
* Simplified code branching, named variable better
* More simple code cleanup
* More consistent line breaks before return statemetns
|
8 years ago |
Robert Korulczyk
|
4aa935e69e
|
Fixes #12055: Changed `boolean` to `bool` and `integer` to `int` in phpdoc
|
8 years ago |
Boudewijn Vahrmeijer
|
32f4dc8997
|
Fixes #5385: links created from classes to corresponding guide articles (#12920)
|
8 years ago |
Alexey Rogachev
|
e8c16a09fa
|
Fixed some typos (#12847)
|
8 years ago |
Klimov Paul
|
8de6a5117c
|
Fixed `yii\base\Model::offsetExists()` throws an exception on un-existing field
|
8 years ago |
mdmunir
|
67b5f4ea19
|
fix for unsafe validator
Closes #8145 #8139 #11153
|
9 years ago |
SilverFire - Dmitry Naumenko
|
cd87d67f34
|
Global DOCS update: ~~~ replaced with ```
|
9 years ago |
Carsten Brandt
|
00a8a6270e
|
revised docs about Model::load()
thanks to @tom-- for review.
|
9 years ago |
Carsten Brandt
|
6d9fe671de
|
various code style and whitespace adjustments
|
9 years ago |
Sebastian Chojniak
|
9012aa66bf
|
Fixed documentation according to Chg #4911
|
9 years ago |
Carsten Brandt
|
d3bd7af956
|
improved documentation of Model::load() return value
fixes #8803
close #9216
|
9 years ago |
Alexander Mohorev
|
0c5e4b7105
|
PSR-2 foreach statement
|
9 years ago |
Carsten Brandt
|
f68e970de2
|
link to PHP classes just as we do with normal classes
apidoc can handle this!
|
9 years ago |
Carsten Brandt
|
d5693cfe01
|
small improvements of Model phpdoc
|
9 years ago |
Andrew Potter
|
a0cc77d78d
|
Update Model.php
close #8463
|
9 years ago |
Klimov Paul
|
a4f760e798
|
Fixed `yii\base\Model` does not recognize scenario declared by rules using 'except'
|
10 years ago |
Carsten Brandt
|
851a914f67
|
phpdoc tweak: Model::scenarios()
|
10 years ago |
Klimov Paul
|
85ca8c3712
|
Added ability to specify hints for model attributes
|
10 years ago |
Alexander Kochetov
|
605c2d9eca
|
yii\base\Model::load() typo fix
|
10 years ago |
pana1990
|
7aae667e28
|
Fixes #6618: Added Model::addErrors()
|
10 years ago |
Carsten Brandt
|
8b79293ff2
|
added missing `@since` annotations
|
10 years ago |
Qiang Xue
|
fe546cd22f
|
Fixes #5688: Added optional `$formName` to `Model::loadMultiple()` to support customizing form name directly
|
10 years ago |
Carsten Brandt
|
ecb113f1d0
|
fixed model serializtaion example
|
10 years ago |
Carsten Brandt
|
0ed6355ee1
|
test and docs to be clear about #4558
|
10 years ago |
RichWeber
|
92cd13a913
|
pull origin
|
10 years ago |
Qiang Xue
|
da544b2676
|
Fixes #4519: `yii\base\Model::isAttributeRequired()` should check if the `when` option of the validator is set
|
10 years ago |
Thiago Talma
|
45ee387f92
|
It is not required by default when you set the "when" attribute
|
10 years ago |
Carsten Brandt
|
3a1e0f3a5c
|
property codestyle framework
|
10 years ago |
Alexander Makarov
|
0c14f47f9a
|
Fixes #3793: Changed inline autocomplete hints style to get more IDEs support
|
10 years ago |
Qiang Xue
|
8c8a389844
|
Fixes #3772: Behaviors adding validation rules do not work as expected
|
10 years ago |
Alexander Kochetov
|
7bce33f1da
|
Excess \yii\base\Model::resolveFields() method removed
|
10 years ago |
Qiang Xue
|
0b29c9607d
|
fixed broken API links [skip ci]
|
11 years ago |
Carsten Brandt
|
fa767ceaca
|
renamed attributes to attributeNames in model
fixes #3034
|
11 years ago |
Carsten Brandt
|
bf3c75147d
|
reverted breaking PHPdoc codestyle changes
issue #2852
|
11 years ago |
SonicGD
|
b5f8a4dc22
|
Reformat code te be PSR-2 compatible
|
11 years ago |
Carsten Brandt
|
40cb98bb02
|
updated `@property` annotations
|
11 years ago |
Alexander Makarov
|
c5ec3550de
|
Removed unused "use" statements
|
11 years ago |
Qiang Xue
|
3f42d5826a
|
REST wip.
|
11 years ago |
Qiang Xue
|
a8c7d36c02
|
Finished HATEOAS support.
|
11 years ago |
Qiang Xue
|
39947be66b
|
rest WIP
|
11 years ago |
Qiang Xue
|
9beba31fc0
|
rest WIP
|
11 years ago |
Alexander Makarov
|
9c0572bff9
|
Fixed `$model->load($data)` returned `true` if `$data` and `formName` were empty
|
11 years ago |
Alexander Makarov
|
d9d36006a7
|
Fixed default scenario constant in docs
|
11 years ago |
Alexander Makarov
|
91444b20c8
|
#2248: Renamed `yii\base\Model::DEFAULT_SCENARIO` to `yii\base\Model::SCENARIO_DEFAULT`
|
11 years ago |