-
Notifications
You must be signed in to change notification settings - Fork 955
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
PHPDoc improvements and type hinting of variables. #557
Conversation
Here some suggestions for improving the PHPDoc in the `OAuth2\Controller\TokenController.php`. Currently in my php code editor it was a bit messy. Proper PHPDoc and variable declaration can really help understanding the working of this OAuth2 module. Right now I only change this controller, but if you merge this pull request I am very willing to also spend time updating/improving the PHPDoc of any other files in the repo.
Hey, this looks great! Which code editor are you using? |
Hello Brent, |
@Wilt I would love to see this standard for documenting implemented as standard across the library |
Conflicts: src/OAuth2/Controller/TokenController.php src/OAuth2/Encryption/Jwt.php src/OAuth2/Server.php src/OAuth2/Storage/Pdo.php
+ changed getQuerystringIdentifier to getQueryStringIdentifier
@bshaffer I finally found some time to work myself through the library and add php-docs and type hinting as in the example. I tried to be as thorough as possible and I think it is a good start. I believe it will also motivate other contributors to improve/update the php-doc even more. I did not manage to add docs to all Storage classes yet, but this can be added later. Hope you like it. |
merged! |
Here some suggestions for improving the PHPDoc in the
OAuth2\Controller\TokenController.php
.Currently in my php code editor it looked all a bit messy. Proper PHPDoc and variable declaration can really help understanding the working of this OAuth2 module.
Right now I only change this controller, but if you merge this pull request I am very willing to also spend time updating/improving the PHPDoc of any other files in the repo.