Skip to content

Cleanup and Performance#43

Merged
mbabker merged 8 commits intojoomla-framework:masterfrom
frankmayer:Performance_1
Jul 7, 2017
Merged

Cleanup and Performance#43
mbabker merged 8 commits intojoomla-framework:masterfrom
frankmayer:Performance_1

Conversation

@frankmayer
Copy link
Copy Markdown
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.

2 participants