Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b66b92f
refactor: use ::class constants and import namespaces
fadrian06 Sep 11, 2026
44c0ac0
refactor(auth): use null coalescing assignment for redirectUri
fadrian06 Sep 11, 2026
3039275
refactor(auth): use first-class callable syntax for ucwords
fadrian06 Sep 11, 2026
442f8ba
refactor(auth): implement Stringable interface in User class
fadrian06 Sep 11, 2026
23d11f3
refactor: remove unused exception variables in catch blocks
fadrian06 Sep 11, 2026
f58fa30
refactor: use arrow functions for concise closure syntax
fadrian06 Sep 11, 2026
cc3c3cb
refactor(Auth): use shorthand ternary operator for subscription return
fadrian06 Sep 11, 2026
96a9855
refactor(tests): replace switch with match in createTableForUsers
fadrian06 Sep 11, 2026
588a018
test: remove redundant setAccessible calls in reflection tests
fadrian06 Sep 11, 2026
3100102
refactor: enable dead-code rule and remove redundant null initializat…
fadrian06 Sep 11, 2026
c332073
docs: remove redundant PHPDoc tags
fadrian06 Oct 21, 2026
9d9f739
refactor(auth): remove redundant count check for hidden fields
fadrian06 Oct 21, 2026
4f2e12f
test: remove redundant try-catch block in login test setup
fadrian06 Oct 21, 2026
a457e52
refactor(tests): remove unused constructor in FakeBillingDriver
fadrian06 Oct 21, 2026
f3f5f07
test: remove redundant try-catch in user test setup
fadrian06 Oct 21, 2026
db54f1d
test: remove unused variable from logout callback
fadrian06 Oct 21, 2026
89611e4
refactor: remove phpstan-baseline.neon
fadrian06 Oct 21, 2026
2d465bd
style: fix PSR-12 coding standard violations in closures
fadrian06 Oct 21, 2026
f22c6a6
refactor: preserve exception stack traces and codes
fadrian06 Oct 21, 2026
800a273
refactor(Auth): replace double negation with explicit boolean cast
fadrian06 Oct 21, 2026
0251ee5
refactor(functions.php): enable strict typing
fadrian06 Oct 21, 2026
1c55050
refactor: rename catch block variables from $th to $throwable
fadrian06 Oct 21, 2026
ae4afe1
style(tests): add missing newline for better readability
fadrian06 Oct 21, 2026
bce8d12
refactor: add explicit void return type declarations
fadrian06 Oct 21, 2026
7827b11
refactor: use static return type hints for fluent interface methods
fadrian06 Oct 21, 2026
b9cb2b1
refactor: add explicit return types and parameter types to Auth classes
fadrian06 Oct 21, 2026
c28d166
refactor: add explicit return types to closures
fadrian06 Oct 21, 2026
dbaea56
style(Auth/User.php): remove redundant empty line in docblock
fadrian06 Oct 21, 2026
78d5d73
refactor(auth): add explicit return type hints to Auth class methods
fadrian06 Oct 21, 2026
7f797fc
refactor: improve type safety and strictness in Auth checks
fadrian06 Oct 21, 2026
ee8ff6e
refactor: adopt named arguments for improved code readability
fadrian06 Oct 21, 2026
d8ba98d
refactor: enable strict types and update rector configuration
fadrian06 Oct 21, 2026
caecd22
refactor(functions.php): improve type safety and performance
fadrian06 Oct 21, 2026
6587fe7
refactor: simplify and standardize docblock formatting
fadrian06 Oct 21, 2026
0d02db7
refactor(Auth.php): use static closures for middleware definitions
fadrian06 Oct 21, 2026
5b3b8d7
refactor(Auth.php): add type hints to env method
fadrian06 Oct 21, 2026
95e716b
style(Auth.php): add trailing commas to array and method arguments
fadrian06 Oct 21, 2026
1132bac
refactor(Auth.php): add type hints and return value to config method
fadrian06 Oct 21, 2026
fe43c1d
refactor(Auth.php): add explicit return types to class methods
fadrian06 Oct 21, 2026
12a22ca
refactor(Auth.php): simplify PHPDoc blocks
fadrian06 Oct 21, 2026
f187422
style(Auth/Model.php): condense docblock formatting
fadrian06 Oct 21, 2026
0758450
refactor(auth): remove unnecessary ReturnTypeWillChange attribute
fadrian06 Oct 21, 2026
6a46787
refactor(Auth/User.php): add strict return types and parameter types
fadrian06 Oct 21, 2026
fcbce09
refactor(Auth/User.php): simplify docblock comments
fadrian06 Oct 21, 2026
6cb2d77
refactor(auth): clean up docblock formatting in UsesRoles trait
fadrian06 Oct 21, 2026
6d4c543
refactor(Auth): clean up docblock formatting
fadrian06 Oct 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions alchemy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,19 @@ refactor:
php: '8.2'
fluent-new-line: true
import-names: true
sets:
- dead-code
- code-quality
- coding-style
- type-declarations
- type-declaration-docblocks
- privatization
# - naming
- named-args
- instanceof
- if
- early-return
- rector-preset

analyse:
level: 8
Expand Down
19 changes: 0 additions & 19 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,19 +0,0 @@
parameters:
ignoreErrors:
-
rawMessage: 'Method Leaf\Auth::db() should return Leaf\Db but returns Leaf\Db|null.'
identifier: return.type
count: 1
path: src/Auth.php

-
rawMessage: 'Parameter #1 $db of method Leaf\Auth\User::setDb() expects Leaf\Db, Leaf\Db|null given.'
identifier: argument.type
count: 1
path: src/Auth.php

-
rawMessage: 'Offset ''status'' might not exist on array<string, mixed>|null.'
identifier: offsetAccess.notFound
count: 2
path: src/Auth/User.php
Loading
Loading