Skip to content

New sniff to add early returns to functions that are one big if#2803

Merged
Crabcyborg merged 2 commits into
masterfrom
new_sniff_to_add_early_returns_to_big_functions_that_are_one_big_if
Jan 15, 2026
Merged

New sniff to add early returns to functions that are one big if#2803
Crabcyborg merged 2 commits into
masterfrom
new_sniff_to_add_early_returns_to_big_functions_that_are_one_big_if

Run sniff through php cs fixer

0c50d33
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jan 15, 2026 in 1s

27.09% (-0.02%) compared to 09d59eb, passed because coverage increased by 0.07% when compared to adjusted base (27.02%)

View this Pull Request on Codecov

27.09% (-0.02%) compared to 09d59eb, passed because coverage increased by 0.07% when compared to adjusted base (27.02%)

Details

Codecov Report

❌ Patch coverage is 10.52632% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.09%. Comparing base (09d59eb) to head (0c50d33).
⚠️ Report is 138 commits behind head on master.

Files with missing lines Patch % Lines
classes/controllers/FrmFormsController.php 0.00% 9 Missing ⚠️
...sses/controllers/FrmOnboardingWizardController.php 20.00% 8 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2803      +/-   ##
============================================
- Coverage     27.10%   27.09%   -0.02%     
+ Complexity     8847     8840       -7     
============================================
  Files           145      145              
  Lines         29816    29760      -56     
============================================
- Hits           8083     8063      -20     
+ Misses        21733    21697      -36     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.