Skip to content

Conversation

@riasvdv
Copy link
Contributor

@riasvdv riasvdv commented Nov 1, 2025

Description

This adds rector-laravel and some additional rector rules which provide some best practices and promote consistency across the codebase.

I've picked out the ones that I think are relevant and useful and applied them to the codebase.

@riasvdv riasvdv marked this pull request as ready for review November 1, 2025 15:47
@riasvdv riasvdv requested a review from brandonkelly November 1, 2025 15:47
This reverts commit ae5fa9b.

# Conflicts:
#	rector.php
#	src/Config/GeneralConfig.php
#	src/Console/Commands/Twig/TwigClearCommand.php
#	src/Console/Commands/Utils/AsciiFilenamesCommand.php
#	src/Dashboard/Dashboard.php
#	src/Dashboard/Widgets/Widget.php
#	src/Database/Migrations/BaseFieldMergeMigration.php
#	src/Deprecator/Deprecator.php
#	src/Edition.php
#	src/Element/Drafts.php
#	src/Element/Revisions.php
#	src/Entry/Entries.php
#	src/Field/Assets.php
#	src/Field/ContentBlock.php
#	src/Field/Field.php
#	src/Field/Fields.php
#	src/Field/Link.php
#	src/Field/LinkTypes/BaseElementLinkType.php
#	src/Field/Matrix.php
#	src/FieldLayout/Concerns/HasFieldLayout.php
#	src/Http/Controllers/BaseUpdaterController.php
#	src/Http/Controllers/Dashboard/Widgets/CraftSupportController.php
#	src/Http/Controllers/Entries/StoreEntryController.php
#	src/Http/Controllers/MigrateController.php
#	src/Http/Controllers/Updates/UpdaterController.php
#	src/Http/Controllers/Utilities/DbBackupController.php
#	src/Http/Controllers/Utilities/ProjectConfigController.php
#	src/Http/EnforcesPermissions.php
#	src/Http/Middleware/CheckForUpdates.php
#	src/Http/Middleware/RequireAdmin.php
#	src/Plugin/Concerns/HasEditions.php
#	src/Plugin/Plugins.php
#	src/ProjectConfig/ProjectConfig.php
#	src/ProjectConfig/ProjectConfigHelper.php
#	src/Section/Commands/CreateCommand.php
#	src/Section/Data/SectionSiteSettings.php
#	src/Section/Rules/SingleSectionUriRule.php
#	src/Section/Sections.php
#	src/Shared/Enums/Color.php
#	src/Shared/Rules/TimeRule.php
#	src/Site/Data/Site.php
#	src/Site/Sites.php
#	src/Structure/Concerns/StructureNode.php
#	src/Structure/Events/UpdateElementEvent.php
#	src/Structure/Structures.php
#	src/Support/Composer.php
#	src/Support/Env.php
#	src/Support/Html.php
#	src/Support/Json.php
#	src/Support/PHP.php
#	src/Translation/Formatter.php
#	src/Translation/I18N.php
#	src/Utility/Utilities/ClearCaches.php
@brandonkelly brandonkelly merged commit 4a373c6 into 6.x Nov 5, 2025
11 checks passed
@brandonkelly brandonkelly deleted the feature/rector branch November 5, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants