Commit Graph

8965 Commits

Author SHA1 Message Date
Robert Korulczyk
a50d9d8e3e Enable include rule in php-cs-fixer (#14418) 2017-07-10 13:19:57 +03:00
Robert Korulczyk
12eb936083 Enable heredoc_to_nowdoc rule in php-cs-fixer (#14419) 2017-07-10 13:18:52 +03:00
Robert Korulczyk
fe8a0a6a2e Enable no_useless_else rule in php-cs-fixer (#14420) 2017-07-10 11:26:21 +03:00
Carsten Brandt
a7d2aaffd5 mention usage of deleteAll() in AR unlinkAll
issue #14410
2017-07-09 00:39:22 +02:00
Carsten Brandt
e0dde88b87 Merge PR #14015 branch 'db-constraints' from sergeymakinen/yii2
Implement retrieving DBMS constraints

* db-constraints2: (21 commits)
  CHANGELOG for #14105
  added missing abstract methods to ConstraintFinderTrait
  avoid dependency of SqlTokenizer on sqlite implementation
  Mention an usage magic in descriptions
  Fix an unknown variable usage bug
  updated phpdoc
  make schema cache version a constant
  Have I fixed these phpdocs? Let’s see…
  Fixed phpdoc [skip ci]
  Mark not supported constraint retrieving methods
  Add PHPDoc
  Fix typo [skip ci]
  Rename DefaultConstraint to DefaultValueConstraint
  Fix imports
  Fix merging issues & CS
  Add Command tests
  Fix constraint tests
  Disable column comment test on old CUBRID
  Fix dropping unique/indexes
  Fix schema caching on commands
  ...
2017-07-07 22:57:58 +02:00
Carsten Brandt
583a1da16c CHANGELOG for #14105 2017-07-07 22:55:14 +02:00
Carsten Brandt
53f380ca46 improved docs of Query::from()
fixes #14407
2017-07-07 13:30:19 +02:00
Carsten Brandt
f67d8d5a79 Fixed broken error page when calling an undefined method
fixes #14269
2017-07-06 13:51:36 +02:00
Carsten Brandt
93f88bb7db mention defaultRoles in getRolesByUser() docs
fixes #14393
2017-07-06 12:40:13 +02:00
Alex
266bfc0419 fix phpDoc [skip ci] (#14394)
* fix phpDoc [skip ci]

* fix phpDoc [skip ci]
2017-07-06 00:39:36 +02:00
Sergey Makinen
57857c8a36 Merge pull request #1 from cebe/db-constraints
Changes to db constraints
2017-07-05 13:45:44 +03:00
Konstantin Tsukur
cb09e1e463 calling getAttributeNames() only once
close #14389
2017-07-05 12:20:25 +02:00
Carsten Brandt
ef457c340d added missing abstract methods to ConstraintFinderTrait 2017-07-05 11:49:49 +02:00
Carsten Brandt
888f9f87b6 avoid dependency of SqlTokenizer on sqlite implementation 2017-07-05 11:40:06 +02:00
Andrew Nester
d26493a287 Fixes #13378: Added skipOnEmpty option to SluggableBehaviour 2017-07-04 20:47:14 +03:00
Sergey Makinen
ecf8984096 Mention an usage magic in descriptions 2017-07-04 19:03:00 +03:00
Sergey Makinen
f0c66c5a1d Fix an unknown variable usage bug 2017-07-04 19:01:36 +03:00
Carsten Brandt
95950d1a23 updated phpdoc 2017-07-04 14:52:05 +02:00
Carsten Brandt
3e330f8b87 make schema cache version a constant 2017-07-04 14:44:24 +02:00
Sam
e34505caad Refactored BlameableBehavior to call $app->has() to check for component existence (#14185) 2017-07-04 13:52:52 +03:00
Carsten Brandt
13d35c4e03 add notes to View register JS and CSS file methods
explain why assetmanager features are not available in these methods.

close #14382
related to #10297, #9101
2017-07-04 11:58:20 +02:00
Sergey Makinen
2b9f336dce Merge branch 'master' of https://github.com/yiisoft/yii2 into db-constraints 2017-07-03 15:12:41 +03:00
Sergey Makinen
164d3c83e9 Have I fixed these phpdocs? Let’s see… 2017-07-03 15:10:48 +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
Elvira Sheina
aca7390a47 Added closure support in yii\i18n\Formatter #4495 (#14326) 2017-07-03 11:11:35 +02:00
Alex
6aa0ed2026 Adjusted PHP 7 return types [skip ci] 2017-07-02 20:17:46 +03:00
Alexander Makarov
c91083fbe4 Fixed phpdoc [skip ci] 2017-06-30 00:13:04 +03:00
Daniel Gómez Pan
b0ad73e361 Fixes #11415: Added yii\console\widgets\Table to draw tables in console apps 2017-06-29 18:19:55 +03:00
Sergey Makinen
237e7eda3a Merge branch 'master' of https://github.com/yiisoft/yii2 into db-constraints 2017-06-28 21:42:55 +03:00
Sergey Makinen
452974cab3 Mark not supported constraint retrieving methods 2017-06-28 21:40:52 +03:00
Sergey Makinen
e0df642261 Add PHPDoc 2017-06-28 21:37:49 +03:00
Pavel Chaplygin
e38310546e Fixes #14334: Fixed \yii\db\QueryBuilder::buildNotCondition loses params when operand is \yii\db\Expression 2017-06-27 14:46:14 +03:00
Alexander Makarov
d4c15c36d0 Fixes #14304: Fixed yii\validators\UniqueValidator and yii\validators\ExistValidator to skip prefixes in case expressions are used 2017-06-27 00:02:47 +03:00
Sergey Makinen
91521d53c1 Fix typo [skip ci] 2017-06-26 21:02:52 +03:00
DaveFerger
606b6d44f4 Fixes #14321: yii\widgets\MaskedInput is now registering its JavaScript clientOptions initialization code in head section 2017-06-26 15:28:01 +03:00
Alexander Makarov
d1d60e2d19 Fixes #14341: Fixed regression in error handling introduced by fixing #14264 2017-06-24 02:28:54 +03:00
Sergey Makinen
3de6f8e397 Rename DefaultConstraint to DefaultValueConstraint 2017-06-21 12:19:16 +03:00
Brandon Kelly
6f03e8b692 Fixes #14298: The default response formatter configs defined by yii\web\Response::defaultFormatters() now use the array syntax 2017-06-21 02:04:39 +03:00
Elvira Sheina
cfaec11da5 Fixes #13824: Support extracting concatenated strings in yii message 2017-06-21 01:25:12 +03:00
Sergey Makinen
71a23cff50 Fix imports 2017-06-18 19:17:20 +03:00
Andrey Akimov
0973117de2 Fixed phpdoc yii\test\ActiveFixture::load (#14292) [skip ci] 2017-06-18 18:41:17 +03:00
Robert Korulczyk
8d05e81bd4 Fixes #14307: Fixed PHP warning when yii\console\UnknownCommandException is thrown for empty command 2017-06-18 18:40:15 +03:00
Alexander Makarov
858e801573 Fixes #14286: Used primary inputmask package name instead of an alias 2017-06-17 14:49:38 +03:00
Sergey Makinen
c8856ccd4e Fix merging issues & CS 2017-06-17 01:02:01 +03:00
Sergey Makinen
f820d2ca36 Merge branch 'master' into db-constraints 2017-06-16 16:52:43 +03: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
SilverFire - Dmitry Naumenko
cb53b2feec Fixes #14081: Added yii\caching\CacheInterface to make custom cache extensions adoption easier 2017-06-11 19:18:33 +03:00
Tigrov
2b7e8be1e8 Fixes #14192: Fixed wrong default null value for TIMESTAMP when using PostgreSQL 2017-06-11 18:48:15 +03:00
Kolyunya
9031a115b9 Fixes #13586: Added $preserveNonEmptyValues property to the yii\behaviors\AttributeBehavior 2017-06-11 17:56:06 +03:00
vladis84
f6b54e1ac8 Fixes #14089: Added tests for yii\base\Theme 2017-06-11 17:38:23 +03:00