Skip to content

Add an entity and endpoint for cloudEvents #45

Add an entity and endpoint for cloudEvents

Add an entity and endpoint for cloudEvents #45

Triggered via push October 8, 2024 08:46
Status Failure
Total duration 20s
Artifacts

phpmd.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 11 warnings
build
Process completed with exit code 2.
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
build: src/Service/NewSynchronizationService.php#L34
The class NewSynchronizationService has a coupling between objects value of 17. Consider to reduce the number of dependencies under 13.
build: src/Service/NewSynchronizationService.php#L53
Avoid excessively long variable names like $synchronizationLogger. Keep variable name length under 20.
build: src/Service/NewSynchronizationService.php#L76
The method synchronizeFromSource() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
build: src/Service/NewSynchronizationService.php#L76
The method synchronizeFromSource() has an NPath complexity of 256. The configured NPath complexity threshold is 200.
build: src/Service/NewSynchronizationService.php#L76
The method synchronizeFromSource has a boolean flag argument $unsafe, which is a certain sign of a Single Responsibility Principle violation.
build: src/Service/NewSynchronizationService.php#L76
Avoid unused parameters such as '$unsafe'.
build: src/Service/NewSynchronizationService.php#L89
The method synchronizeFromSource uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
build: src/Service/NewSynchronizationService.php#L124
The method synchronizeFromSource uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
build: src/Service/NewSynchronizationService.php#L147
The method synchronizeFromSource uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
build: src/Service/NewSynchronizationService.php#L195
The method synchronizeCollectionHandler() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.