Conversation
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Member
Those are easily fixable with rector :) |
provokateurin
approved these changes
May 15, 2025
come-nc
commented
May 15, 2025
Comment on lines
103
to
+114
| $this->userManager = $userManager; | ||
| $this->rootFolder = $rootFolder; | ||
| $this->l10n = $l10n; | ||
| $this->logger = OC::$server->get(LoggerInterface::class); | ||
| $this->logger = Server::get(LoggerInterface::class); | ||
| $this->urlGenerator = $urlGenerator; | ||
|
|
||
| $this->federatedUserService = OC::$server->get(FederatedUserService::class); | ||
| $this->federatedEventService = OC::$server->get(FederatedEventService::class); | ||
| $this->shareWrapperService = OC::$server->get(ShareWrapperService::class); | ||
| $this->shareTokenService = OC::$server->get(ShareTokenService::class); | ||
| $this->circleService = OC::$server->get(CircleService::class); | ||
| $this->eventService = OC::$server->get(EventService::class); | ||
| $this->federatedUserService = Server::get(FederatedUserService::class); | ||
| $this->federatedEventService = Server::get(FederatedEventService::class); | ||
| $this->shareWrapperService = Server::get(ShareWrapperService::class); | ||
| $this->shareTokenService = Server::get(ShareTokenService::class); | ||
| $this->circleService = Server::get(CircleService::class); | ||
| $this->eventService = Server::get(EventService::class); |
Contributor
Author
There was a problem hiding this comment.
Should all be promoted properties from DI.
Comment on lines
41
to
47
| public function __construct() { | ||
| parent::__construct( | ||
| OC::$server->get(IDBConnection::class), | ||
| OC::$server->get(SystemConfig::class), | ||
| OC::$server->get(LoggerInterface::class) | ||
| Server::get(IDBConnection::class), | ||
| Server::get(SystemConfig::class), | ||
| Server::get(LoggerInterface::class) | ||
| ); | ||
| } |
Contributor
Author
There was a problem hiding this comment.
Why?
Let’s remove this constructor?
Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Contributor
Author
|
The rest can be in follow-ups |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The diff is not that huge.
A few things could be improved, there are useless
@varannotations, and also weird constructors intead of proper DI usage.