Skip to content

Improve API result values #43

Improve API result values

Improve API result values #43

Triggered via pull request June 13, 2024 11:35
Status Failure
Total duration 20s
Artifacts

phpcs.yml

on: pull_request
PHP_CodeSniffer
12s
PHP_CodeSniffer
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 5 warnings
PHP_CodeSniffer: api/v3/TwingleDonation/Submit.php#L276
Function's cyclomatic complexity (81) exceeds allowed maximum of 20
PHP_CodeSniffer
Process completed with exit code 1.
PHP_CodeSniffer
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP_CodeSniffer: api/v3/TwingleDonation/Submit.php#L276
Function's nesting level (6) exceeds 5; consider refactoring the function
PHP_CodeSniffer: CRM/Twingle/Profile.php#L253
Function's cyclomatic complexity (13) exceeds 10; consider refactoring the function
PHP_CodeSniffer: CRM/Twingle/Submission.php#L54
Function's cyclomatic complexity (14) exceeds 10; consider refactoring the function
PHP_CodeSniffer: CRM/Twingle/Form/Profile.php#L170
Function's cyclomatic complexity (20) exceeds 10; consider refactoring the function