-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
cleanup LDAP's UpdateGroups #33034
cleanup LDAP's UpdateGroups #33034
Conversation
blizzz
commented
Jun 27, 2022
•
edited
Loading
edited
- TimedJob from API
- DI of IConfig
- property types
- throws hints in phpdoc
- argument and return types
- a missing return statement
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.
Nice one, I added some (optional) suggestions to improve this a bit further ;)
*/ | ||
private function handleRemovedGroups($removedGroups) { | ||
private function handleRemovedGroups(array $removedGroups): void { | ||
$this->logger->debug( | ||
'bgJ "updateGroups" – dealing with removed groups.', | ||
['app' => 'user_ldap'] |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
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.
I agree with Carl’s remarks, plus the calls to execute should be updated to executeQuery or executeStatement.
- TimedJob from API - DI of config - property types - throws hints in phpdoc - argument and return types - replace depracet execute() with executeStatement or -Query - a missing return statement Co-authored-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
96cf2c7
to
d97f32d
Compare
Took also the optional suggestions into account 🚀 |
fb0b9a0
to
f364616
Compare
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
f364616
to
8185a3d
Compare