Skip to content

Commit

Permalink
1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
EvgenyOrekhov committed Mar 21, 2018
1 parent e9ece25 commit 7209364
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,19 @@ public static function create()
// Stricter than rulesets:
'braces' => true,
'class_attributes_separation' => true,
'function_to_constant' => [
'functions' => [
'get_called_class',
'get_class',
'php_sapi_name',
'phpversion',
'pi',
],
],
'single_class_element_per_statement' => true,
'single_quote' => [
'strings_containing_single_quote_chars' => true,
],

// Stricter than rulesets and defaults:
'method_argument_space' => ['ensure_fully_multiline' => true],
Expand Down Expand Up @@ -88,22 +100,27 @@ public static function create()
],

// Not in rulesets:
'array_indentation' => true,
'array_syntax' => ['syntax' => 'short'],
'align_multiline_comment' => ['comment_type' => 'phpdocs_like'],
'backtick_to_shell_exec' => true,
'combine_consecutive_issets' => true,
'combine_consecutive_unsets' => true,
'comment_to_phpdoc' => true,
'compact_nullable_typehint' => true,
'date_time_immutable' => true,
'escape_implicit_backslashes' => true,
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'final_internal_class' => true,
'fully_qualified_strict_types' => true,
'linebreak_after_opening_tag' => true,
'list_syntax' => ['syntax' => 'short'],
'mb_str_functions' => true,
'method_chaining_indentation' => true,
'multiline_comment_opening_closing' => true,
'multiline_whitespace_before_semicolons' => true,
'no_alternative_syntax' => true,
'no_null_property_initialization' => true,
'no_php4_constructor' => true,
'no_superfluous_elseif' => true,
Expand All @@ -117,6 +134,8 @@ public static function create()
'function',
],
],
'php_unit_ordered_covers' => true,
'php_unit_set_up_tear_down_visibility' => true,
'php_unit_strict' => true,
'phpdoc_add_missing_param_annotation' => true,
'phpdoc_order' => true,
Expand All @@ -125,6 +144,7 @@ public static function create()
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'string_line_ending' => true,

// Disabled ruleset configurations:
'phpdoc_align' => false,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "twinscom/php-cs-fixer-config",
"require": {
"php": ">=7.1",
"friendsofphp/php-cs-fixer": "^2.10"
"friendsofphp/php-cs-fixer": "^2.11"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit 7209364

Please sign in to comment.