Skip to content

Improve the handling of organisations #20

Improve the handling of organisations

Improve the handling of organisations #20

Triggered via pull request May 6, 2024 13:26
Status Failure
Total duration 30s
Artifacts

phpcs.yml

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

Annotations

2 errors and 8 warnings
PHP_CodeSniffer: api/v3/TwingleDonation/Submit.php#L268
Function's cyclomatic complexity (75) 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#L268
Function's nesting level (6) exceeds 5; consider refactoring the function
PHP_CodeSniffer: CRM/Twingle/Form/Profile.php#L170
Function's cyclomatic complexity (20) exceeds 10; consider refactoring the function
PHP_CodeSniffer: CRM/Twingle/Form/Profile.php#L577
Line exceeds 120 characters; contains 148 characters
PHP_CodeSniffer: CRM/Twingle/Tools.php#L119
Line exceeds 120 characters; contains 129 characters
PHP_CodeSniffer: CRM/Twingle/Submission.php#L54
Function's cyclomatic complexity (14) exceeds 10; consider refactoring the function
PHP_CodeSniffer: CRM/Twingle/Profile.php#L252
Function's cyclomatic complexity (13) exceeds 10; consider refactoring the function
PHP_CodeSniffer: CRM/Twingle/Profile.php#L685
Line exceeds 120 characters; contains 123 characters