From 1c27202421fea9929a939c5af94b0cfe6ab70f52 Mon Sep 17 00:00:00 2001 From: alexz707 Date: Tue, 30 Apr 2024 11:56:34 +0000 Subject: [PATCH] Apply php-cs-fixer changes --- src/Controller/Document/PrintpageControllerBase.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Controller/Document/PrintpageControllerBase.php b/src/Controller/Document/PrintpageControllerBase.php index d20a796..a047f7e 100644 --- a/src/Controller/Document/PrintpageControllerBase.php +++ b/src/Controller/Document/PrintpageControllerBase.php @@ -437,19 +437,24 @@ public function cancelGenerationAction(Request $request): JsonResponse /** * Checks if a file exists on the filesystem. + * * @param string $filePath + * * @return bool */ private function checkFileExists(string $filePath): bool { $this->invalidateFsCacheFor($filePath); + return file_exists($filePath); } /** * Invalidates the FS cache for a given file path by opening and closing the directory. * This is a workaround for a bug which happens when the local filesystem is using a NFS with cache. + * * @param string $filePath + * * @return void */ private function invalidateFsCacheFor(string $filePath): void