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: improve code readability and error handling #207

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

0x1026
Copy link
Member

@0x1026 0x1026 commented Dec 12, 2024

This pull request includes various updates to the codebase, focusing on improving code readability, updating PHP version settings, and enhancing error handling. The most important changes include updating the PHP shorthand syntax, modifying error handling in the router, and updating the PHP version in the VS Code settings.

Code readability improvements:

Error handling improvements:

PHP version update:

@github-actions github-actions bot added area/app/views Categorizes issue or PR as related to app/views. area/routes Categorizes issue or PR as related to routes or router. kind/improvement Categorizes issue or PR as related to an improvement. labels Dec 12, 2024
@0x1026 0x1026 marked this pull request as ready for review December 12, 2024 19:33
@Copilot Copilot bot review requested due to automatic review settings December 12, 2024 19:33
@0x1026 0x1026 requested review from a team as code owners December 12, 2024 19:33
Copy link

codecov bot commented Dec 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 204 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
app/src/app/Layouts/PublicLayout.php 0.00% 16 Missing ⚠️
app/src/app/Views/Admin/Incidence/Create.php 0.00% 15 Missing ⚠️
app/src/app/Layouts/Admin/AdminLayout.php 0.00% 14 Missing ⚠️
app/src/app/Layouts/Admin/AdminInventoryLayout.php 0.00% 13 Missing ⚠️
app/src/app/Views/Admin/ElementTypes.php 0.00% 13 Missing ⚠️
app/src/app/Core/Router.php 0.00% 10 Missing ⚠️
app/src/app/Views/Admin/Contracts.php 0.00% 10 Missing ⚠️
app/src/app/Views/Admin/Users.php 0.00% 10 Missing ⚠️
app/src/app/Views/Admin/User/Edit.php 0.00% 9 Missing ⚠️
app/src/app/Views/Admin/WorkOrders.php 0.00% 8 Missing ⚠️
... and 20 more
Additional details and impacted files
@@            Coverage Diff             @@
##              main    #207      +/-   ##
==========================================
+ Coverage     5.07%   5.09%   +0.02%     
+ Complexity     278     277       -1     
==========================================
  Files           92      92              
  Lines         2660    2648      -12     
==========================================
  Hits           135     135              
+ Misses        2525    2513      -12     
Files with missing lines Coverage Δ Complexity Δ
app/src/app/Layouts/BlankLayout.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Views/Admin/Dashboard.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Views/Error.php 0.00% <0.00%> (ø) 0.00 <0.00> (?)
app/src/app/Layouts/Customer/CustomerLayout.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Views/Admin/ElementType/Edit.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Views/Admin/TaskType/Edit.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Layouts/AuthLayout.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Views/Admin/Element/Create.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Views/Admin/TaskTypes.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
app/src/app/Views/Admin/TreeType/Edit.php 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
... and 20 more

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 12 out of 32 changed files in this pull request and generated no suggestions.

Files not reviewed (20)
  • .vscode/settings.json: Language not supported
  • app/src/app/Core/Router.php: Language not supported
  • app/src/app/Layouts/Admin/AdminInventoryLayout.php: Language not supported
  • app/src/app/Layouts/Admin/AdminLayout.php: Language not supported
  • app/src/app/Layouts/AuthLayout.php: Language not supported
  • app/src/app/Layouts/BlankLayout.php: Language not supported
  • app/src/app/Layouts/Customer/CustomerLayout.php: Language not supported
  • app/src/app/Layouts/PublicLayout.php: Language not supported
  • app/src/app/Layouts/Worker/WorkerLayout.php: Language not supported
  • app/src/app/Views/Admin/Contract/Edit.php: Language not supported
  • app/src/app/Views/Admin/Contracts.php: Language not supported
  • app/src/app/Views/Admin/Dashboard.php: Language not supported
  • app/src/app/Views/Admin/Element/Create.php: Language not supported
  • app/src/app/Views/Admin/Element/Edit.php: Language not supported
  • app/src/app/Views/Admin/ElementType/Edit.php: Language not supported
  • app/src/app/Views/Admin/ElementTypes.php: Language not supported
  • app/src/app/Views/Admin/Elements.php: Language not supported
  • app/src/app/Views/Admin/Incidence/Create.php: Language not supported
  • app/src/app/Views/Admin/Incidence/SeeAllIncidences.php: Language not supported
  • app/src/app/Views/Admin/TaskType/Edit.php: Language not supported
@0x1026 0x1026 merged commit ed89ae0 into main Dec 12, 2024
14 checks passed
@0x1026 0x1026 deleted the refactor/improve-code-readability-and-user-experience branch December 12, 2024 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/app/views Categorizes issue or PR as related to app/views. area/routes Categorizes issue or PR as related to routes or router. kind/improvement Categorizes issue or PR as related to an improvement.
Projects
Status: Fet
Development

Successfully merging this pull request may close these issues.

1 participant