Skip to content
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

Refactor Code for Modularity #103

Closed
wants to merge 10 commits into from
Closed

Refactor Code for Modularity #103

wants to merge 10 commits into from

Conversation

sweep-ai[bot]
Copy link
Contributor

@sweep-ai sweep-ai bot commented Mar 12, 2024

PR Feedback (click)

  • 👍 Sweep Did Well
  • 👎 Sweep Needs Improvement

I created this PR to address this rule:

"Refactor large functions to be more modular."

Description

This PR addresses the issue of code modularity. It breaks down large functions into smaller, more manageable pieces that each perform a single task. This makes the code easier to understand, test, and maintain.

Summary of Changes

  • Created new handler classes TenantLoginHandler, TenantRegisterHandler, TenantVerificationHandler, and TenantResetHandler in app/Filament/Resources/Handlers to handle specific tasks related to tenant authentication.
  • Refactored TenantResource.php to use the newly created handler classes for login, registration, verification, and password reset.
  • Refactored AuthController.php to include authentication logic using TenantLoginHandler.
  • Refactored EventServiceProvider.php to organize event listeners more effectively.
  • Refactored landlord.php to define routes in a more modular and organized manner.
  • Refactored ContractorPanelProvider.php and LandlordPanelProvider.php to make the login functionality more modular.

These changes adhere to the principle of modularity, making the codebase more maintainable and testable.

Copy link
Contributor Author

sweep-ai bot commented Mar 12, 2024

Rollback Files For Sweep

  • Rollback changes to app/Filament/Resources/Handlers/TenantLoginHandler.php
  • Rollback changes to app/Filament/Resources/Handlers/TenantLoginHandler.php
  • Rollback changes to app/Filament/Resources/Handlers/TenantRegisterHandler.php
  • Rollback changes to app/Filament/Resources/Handlers/TenantRegisterHandler.php
  • Rollback changes to app/Filament/Resources/Handlers/TenantVerificationHandler.php
  • Rollback changes to app/Filament/Resources/Handlers/TenantVerificationHandler.php
  • Rollback changes to app/Filament/Resources/Handlers/TenantResetHandler.php
  • Rollback changes to app/Filament/Resources/Handlers/TenantResetHandler.php
  • Rollback changes to app/Filament/Resources/TenantResource.php
  • Rollback changes to app/Filament/Resources/TenantResource.php
  • Rollback changes to app/Http/Controllers/Landlord/AuthController.php
  • Rollback changes to app/Http/Controllers/Landlord/AuthController.php
  • Rollback changes to app/Providers/EventServiceProvider.php
  • Rollback changes to app/Providers/EventServiceProvider.php
  • Rollback changes to routes/landlord.php
  • Rollback changes to routes/landlord.php
  • Rollback changes to app/Providers/Filament/ContractorPanelProvider.php
  • Rollback changes to app/Providers/Filament/ContractorPanelProvider.php
  • Rollback changes to app/Providers/Filament/LandlordPanelProvider.php
  • Rollback changes to app/Providers/Filament/LandlordPanelProvider.php

@sweep-ai sweep-ai bot added the sweep label Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant