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

Add tr() and td() functions #102

Merged
merged 11 commits into from
May 28, 2024
Merged

Add tr() and td() functions #102

merged 11 commits into from
May 28, 2024

Conversation

roxblnfk
Copy link
Member

@roxblnfk roxblnfk commented May 25, 2024

What was changed

Added tr() and td() shortcuts.

  • tr(...) equals to trap(...)->return().
  • td(...) equals to trap(...); die;
  • The both functions will send short stack trace with memory usage and delta time between calls if no arguments are passed

image

Why?

Checklist

  • Tested
    • Tested manually
    • Unit tests added
  • Documentation

Copy link

codecov bot commented May 25, 2024

Codecov Report

Attention: Patch coverage is 56.06061% with 29 lines in your changes are missing coverage. Please review.

Project coverage is 24.77%. Comparing base (78873fb) to head (5c6e473).
Report is 1 commits behind head on master.

Files Patch % Lines
src/Client/Caster/TraceCaster.php 0.00% 20 Missing ⚠️
src/functions.php 61.53% 5 Missing ⚠️
src/Client/TrapHandle.php 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #102      +/-   ##
============================================
+ Coverage     24.21%   24.77%   +0.56%     
- Complexity     1122     1135      +13     
============================================
  Files           129      132       +3     
  Lines          3403     3467      +64     
============================================
+ Hits            824      859      +35     
- Misses         2579     2608      +29     

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

src/functions.php Outdated Show resolved Hide resolved
@github-actions github-actions bot added the tests Changes in the tests label May 28, 2024
@roxblnfk roxblnfk added the enhancement New feature or request label May 28, 2024
@roxblnfk roxblnfk added this to the 1.8.0 milestone May 28, 2024
README.md Show resolved Hide resolved
@roxblnfk roxblnfk requested a review from lotyp May 28, 2024 14:55
@roxblnfk roxblnfk merged commit 7e646e0 into master May 28, 2024
21 of 22 checks passed
@roxblnfk roxblnfk deleted the tr-td-facades branch May 28, 2024 17:38
@roxblnfk roxblnfk changed the title Add tr() and td() functions Add tr() and td() functions May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tests Changes in the tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants