-
-
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
Refactor files_trashbin app commands #39882
base: master
Are you sure you want to change the base?
Refactor files_trashbin app commands #39882
Conversation
$query->delete('files_trash') | ||
->where($query->expr()->eq('user', $query->createParameter('uid'))) | ||
->setParameter('uid', $uid); | ||
$query->execute(); |
Check notice
Code scanning / Psalm
DeprecatedMethod Note
$userObject = $this->userManager->get($user); | ||
$this->expireTrashForUser($userObject); | ||
} else { | ||
if (! $this->userManager->userExists($user)) { |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
|
||
$output->writeln("Remove deleted files of <info>$user</info>"); | ||
$userObject = $this->userManager->get($user); | ||
$this->expireTrashForUser($userObject); |
Check notice
Code scanning / Psalm
PossiblyNullArgument Note
|
||
$p = new ProgressBar($output); | ||
$p->start(); | ||
$this->userManager->callForSeenUsers(function (IUser $user) use ($p) { |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
42794ad
to
35b0f7a
Compare
Conflicts resolved! |
35b0f7a
to
e5e9aed
Compare
e5e9aed
to
e085779
Compare
To improve code readability. Signed-off-by: Faraz Samapoor <[email protected]>
To improve code readability. Signed-off-by: Faraz Samapoor <[email protected]>
e085779
to
754b425
Compare
Summary
I have made some adjustments to the
apps/files_trashbin/lib/Command
classes to improve the code readability.The improvements in this PR include but are not limited to:
Checklist