-
Notifications
You must be signed in to change notification settings - Fork 681
[6.x] Add rector-laravel #18012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[6.x] Add rector-laravel #18012
+715
−598
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.