Revision 467c170129a81d74dfcd142871b58c9b8cb10da2
Committed on 09/11/2017 2:50 am by
Andrew Longosz <alongosz@users.noreply.github.com> [GitHub Diff]
EZP-28161: Enable php-cs-fixer aligned with v2.7.1 settings (#25)
* EZP-28161: [CS] Created php-cs-fixer config aligned with v2.7.1 settings
* EZP-28161: [Composer] Added dev dependency for php-cs-fixer:~2.7.1
* EZP-28161: [Composer] Added composer command fix-cs
Usage:
composer fix-cs
* EZP-28161: [CS] Fixed code according to CS rules
Fixed:
1) Tests/View/SystemInfoViewBuilderTest.php (no_unused_imports)
2) Tests/SystemInfo/Collector/DoctrineDatabaseSystemInfoCollectorTest.php (no_unused_imports)
3) Tests/SystemInfo/Collector/EzcPhpSystemInfoCollectorTest.php (function_to_constant, trailing_comma_in_multiline_array)
4) View/SystemInfoViewBuilder.php (no_unused_imports)
5) SystemInfo/Registry/IdentifierBased.php (single_quote)
6) SystemInfo/OutputFormat/JsonOutputFormat.php (no_spaces_inside_parenthesis)
7) SystemInfo/OutputFormatRegistry.php (single_quote)
8) SystemInfo/OutputFormat.php (phpdoc_summary)
9) SystemInfo/EzcSystemInfoWrapper.php (phpdoc_scalar, braces)
10) SystemInfo/Collector/EzcPhpSystemInfoCollector.php (function_to_constant, phpdoc_summary)
11) SystemInfo/Collector/EzcHardwareSystemInfoCollector.php (phpdoc_summary)
12) SystemInfo/Collector/DoctrineDatabaseSystemInfoCollector.php (phpdoc_summary)
13) Command/SystemInfoDumpCommand.php (method_separation, phpdoc_indent, no_unused_imports, blank_line_before_statement, braces)
14) DependencyInjection/EzSystemsEzSupportToolsExtension.php (concat_space)
* [Travis] Created test matrix: dropped PHP 5.5 testing, added 7.1 testing
* EZP-28161: [Travis] Added CodeStyle testing using php-cs-fixer
* EZP-28161: [Travis] Disabled XDebug when running php-cs-fixer
(for better performance)