Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Model/Member.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ public function import(array $data): IDeserializable {
/** @var Circle $circle */
$circle = $this->deserialize($this->getArray('circle', $data), Circle::class);
$this->setCircle($circle);
} catch (InvalidItemException $e) {
} catch (InvalidItemException) {
}

try {
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/ShareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public function import(array $data): IDeserializable {
try {
$fileCache = new FileCacheWrapper();
$this->setFileCache($fileCache->import($this->getArray('fileCache', $data)));
} catch (InvalidItemException $e) {
} catch (InvalidItemException) {
}

try {
Expand Down
16 changes: 8 additions & 8 deletions lib/Service/AvatarService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

class AvatarService {
public function __construct(
private IAppData $appData,
private IL10N $l,
private ISecureRandom $random,
private CircleService $circleService,
private FederatedEventService $federatedEventService,
private readonly IAppData $appData,
private readonly IL10N $l,
private readonly ISecureRandom $random,
private readonly CircleService $circleService,
private readonly FederatedEventService $federatedEventService,
) {
}

Expand All @@ -61,7 +61,7 @@ public function getAvatar(string $circleId): ?ISimpleFile {
}
}
}
} catch (NotFoundException $e) {
} catch (NotFoundException) {
}

return null;
Expand Down Expand Up @@ -191,12 +191,12 @@ private function deleteAvatar(string $circleId): void {
private function getAvatarFolder(string $circleId): ISimpleFolder {
try {
$folder = $this->appData->getFolder('circle-avatar');
} catch (NotFoundException $e) {
} catch (NotFoundException) {
$folder = $this->appData->newFolder('circle-avatar');
}
try {
$avatarFolder = $folder->getFolder($circleId);
} catch (NotFoundException $e) {
} catch (NotFoundException) {
$avatarFolder = $folder->newFolder($circleId);
}
return $avatarFolder;
Expand Down
2 changes: 1 addition & 1 deletion lib/Service/MaintenanceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ private function runMaintenance5(bool $forceRefresh = false): void {
try {
$this->output('Update memberships');
$this->updateAllMemberships();
} catch (Exception $e) {
} catch (Exception) {
}

try {
Expand Down
Loading