Skip to content

Commit

Permalink
Upgrade php-cs-fixer and phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
jltxwesley committed Mar 12, 2024
1 parent af1836f commit eb9bff0
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 159 deletions.
7 changes: 6 additions & 1 deletion .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@
'on_multiline' => 'ignore',
],

'no_blank_lines_before_namespace' => false,
'blank_lines_before_namespace' => [
'min_line_breaks' => 2,
'max_line_breaks' => 2,
],

// ensure there is no code on the same line as the PHP open tag and it is followed by a blank line.
// we use defined('SYSPATH') or die('No direct script access.') everywhere, otherwise I would turn this on.
Expand Down Expand Up @@ -134,6 +137,8 @@
// standardize spaces around ternary operator.
'ternary_operator_spaces' => true,

'single_line_empty_body' => false,

// arrays should be formatted like function/method arguments, without leading or trailing single line space.
'trim_array_spaces' => true,

Expand Down
198 changes: 40 additions & 158 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb9bff0

Please sign in to comment.