* fix https://github.com/symfony/recipes-contrib/pull/1689#pullreques… #224
Annotations
3 errors and 8 warnings
src/PostsQuery/SearchQuery.php#L187
SearchQuery.php: The method applyTextMatchParamOnQuery uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
tests/PostsQuery/BaseQueryTest.php#L48
BaseQueryTest.php: The method testReOrderNestedPosts uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them. (ElseExpression, Clean Code Rules)
|
|
src/Controller/PostsController.php#L31
PostsController.php: The class PostsController has a coupling between objects value of 25. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
src/PostsQuery/IndexQuery.php#L24
IndexQuery.php: The method query() has an NPath complexity of 200. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
src/PostsQuery/PostsTree.php#L20
PostsTree.php: The class PostsTree has a coupling between objects value of 14. Consider to reduce the number of dependencies under 13. (CouplingBetweenObjects, Design Rules)
|
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has a Cyclomatic Complexity of 12. The configured cyclomatic complexity threshold is 10. (CyclomaticComplexity, Code Size Rules)
|
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has an NPath complexity of 384. The configured NPath complexity threshold is 200. (NPathComplexity, Code Size Rules)
|
src/PostsQuery/SearchQuery.php#L58
SearchQuery.php: The method applyQueryParamsOnQuery() has 111 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
tests/PostsQuery/BaseQueryTest.php#L53
BaseQueryTest.php: The method provideReOrderNestedPostsData() has 168 lines of code. Current threshold is set to 100. Avoid really long methods. (ExcessiveMethodLength, Code Size Rules)
|
This job failed
Loading