feat: Add REST API Module and Tearsheets Feature #703
394 new issues (0 max.) of at least severity.
Here is an overview of what got changed by this pull request:
Issues
======
- Added 394
Complexity increasing per file
==============================
- lib/Companies.php 3
- js/suggest.js 24
- modules/api/handlers/MassUpdateHandler.php 30
- modules/api/handlers/MetaHandler.php 8
- modules/api/handlers/TaskHandler.php 120
- lib/WebhookSubscription.php 56
- test/security/webhook_audit.php 122
- modules/api/handlers/SubscriptionHandler.php 80
- modules/api/handlers/CandidateHandler.php 142
- modules/api/handlers/AppointmentHandler.php 92
- test/quality/code_style_audit.php 28
- modules/api/handlers/OAuthHandler.php 111
- test/functional/api_response_test.php 126
- test/security/sql_injection_audit.php 83
- modules/api/handlers/CompanyHandler.php 98
- test/security/input_validation_audit.php 99
- modules/api/handlers/JobOrderHandler.php 124
- modules/api/handlers/AttachmentHandler.php 113
- lib/Notes.php 43
- lib/ApiRequestLogger.php 16
- modules/api/handlers/PlacementHandler.php 151
- lib/ApiRateLimiter.php 13
- lib/ApiKeys.php 40
- modules/api/handlers/JobSubmissionHandler.php 76
- modules/api/handlers/AssociationHandler.php 64
- modules/api/formatters/EntityFormatter.php 439
- test/functional/crud_completeness_audit.php 47
- test/security/rate_limit_audit.php 66
- lib/Placements.php 53
- lib/JobSubmissions.php 46
- lib/Tearsheets.php 39
- lib/Appointments.php 57
- test/integration/oauth_flow_test.php 58
- lib/OAuth2Server.php 41
- test/quality/error_handling_audit.php 65
- modules/api/ApiUI.php 103
- test/integration/webhook_validation.php 34
- lib/Tasks.php 61
- lib/WebhookDispatcher.php 31
- test/security/auth_audit.php 103
- modules/api/handlers/TearsheetHandler.php 81
- test/compliance/audit_logging_validation.php 42
- test/compliance/pii_audit.php 131
- modules/api/handlers/NoteHandler.php 51
- modules/api/traits/WebhookTrigger.php 5
- modules/api/handlers/ContactHandler.php 126
- modules/api/traits/ApiHelpers.php 51
- lib/ApiResponse.php 4
Complexity decreasing per file
==============================
+ js/ckeditor-manager.js -1
See the complete overview on Codacy
Annotations
Check warning on line 59 in lib/ApiRateLimiter.php
codacy-production / Codacy Static Code Analysis
lib/ApiRateLimiter.php#L59
Avoid using static access to class 'DatabaseConnection' in method '__construct'.
Check warning on line 71 in lib/JobSubmissions.php
codacy-production / Codacy Static Code Analysis
lib/JobSubmissions.php#L71
Avoid using static access to class 'DatabaseConnection' in method '__construct'.
Check warning on line 573 in lib/JobSubmissions.php
codacy-production / Codacy Static Code Analysis
lib/JobSubmissions.php#L573
Avoid unused parameters such as '$userID'.
Check warning on line 46 in lib/OAuth2Server.php
codacy-production / Codacy Static Code Analysis
lib/OAuth2Server.php#L46
The class OAuth2Server has 14 non-getter- and setter-methods. Consider refactoring OAuth2Server to keep number of methods under 10.
Check warning on line 72 in lib/OAuth2Server.php
codacy-production / Codacy Static Code Analysis
lib/OAuth2Server.php#L72
Avoid using static access to class 'DatabaseConnection' in method '__construct'.
Check warning on line 618 in lib/OAuth2Server.php
codacy-production / Codacy Static Code Analysis
lib/OAuth2Server.php#L618
Avoid using static access to class 'DatabaseConnection' in method 'cleanup'.
Check warning on line 171 in modules/api/formatters/EntityFormatter.php
codacy-production / Codacy Static Code Analysis
modules/api/formatters/EntityFormatter.php#L171
The method formatPlacement() has a Cyclomatic Complexity of 16. The configured cyclomatic complexity threshold is 10.
Check warning on line 171 in modules/api/formatters/EntityFormatter.php
codacy-production / Codacy Static Code Analysis
modules/api/formatters/EntityFormatter.php#L171
The method formatPlacement() has an NPath complexity of 480. The configured NPath complexity threshold is 200.
Check warning on line 31 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L31
The class ContactHandler has an overall complexity of 86 which is very high. The configured complexity threshold is 50.
Check warning on line 58 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L58
handle accesses the super-global variable $_GET.
Check warning on line 91 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L91
Avoid using static access to class 'EntityFormatter' in method 'handleGetSingle'.
Check warning on line 97 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L97
The method handleList() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
Check warning on line 97 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L97
handleList accesses the super-global variable $_GET.
Check warning on line 116 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L116
Avoid using static access to class 'EntityFormatter' in method 'handleList'.
Check warning on line 129 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L129
The method handlePost() has a Cyclomatic Complexity of 28. The configured cyclomatic complexity threshold is 10.
Check warning on line 129 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L129
The method handlePost() has an NPath complexity of 33554432. The configured NPath complexity threshold is 200.
Check warning on line 208 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L208
Avoid using static access to class 'EntityFormatter' in method 'handlePost'.
Check warning on line 222 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L222
The method handlePut() has a Cyclomatic Complexity of 31. The configured cyclomatic complexity threshold is 10.
Check warning on line 222 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L222
The method handlePut() has an NPath complexity of 201326592. The configured NPath complexity threshold is 200.
Check warning on line 299 in modules/api/handlers/ContactHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/ContactHandler.php#L299
Avoid using static access to class 'EntityFormatter' in method 'handlePut'.
Check warning on line 30 in modules/api/handlers/OAuthHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/OAuthHandler.php#L30
The class OAuthHandler has 12 non-getter- and setter-methods. Consider refactoring OAuthHandler to keep number of methods under 10.
Check warning on line 30 in modules/api/handlers/OAuthHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/OAuthHandler.php#L30
The class OAuthHandler has an overall complexity of 110 which is very high. The configured complexity threshold is 50.
Check warning on line 68 in modules/api/handlers/OAuthHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/OAuthHandler.php#L68
handle accesses the super-global variable $_GET.
Check warning on line 103 in modules/api/handlers/OAuthHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/OAuthHandler.php#L103
The method handleAuthorize() has a Cyclomatic Complexity of 18. The configured cyclomatic complexity threshold is 10.
Check warning on line 103 in modules/api/handlers/OAuthHandler.php
codacy-production / Codacy Static Code Analysis
modules/api/handlers/OAuthHandler.php#L103
The method handleAuthorize() has an NPath complexity of 49152. The configured NPath complexity threshold is 200.