-
-
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
chore: Address review comments #37150
Conversation
try { | ||
$this->prepareUpload(dirname($sourcePath)); | ||
$this->checkPrerequisites(); | ||
} catch (StorageInvalidException|BadRequest|NotFound|PreconditionFailed $e) { | ||
return true; | ||
} | ||
[$storage, $storagePath] = $this->getUploadStorage($this->uploadPath); | ||
[$storage, ] = $this->getUploadStorage($this->uploadPath); |
Check notice
Code scanning / Psalm
PossiblyNullArgument Note
public function prepareUpload($path): void { | ||
$this->uploadFolder = $this->server->tree->getNodeForPath($path); | ||
public function prepareUpload(string $path): void { | ||
$uploadFolder = $this->server->tree->getNodeForPath($path); |
Check notice
Code scanning / Psalm
PossiblyNullPropertyFetch Note
public function prepareUpload($path): void { | ||
$this->uploadFolder = $this->server->tree->getNodeForPath($path); | ||
public function prepareUpload(string $path): void { | ||
$uploadFolder = $this->server->tree->getNodeForPath($path); |
Check notice
Code scanning / Psalm
PossiblyNullReference Note
Please don't forget to set the milestone when opening a PR 😃 |
e887c55
to
be72b4c
Compare
/** @var ICache */ | ||
private $cache; | ||
private ?Server $server = null; | ||
private ?UploadFolder $uploadFolder; |
Check notice
Code scanning / Psalm
PropertyNotSetInConstructor Note
be72b4c
to
43098a5
Compare
Signed-off-by: Julius Härtl <jus@bitgrid.net>
43098a5
to
b3b567e
Compare
Addressing review follow ups from #27034