Synchronization code and notifications #36
Annotations
1 error and 11 warnings
|
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/
|
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.
|
src/Service/NewSynchronizationService.php#L53
Avoid excessively long variable names like $synchronizationLogger. Keep variable name length under 20.
|
src/Service/NewSynchronizationService.php#L76
The method synchronizeFromSource() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
|
src/Service/NewSynchronizationService.php#L76
The method synchronizeFromSource() has an NPath complexity of 256. The configured NPath complexity threshold is 200.
|
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.
|
src/Service/NewSynchronizationService.php#L76
Avoid unused parameters such as '$unsafe'.
|
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.
|
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.
|
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.
|
src/Service/NewSynchronizationService.php#L195
The method synchronizeCollectionHandler() has a Cyclomatic Complexity of 10. The configured cyclomatic complexity threshold is 10.
|
This job failed
Loading