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

Cleanup and Performance #43

Merged
merged 8 commits into from
Jul 7, 2017
Merged

Cleanup and Performance #43

merged 8 commits into from
Jul 7, 2017

Conversation

frankmayer
Copy link
Contributor

Summary of Changes

  • replace substr with array access

  • no need to check if there is a closing curly brace. json_decode will later cause an exception if there is a problem with JSON. Also ini files (strings) do not have curly braces at start/end

  • extracted an array accessed variable that was looped unnecessarily in a loop

  • type safe comparisons

  • removal of unnecessary parentheses

  • double quotes to single quotes

  • replace is_null()

  • flip conditions where the latter was cheaper

  • formatting

  • [tests]

    • quotes to doublequotes
    • replaced assertions

Testing Instructions

Code review?

- no need to check if there is a closing curly brace. json_decode will later cause an exception if there is a problem with JSON. Also ini files (strings) do not have curly braces at start/end
…in a loop

- type safe comparisons
- removal of unnecessary parentheses
- double quotes to single quotes
- replace is_null()
- flip conditions where the latter was cheaper
- formatting
- formatting
- quotes to doublequotes
- replaced assertions
@mbabker mbabker merged commit 0406266 into joomla-framework:master Jul 7, 2017
@frankmayer frankmayer deleted the Performance_1 branch July 7, 2017 18:31
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