[Sweep Rules] Refactor large functions in view files #73
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.
PR Feedback (click)
I created this PR to address this rule:
"Refactor large functions to be more modular."
Description
This PR refactors the large functions in the view files
resources/views/site_settings/edit.blade.php
andresources/views/site_settings/index.blade.php
to improve modularity and code organization.Summary of Changes
resources/views/site_settings/_form.blade.php
to separate the form HTML code for editing site settings.resources/views/site_settings/edit.blade.php
to include the form HTML code from_form.blade.php
using the@include
directive.resources/views/site_settings/edit.blade.php
.resources/views/site_settings/_table_row.blade.php
to separate the HTML code for a single row in the site settings table.resources/views/site_settings/index.blade.php
to include the table row HTML code from_table_row.blade.php
using the@include
directive.resources/views/site_settings/index.blade.php
.These changes improve modularity by breaking down the large functions into smaller components or partials, making the code more maintainable and easier to understand.