41 Commits

Author SHA1 Message Date
69673c0c94 Rename Object -> BaseObject for PHP 7.2 compatibility
issue #7936
2017-07-19 10:51:46 +02: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
32f4dc8997 Fixes #5385: links created from classes to corresponding guide articles (#12920) 2016-11-04 18:55:14 +03:00
0a10d6e265 Fixes #11414: Files specified as null in yii\web\AssetBundle won't be registered 2016-04-30 16:29:11 +03:00
3d719d057e review yii\web namespaces docs 2016-02-12 16:21:32 +01:00
06d499ab02 #10158: Accept arrays for 'js' as well
Also applied @samdark comments on array testing
2015-11-17 10:55:05 +01:00
cf01d5ff92 Use PHP type casting instead of ArrayHelper 2015-11-16 18:16:29 +01:00
5619e98eda Allow setting css options per CSS file in AssetBundle::, fixes #10158 2015-11-16 15:12:14 +01:00
fe4cbd30d6 Fixes #9803: Added option to register asset with scheme (reverted from commit 57dc8540fd0842a76196b92e6c86e1b3441d9c46) 2015-10-29 12:38:42 +03:00
57dc8540fd Fixes #9803: Added option to register asset with scheme 2015-10-28 14:08:56 +03:00
49ac8d790a phpdoc: added link 2015-05-08 00:00:31 +02:00
60e07e0d2a new asset WIP: renabled asset publishing 2014-09-02 14:51:44 -04:00
2f526521ce new asset WIP 2014-08-30 21:34:35 -04:00
04f49de881 new asset WIP 2014-08-28 14:21:27 -04:00
f51a263570 new asset management WIP 2014-08-27 16:44:00 -04:00
8b70a55b14 Improved global configuration of assetmanager
Added `beforeCopy`, `afterCopy`, `forceCopy` properties to AssetManager

fixes #4209
2014-07-12 13:51:05 +02:00
4fcd5003de Fixes #2906: Added support for using conditional comments for js and css files registered through asset bundles and Html helper 2014-04-26 20:25:48 -04:00
4f9e4e2c78 ensure assetmanager and baseurl to handle relative urls correctly 2014-04-25 04:06:07 +02:00
1e3989e5d1 Fix call to AssetConverter::convert() in AssetBundle 2014-04-24 13:01:05 +02:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
b9837d8d69 Change AssetBundle.register() return type to static
Enable IDE typehints for custom AssetBundle properties (related to #2572).
2014-02-27 05:50:14 -08:00
1cd3f2bbd7 Fixed test break. 2014-02-11 10:22:23 -05:00
65a8eae717 Fixes #2399: Fixed the bug that AssetBundle did not handle relative URLs correctly 2014-02-11 08:33:46 -05:00
5d23a066ca Removed unused imports 2014-01-12 23:42:55 +04:00
0c38655217 psr-4 move 2014-01-10 21:41:43 -05:00
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
f21499dd9b script WIP 2013-04-22 16:03:27 -04:00
7775e927e1 script command WIP 2013-04-22 06:50:22 -04:00
41ea94853b refactoring and documentation for asset/script management. 2013-04-19 15:19:29 -04:00
30e6d28b77 Finished asset converter. 2013-04-18 23:22:59 -04:00
d22e8ea34b Added YiiBase::importNamespaces(). 2013-04-18 15:46:01 -04:00
bab3222907 Added doc. 2013-04-18 15:29:30 -04:00
fadb528f2e script WIP 2013-04-18 12:58:45 -04:00
db2392cdda script WIP 2013-04-18 08:45:41 -04:00
82535b254d ... 2013-04-17 20:28:21 -04:00
8f9cfa2c30 draft of script/asset management is done. 2013-04-16 21:26:19 -04:00
5b412b8f84 script WIP 2013-04-16 17:42:31 -04:00
ee2d93b181 scripts WIP 2013-04-16 07:59:31 -04:00
c49222f799 script WIP 2013-04-15 15:57:34 -04:00