diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f9dce3..a8752ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ This project adheres to [Semantic Versioning](https://semver.org/). The format of this change log follows the advice given at [Keep a CHANGELOG](https://keepachangelog.com). ## [Unreleased] +### Changed +- The `moodle600` standard now requires opening braces of functions, methods and classes on a new line (PSR-12): + - Enabled `PSR2.Classes.ClassDeclaration.OpenBraceNewLine`. + - Enabled `Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine`. + - Disabled `Generic.Functions.OpeningFunctionBraceKernighanRitchie`. ## [v3.9.0] - 2026-11-05 ### Added diff --git a/Standards/moodle600/Tests/Standard/fixtures/iterated/opening_braces_meet_psr12.php b/Standards/moodle600/Tests/Standard/fixtures/iterated/opening_braces_meet_psr12.php new file mode 100644 index 0000000..814100b --- /dev/null +++ b/Standards/moodle600/Tests/Standard/fixtures/iterated/opening_braces_meet_psr12.php @@ -0,0 +1,171 @@ +Coding Style Standard for Moodle 6.0 - + + + @@ -18,4 +20,14 @@ + + + + 5 + warning + + + 5 + warning +