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

improve readability of code #6343

Merged
merged 2 commits into from Sep 30, 2014
Merged

improve readability of code #6343

merged 2 commits into from Sep 30, 2014

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Sep 30, 2014

  • coding style fixes

  • some PHPStorm code inspection fixes

  • few method extractions

  • removed unused methods

  • whitespace fixes

    all as part of our code cleanup strategy and to make code better readable.

tsteur and others added 2 commits September 30, 2014 07:37
…ity of code, few refactorings, all as part of our code cleanup strategy
Conflicts:
	core/Tracker/Db/Mysqli.php
tsteur added a commit that referenced this pull request Sep 30, 2014
@tsteur tsteur merged commit de5c066 into master Sep 30, 2014
@tsteur tsteur deleted the readabilityImprovements branch September 30, 2014 07:52
return Db::fetchAll(self::getSqlAccessSite("access, t2.idsite"), $login);
$sql = self::getSqlAccessSite("access, t2.idsite");

return Db::fetchAll($sql, $login);
Copy link
Contributor

Choose a reason for hiding this comment

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

Really needed? This is only one braces pair embedded.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see a huge advantage of having everything in one line. This way it is better readable and debuggable for me.

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.

None yet

2 participants