-
Notifications
You must be signed in to change notification settings - Fork 512
Course: Filter courses by access URL if multiple URLs enabled #5694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Course: Filter courses by access URL if multiple URLs enabled #5694
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5694 +/- ##
============================================
- Coverage 38.54% 38.53% -0.02%
- Complexity 11182 11185 +3
============================================
Files 886 886
Lines 46177 46195 +18
============================================
+ Hits 17799 17800 +1
- Misses 28378 28395 +17 ☔ View full report in Codecov by Sentry. |
// use ApiPlatform\Core\Bridge\Doctrine\Orm\Extension\QueryItemExtensionInterface; | ||
|
||
final class CourseRelUserExtension implements QueryCollectionExtensionInterface // , QueryItemExtensionInterface | ||
final class CourseRelUserExtension implements QueryCollectionExtensionInterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing class doc comment
{ | ||
public function __construct( | ||
private readonly Security $security | ||
private readonly Security $security, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line indented incorrectly; expected 4 spaces, found 8
{ | ||
public function __construct( | ||
private readonly Security $security | ||
private readonly Security $security, | ||
private readonly AccessUrlHelper $accessUrlHelper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line indented incorrectly; expected 4 spaces, found 8
) | ||
->andWhere('url_rel.url = :access_url_id') | ||
->setParameter('access_url_id', $accessUrl->getId()); | ||
} else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method applyToCollection uses an else expression. Else clauses are basically not necessary and you can simplify the code by not using them.
Code Climate has analyzed commit ea18bb5 and detected 5 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
No description provided.