diff --git a/lib/Controller/InternalBookmarkController.php b/lib/Controller/InternalBookmarkController.php index e768c3cc7..e5c6234a8 100644 --- a/lib/Controller/InternalBookmarkController.php +++ b/lib/Controller/InternalBookmarkController.php @@ -170,7 +170,7 @@ public function exportBookmark() { /** * - * @param int $id The id of the bookmark whose favicon shoudl be returned + * @param int $id The id of the bookmark whose favicon should be returned * * @return Http\DataDisplayResponse|Http\NotFoundResponse|Http\RedirectResponse|Http\DataResponse * @@ -184,7 +184,7 @@ public function getBookmarkImage($id) { } /** - * @param int $id The id of the bookmark whose image shoudl be returned + * @param int $id The id of the bookmark whose image should be returned * * @return Http\DataDisplayResponse|Http\NotFoundResponse|Http\RedirectResponse|Http\DataResponse * diff --git a/lib/Db/BookmarkMapper.php b/lib/Db/BookmarkMapper.php index 373a7ddeb..921b9b155 100644 --- a/lib/Db/BookmarkMapper.php +++ b/lib/Db/BookmarkMapper.php @@ -359,7 +359,7 @@ public function generateCTE(int $folderId, bool $withSoftDeleted) : array { ->from('*PREFIX*bookmarks_tree', 'tr') ->join('tr', 'folder_tree', 'e', 'e.item_id = tr.parent_folder AND e.type = ' . $secondRecursiveCase->createPositionalParameter(TreeMapper::TYPE_FOLDER) . (!$withSoftDeleted ? ' AND e.soft_deleted_at is NULL' : '')); - // First the base case together with the normal recurisve case + // First the base case together with the normal recursive case // Then the second helper base case together with the recursive shares case // then we need another instance of the first recursive case, duplicated here as secondRecursive case // to recurse into child folders of shared folders diff --git a/lib/Service/BookmarksParser.php b/lib/Service/BookmarksParser.php index caed7b0a2..538eff3e3 100644 --- a/lib/Service/BookmarksParser.php +++ b/lib/Service/BookmarksParser.php @@ -250,7 +250,7 @@ private function getAttributes(DOMNode $node): array { if (isset($attributes['add_date'])) { $added = new DateTime(); if ((int)$attributes['add_date'] > self::THOUSAND_YEARS) { - // Google exports dates in miliseconds. This way we only lose the first year of UNIX Epoch. + // Google exports dates in milliseconds. This way we only lose the first year of UNIX Epoch. // This is invalid once we hit 2970. So, quite a long time. $added->setTimestamp(((int)($attributes['add_date']) / 1000)); } else { @@ -266,7 +266,7 @@ private function getAttributes(DOMNode $node): array { } else { if (isset($attributes['add_date'])) { if ((int)$attributes['add_date'] > self::THOUSAND_YEARS) { - // Google exports dates in miliseconds. This way we only lose the first year of UNIX Epoch. + // Google exports dates in milliseconds. This way we only lose the first year of UNIX Epoch. // This is invalid once we hit 2970. So, quite a long time. $attributes['add_date'] = ((int)($attributes['add_date']) / 1000); } else { @@ -276,7 +276,7 @@ private function getAttributes(DOMNode $node): array { if (isset($attributes['last_modified'])) { $attributes['last_modified'] = $attributes['last_modified'] instanceof DateTime ? $attributes['last_modified']->getTimestamp() : (int)$attributes['last_modified']; if ((int)$attributes['last_modified'] > self::THOUSAND_YEARS) { - // Google exports dates in miliseconds. This way we only lose the first year of UNIX Epoch. + // Google exports dates in milliseconds. This way we only lose the first year of UNIX Epoch. // This is invalid once we hit 2970. So, quite a long time. $attributes['last_modified'] = ((int)($attributes['last_modified']) / 1000); } else { diff --git a/lib/Service/FaviconPreviewer.php b/lib/Service/FaviconPreviewer.php index 34061ed14..50dd9681e 100644 --- a/lib/Service/FaviconPreviewer.php +++ b/lib/Service/FaviconPreviewer.php @@ -138,7 +138,7 @@ protected function fetchImage(string $url): ?Image { $body = $response->getBody(); $contentType = $response->getHeader('Content-Type'); - // Some HTPP Error occured :/ + // Some HTTP Error occurred :/ if ($response->getStatusCode() !== 200) { return null; } diff --git a/lib/Service/Previewers/DefaultBookmarkPreviewer.php b/lib/Service/Previewers/DefaultBookmarkPreviewer.php index 1c3184512..c3149d482 100644 --- a/lib/Service/Previewers/DefaultBookmarkPreviewer.php +++ b/lib/Service/Previewers/DefaultBookmarkPreviewer.php @@ -80,7 +80,7 @@ protected function fetchImage($url): ?Image { $body = $response->getBody(); $contentType = $response->getHeader('Content-Type'); - // Some HTPP Error occured :/ + // Some HTTP Error occurred :/ if ($response->getStatusCode() !== 200) { return null; } diff --git a/lib/Service/Previewers/GenericUrlBookmarkPreviewer.php b/lib/Service/Previewers/GenericUrlBookmarkPreviewer.php index 35179e862..f8b65f332 100644 --- a/lib/Service/Previewers/GenericUrlBookmarkPreviewer.php +++ b/lib/Service/Previewers/GenericUrlBookmarkPreviewer.php @@ -90,7 +90,7 @@ public function fetchImage($url): ?Image { return null; } - // Some HTPP Error occured :/ + // Some HTTP Error occurred :/ if ($response->getStatusCode() !== 200) { return null; } diff --git a/lib/Service/Previewers/ScreeenlyBookmarkPreviewer.php b/lib/Service/Previewers/ScreeenlyBookmarkPreviewer.php index e4b16fc9c..ebf7892e3 100644 --- a/lib/Service/Previewers/ScreeenlyBookmarkPreviewer.php +++ b/lib/Service/Previewers/ScreeenlyBookmarkPreviewer.php @@ -96,7 +96,7 @@ public function fetchImage($url): ?Image { return null; } - // Some HTPP Error occured :/ + // Some HTTP Error occurred :/ if ($response->getStatusCode() !== 200) { return null; } diff --git a/lib/Service/Previewers/ScreenshotMachineBookmarkPreviewer.php b/lib/Service/Previewers/ScreenshotMachineBookmarkPreviewer.php index 0d4239b57..1ad924860 100644 --- a/lib/Service/Previewers/ScreenshotMachineBookmarkPreviewer.php +++ b/lib/Service/Previewers/ScreenshotMachineBookmarkPreviewer.php @@ -83,7 +83,7 @@ public function fetchImage($url): ?Image { 'timeout' => self::HTTP_TIMEOUT, ] ); - // Some HTPP Error occured :/ + // Some HTTP Error occurred :/ if ($response->getStatusCode() !== 200) { return null; } diff --git a/lib/Service/Previewers/WebshotBookmarkPreviewer.php b/lib/Service/Previewers/WebshotBookmarkPreviewer.php index 500c27a04..a5a2eb326 100644 --- a/lib/Service/Previewers/WebshotBookmarkPreviewer.php +++ b/lib/Service/Previewers/WebshotBookmarkPreviewer.php @@ -93,7 +93,7 @@ public function fetchImage($url): ?Image { ], 'timeout' => self::HTTP_TIMEOUT, ]); - // Some HTPP Error occured :/ + // Some HTTP Error occurred :/ if ($response->getStatusCode() !== 200) { return null; } @@ -101,7 +101,7 @@ public function fetchImage($url): ?Image { // get it $response = $this->client->get($this->apiUrl . $data->id); - // Some HTPP Error occured :/ + // Some HTTP Error occurred :/ if ($response->getStatusCode() !== 200) { return null; }