sabre-io / dav

sabre/dav is a CalDAV, CardDAV and WebDAV framework for PHP
http://sabre.io
BSD 3-Clause "New" or "Revised" License
1.54k stars 347 forks source link

refactor: Refactor ternary to elvis operator where possible #1561

Closed ChristophWurst closed 2 weeks ago

ChristophWurst commented 2 months ago

This should make the code a bit easier to read.

The Elvis operator is available since PHP5.3.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ 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 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.