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

refactor: Refactor ternary to elvis operator where possible #1561

Merged

Conversation

ChristophWurst
Copy link
Contributor

This should make the code a bit easier to read.

The Elvis operator is available since PHP5.3.

Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.24%. Comparing base (a9d0a90) to head (db953df).
Report is 7 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #1561   +/-   ##
=========================================
  Coverage     97.24%   97.24%           
- Complexity     2834     2836    +2     
=========================================
  Files           175      175           
  Lines          8843     8852    +9     
=========================================
+ Hits           8599     8608    +9     
  Misses          244      244           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@phil-davis phil-davis left a comment

Choose a reason for hiding this comment

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

LGTM

@phil-davis phil-davis merged commit c84cc78 into sabre-io:master Nov 5, 2024
10 checks passed
@ChristophWurst ChristophWurst deleted the refactor/ternary-to-elvis branch November 5, 2024 08:25
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