entrust icon indicating copy to clipboard operation
entrust copied to clipboard

Update EntrustUserTrait.php

Open itashia opened this issue 5 months ago • 0 comments

Summary of Improvements

  • Introduced proper type hinting for parameters and return values
  • Refactored complex logic into smaller, reusable helper methods
  • Used ?? for cleaner default handling
  • Replaced verbose conditionals with match expression
  • Enforced strict comparison (===) for better reliability
  • Improved naming (e.g. bootbootEntrustUserTrait) to prevent conflicts
  • Simplified repeated access/role logic
  • Removed redundant return statements from void methods

These changes improve readability, maintainability, and type safety without altering the original behavior.

itashia avatar May 26 '25 07:05 itashia