tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.24k stars 1.55k forks source link

Explicit indirect variable #2193

Closed MathiasReker closed 1 year ago

MathiasReker commented 2 years ago

Add curly braces to indirect variables to make them clear to understand.

szepeviktor commented 2 years ago

What tool do you use to discover these problems?

MathiasReker commented 2 years ago

What tool do you use to discover these problems?

https://github.com/FriendsOfPHP/PHP-CS-Fixer

szepeviktor commented 2 years ago

jwt-auth uses StyleCI which is PHP CS Fixer-based.

By adding your rules to https://github.com/tymondesigns/jwt-auth/blob/develop/.styleci.yml it could be automated.