aboutsummaryrefslogtreecommitdiff
path: root/.php-cs-fixer.php
diff options
context:
space:
mode:
authorBruce Wells <brucekwells@gmail.com>2023-07-10 23:36:57 +0300
committerGitHub <noreply@github.com>2023-07-10 23:36:57 +0300
commit2a65673caea7be6766a20bf377490b5b6ece0276 (patch)
treef483b4845f23581a188cd276d279b743e32e94c4 /.php-cs-fixer.php
parente1cca194c57cf242fd8635b2e72e11e990279c95 (diff)
Composer updates (#126)
* Correct average typo * Update to PHP CS FIxer V3.21
Diffstat (limited to '.php-cs-fixer.php')
-rw-r--r--.php-cs-fixer.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php
index 534bd1d..7017c03 100644
--- a/.php-cs-fixer.php
+++ b/.php-cs-fixer.php
@@ -69,7 +69,7 @@ $config
// Replace core functions calls returning constants with the constants.
'function_to_constant' => true,
// Ensure single space between function's argument and its typehint.
- 'function_typehint_space' => true,
+ 'type_declaration_spaces' => true,
// Renames PHPDoc tags.
'general_phpdoc_tag_rename' => true,
// Function `implode` must be called with 2 arguments in the documented order.
@@ -229,7 +229,7 @@ $config
// A PHP file without end tag must always end with a single empty line feed.
'single_blank_line_at_eof' => true,
// There should be exactly one blank line before a namespace declaration.
- 'single_blank_line_before_namespace' => true,
+ 'blank_lines_before_namespace' => ['max_line_breaks' => 2, 'min_line_breaks' => 2],
// There MUST NOT be more than one property or constant declared per statement.
'single_class_element_per_statement' => true,
// There MUST be one use keyword per declaration.