Author: Andreas Möller (localheinz) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2023-12-06T15:11:49+01:00
Commit: https://github.com/php/web-php/commit/9709f819a42fe2420ee243855c5f622ee87c6d39 Raw diff: https://github.com/php/web-php/commit/9709f819a42fe2420ee243855c5f622ee87c6d39.diff Enhancement: Enable `class_definition` fixer (#863) Changed paths: M .php-cs-fixer.php M src/News/Entry.php M src/UserNotes/Sorter.php Diff: diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php index e615bce41b..812462b6fa 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', ], 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; -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php