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

Add Docstrings to Functions and File Headers #112

Merged
merged 9 commits into from
Jun 8, 2024

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:

"Add docstrings to all functions and file headers."

Description

This PR addresses the issue of missing docstrings in functions and file headers in several files of the codebase. The aim is to improve code readability and understanding by providing clear and concise comments.

Changes were made in the following files:

  • app/Filament/Resources/TenantResource.php
  • app/Providers/EventServiceProvider.php
  • app/Providers/Filament/ContractorPanelProvider.php
  • app/Providers/Filament/LandlordPanelProvider.php
  • routes/landlord.php
  • app/Http/Controllers/Landlord/AuthController.php (assumed to exist)

In each file, a file header was added to describe the purpose of the file or class. For methods within these files, docstrings were added to explain the purpose, parameters, and return type of the methods.

Summary of Changes

  • Added file header to TenantResource.php, EventServiceProvider.php, ContractorPanelProvider.php, LandlordPanelProvider.php, landlord.php, and AuthController.php.
  • Added docstrings to the form method in TenantResource.php.
  • Added docstrings to the panel method in ContractorPanelProvider.php and LandlordPanelProvider.php.
  • Assumed the existence of AuthController.php and added docstrings to its methods.

These changes will greatly improve the readability and maintainability of the codebase.

Copy link
Contributor Author

sweep-ai bot commented Mar 12, 2024

Rollback Files For Sweep

  • Rollback changes to app/Filament/Resources/TenantResource.php
  • Rollback changes to app/Filament/Resources/TenantResource.php
  • Rollback changes to app/Providers/EventServiceProvider.php
  • Rollback changes to app/Providers/EventServiceProvider.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
  • Rollback changes to routes/landlord.php
  • Rollback changes to routes/landlord.php
  • Rollback changes to app/Http/Controllers/Landlord/AuthController.php
  • Rollback changes to app/Http/Controllers/Landlord/AuthController.php

@curtisdelicata curtisdelicata merged commit 50d0c92 into main Jun 8, 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