diff --git a/composer.lock b/composer.lock index 28cf5028e8b..089f2eb79cd 100644 --- a/composer.lock +++ b/composer.lock @@ -139,16 +139,16 @@ }, { "name": "nextcloud/coding-standard", - "version": "v1.2.1", + "version": "v1.2.3", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e" + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", - "reference": "cf5f18d989ec62fb4cdc7fc92a36baf34b3d829e", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/bc9c53a5306114b60c4363057aff9c2ed10a54da", + "reference": "bc9c53a5306114b60c4363057aff9c2ed10a54da", "shasum": "" }, "require": { @@ -174,9 +174,9 @@ "description": "Nextcloud coding standards for the php cs fixer", "support": { "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.1" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.2.3" }, - "time": "2024-02-01T14:54:37+00:00" + "time": "2024-08-23T14:32:32+00:00" }, { "name": "nextcloud/ocp", @@ -401,16 +401,16 @@ }, { "name": "php-cs-fixer/shim", - "version": "v3.61.1", + "version": "v3.62.0", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/shim.git", - "reference": "3ac8e446863e313b51a9466915c9b578409eef9e" + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/3ac8e446863e313b51a9466915c9b578409eef9e", - "reference": "3ac8e446863e313b51a9466915c9b578409eef9e", + "url": "https://api.github.com/repos/PHP-CS-Fixer/shim/zipball/7a91d5ce45c486f5b445d95901228507a02f60ae", + "reference": "7a91d5ce45c486f5b445d95901228507a02f60ae", "shasum": "" }, "require": { @@ -447,9 +447,9 @@ "description": "A tool to automatically fix PHP code style", "support": { "issues": "https://github.com/PHP-CS-Fixer/shim/issues", - "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.61.1" + "source": "https://github.com/PHP-CS-Fixer/shim/tree/v3.62.0" }, - "time": "2024-07-31T14:33:55+00:00" + "time": "2024-08-07T17:03:46+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/lib/Service/AttachmentService.php b/lib/Service/AttachmentService.php index ff273f02261..137e95bdd5c 100644 --- a/lib/Service/AttachmentService.php +++ b/lib/Service/AttachmentService.php @@ -245,10 +245,10 @@ public function getAttachmentList(int $documentId, ?string $userId = null, ?Sess /** * Save an uploaded file in the attachment folder * - * @param int $documentId - * @param string $newFileName + * @param int $documentId + * @param string $newFileName * @param resource $newFileResource - * @param string $userId + * @param string $userId * * @return array * @throws InvalidPathException @@ -470,7 +470,7 @@ private function isDownloadDisabled(File $file): bool { /** * Get a user file from file ID * - * @param int $documentId + * @param int $documentId * @param string $userId * * @return File @@ -568,7 +568,7 @@ public function cleanupAttachments(int $fileId): int { * Get attachment file names listed in the markdown file content * * @param string $content - * @param int $fileId + * @param int $fileId * * @return array */ diff --git a/lib/Service/DocumentService.php b/lib/Service/DocumentService.php index cd264c528b4..2d5d3c808f5 100644 --- a/lib/Service/DocumentService.php +++ b/lib/Service/DocumentService.php @@ -246,8 +246,8 @@ public function addStep(Document $document, Session $session, array $steps, int /** * @param Document $document - * @param Session $session - * @param Step[] $steps + * @param Session $session + * @param Step[] $steps * * @return int * @@ -269,7 +269,7 @@ private function insertSteps(Document $document, Session $session, array $steps) $step->setTimestamp(time()); $step = $this->stepMapper->insert($step); $newVersion = $step->getId(); - $this->logger->debug("Adding steps to " . $document->getId() . ": bumping version from $stepsVersion to $newVersion"); + $this->logger->debug('Adding steps to ' . $document->getId() . ": bumping version from $stepsVersion to $newVersion"); $this->cache->set('document-version-' . $document->getId(), $newVersion); // TODO write steps to cache for quicker reading return $newVersion; @@ -632,7 +632,7 @@ public function lock(int $fileId): bool { ILock::TYPE_APP, Application::APP_NAME )); - } catch (NoLockProviderException | PreConditionNotMetException | NotFoundException $e) { + } catch (NoLockProviderException|PreConditionNotMetException|NotFoundException $e) { } catch (OwnerLockedException $e) { return false; } @@ -651,7 +651,7 @@ public function unlock(int $fileId): void { ILock::TYPE_APP, Application::APP_NAME )); - } catch (NoLockProviderException | PreConditionNotMetException | NotFoundException $e) { + } catch (NoLockProviderException|PreConditionNotMetException|NotFoundException $e) { } }