Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@KiNgMaR
Copy link
Contributor

@KiNgMaR KiNgMaR commented Sep 20, 2019

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Bug fix.

  • What is the current behavior?

See issues #32 and #69.

  • What is the new behavior (if this is a feature change)?

Chronological order of log entries is ensured before submission.

  • Does this PR introduce a breaking change?

No.

  • Other information:

The comparison logic is the fastest one still supported on PHP 5.6. The spaceship operator seems to be a little bit faster, but not available in PHP 5.

@coveralls
Copy link

coveralls commented Sep 20, 2019

Coverage Status

Coverage decreased (-0.5%) to 91.586% when pulling 1890a23 on KiNgMaR:Sort-Before-Submission into f53e83e on maxbanton:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.7%) to 91.388% when pulling 1890a23 on KiNgMaR:Sort-Before-Submission into f53e83e on maxbanton:master.

@maxbanton maxbanton merged commit e9bc1f2 into maxbanton:master Oct 6, 2019
usort($entries, static function (array $a, array $b) {
if ($a['timestamp'] < $b['timestamp']) {
return -1;
} elseif ($a['timestamp'] > $b['timestamp']) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why use elseif here? if suffices due to the early return in line 264...

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.

4 participants