-
Notifications
You must be signed in to change notification settings - Fork 216
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
Fixing minor code quality issues #231
Conversation
@@ -4,8 +4,6 @@ | |||
[](https://travis-ci.org/auth0/auth0-PHP) | |||
[](https://codeclimate.com/github/auth0/auth0-PHP) | |||
[](https://codeclimate.com/github/auth0/auth0-PHP/coverage) | |||
[](https://www.versioneye.com/php/auth0:auth0-php) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1,4 +1,13 @@ | |||
<?php |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary of changes:
- Spacing and indenting (automatically with
phpcbf
) - Docblocks
- Private properties get a
_
prefix - Line length = 85
@@ -49,7 +49,7 @@ public function testAll() { | |||
|
|||
$this->afterCreate($created); | |||
|
|||
$client3 = $client->update($this->getId($created), $this->getUpdateBody()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not used
@@ -4,8 +4,6 @@ | |||
[](https://travis-ci.org/auth0/auth0-PHP) | |||
[](https://codeclimate.com/github/auth0/auth0-PHP) | |||
[](https://codeclimate.com/github/auth0/auth0-PHP/coverage) | |||
[](https://www.versioneye.com/php/auth0:auth0-php) | |||
[](http://hhvm.h4cc.de/package/auth0/auth0-php) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not workin'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So monster PR, looks fine in general.
@@ -6,6 +6,8 @@ | |||
|
|||
class BlacklistsTest extends ApiTests { | |||
|
|||
private $domain; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How come no _
for this private property, or tests out of scope in this refactor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cocojoe - I ran the phpcs/phpcbf
against all the files and the list was so long that my terminal couldn't show it all 😆 so I just used it on src/API/Authentication.php
(inspected the rest) to see how much work as involved. Answer is: a lot but I think it's worth it. I would like to see 5.x.x "finished" before it's archived and I see this as part of that.
@cocojoe - Approved? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Ran through Code Inspector in PhpStorm and PHP CodeSniffer