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

PHPDoc improvements and type hinting of variables. #557

Closed
wants to merge 9 commits into from

Conversation

Wilt
Copy link
Contributor

@Wilt Wilt commented Apr 8, 2015

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.

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.
@bshaffer
Copy link
Owner

bshaffer commented Apr 8, 2015

Hey, this looks great! Which code editor are you using?

@Wilt
Copy link
Contributor Author

Wilt commented Apr 8, 2015

Hello Brent,
I am happy you like my changes. I use PHP storm : https://www.jetbrains.com/phpstorm/
If you want I can also look at other classes later if I find some time.
Greetings,
Wilt

@bshaffer
Copy link
Owner

@Wilt I would love to see this standard for documenting implemented as standard across the library

Wilt added 8 commits October 8, 2015 15:25
Conflicts:
	src/OAuth2/Controller/TokenController.php
	src/OAuth2/Encryption/Jwt.php
	src/OAuth2/Server.php
	src/OAuth2/Storage/Pdo.php
+
changed getQuerystringIdentifier to getQueryStringIdentifier
@Wilt
Copy link
Contributor Author

Wilt commented Oct 9, 2015

@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.

@bshaffer bshaffer mentioned this pull request May 1, 2017
@bshaffer
Copy link
Owner

bshaffer commented May 1, 2017

merged!

@bshaffer bshaffer closed this May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants