Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Static Code Analysis warnings fixed (partially) #359

Merged
merged 2 commits into from
Feb 19, 2015
Merged

Static Code Analysis warnings fixed (partially) #359

merged 2 commits into from
Feb 19, 2015

Conversation

kalessil
Copy link

Code cleanup (actually code base is in very good state): code style, if conditionals, strict types, performance. Tests are green.

Following tools are used for code analysis: PhpStorm + Php Inspections (EA Extended).

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at [email protected]. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@@ -178,7 +177,7 @@ public static function getAccessTokenFromCode($code, $appId = null, $appSecret =
{
$params = array(
'code' => $code,
'redirect_uri' => '',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm 👎 for removing trailing commas from arrays. It doesn't cause any errors and is super convenient when adding new items. One of the nice features of PHP that JavaScript got wrong. :)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And it's also a open door for copy paste =) I will revert this changes nevertheless.

@SammyK
Copy link
Contributor

SammyK commented Feb 16, 2015

👍 except for the things I commented on. :)

@kalessil
Copy link
Author

@SammyK : reverted commas, null assignments, added spaces for casting and !isset.

@SammyK
Copy link
Contributor

SammyK commented Feb 18, 2015

👍

gfosco added a commit that referenced this pull request Feb 19, 2015
Static Code Analysis warnings fixed (partially)
@gfosco gfosco merged commit 0413e1c into facebookarchive:4.0-dev Feb 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants