Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
feat(cs) Add PHP 7.* rules.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Aug 21, 2017
1 parent 3f57ff2 commit 746550f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions Resource/PHPCSFixer/ConfigurationFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,25 @@
return
$out->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true],
'blank_line_after_opening_tag' => true,
'cast_spaces' => true,
'concat_space' => ['spacing' => 'one'],
'declare_strict_types' => true,
'no_blank_lines_after_class_opening' => true,
'ordered_imports' => true,
'phpdoc_no_access' => true,
'no_leading_import_slash' => true,
'self_accessor' => true,
'array_syntax' => ['syntax' => 'short'],
'cast_spaces' => true,
'no_unused_imports' => true,
'no_whitespace_in_blank_line' => true,
'ordered_imports' => true,
'phpdoc_no_access' => true,
'pow_to_exponentiation' => true,
'random_api_migration' => true,
'return_type_declaration' => ['space_before' => 'none'],
'self_accessor' => true,
'ternary_to_null_coalescing' => true,
'visibility_required' => ['elements' => ['const', 'property', 'method']],
'void_return' => true,

// Hoa defined
'Hoa/author' => true,
Expand Down

0 comments on commit 746550f

Please sign in to comment.