From 54d70584c3ce7f79242ddb74a494188eec57fc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 6 Dec 2023 15:06:35 +0100 Subject: [PATCH 1/2] Enhancement: Enable class_definition fixer --- .php-cs-fixer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index 2d03dc7008..5b948de736 100644 --- a/.php-cs-fixer.php +++ b/.php-cs-fixer.php @@ -24,6 +24,7 @@ 'array_syntax' => true, 'binary_operator_spaces' => true, 'class_attributes_separation' => true, + 'class_definition' => true, 'concat_space' => [ 'spacing' => 'one', ], From 06837a79075a6f9bd7da279c677a938ea3d2fa5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Wed, 6 Dec 2023 15:07:52 +0100 Subject: [PATCH 2/2] Fix: Run 'make coding-standards' --- src/News/Entry.php | 3 ++- src/UserNotes/Sorter.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/News/Entry.php b/src/News/Entry.php index 838a56a2bd..00b82ebfd8 100755 --- a/src/News/Entry.php +++ b/src/News/Entry.php @@ -2,7 +2,8 @@ namespace phpweb\News; -class Entry { +class Entry +{ public const CATEGORIES = [ 'frontpage' => 'PHP.net frontpage news', 'releases' => 'New PHP release', diff --git a/src/UserNotes/Sorter.php b/src/UserNotes/Sorter.php index e19a3d462a..86df8a86db 100644 --- a/src/UserNotes/Sorter.php +++ b/src/UserNotes/Sorter.php @@ -2,7 +2,8 @@ namespace phpweb\UserNotes; -class Sorter { +class Sorter +{ private $maxVote; private $minVote;