Skip to content

Commit 24eb4e7

Browse files
committed
SPLAT-4180 phpstan fix
1 parent d842350 commit 24eb4e7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

bundle/Controller/Resource/Upload.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function __invoke(Request $request): Response
128128

129129
private function isEncryptedPdf(UploadedFile $file): bool
130130
{
131-
if (strtolower((string) $file->getClientOriginalExtension()) !== 'pdf') {
131+
if (strtolower($file->getClientOriginalExtension()) !== 'pdf') {
132132
return false;
133133
}
134134

@@ -144,8 +144,6 @@ private function isEncryptedPdf(UploadedFile $file): bool
144144

145145
$head = (string) fread($fp, 4096);
146146

147-
// Encryption marker may be located anywhere; read also from the end.
148-
// Suppress fseek errors (e.g. very small files).
149147
@fseek($fp, -16384, SEEK_END);
150148
$tail = (string) fread($fp, 16384);
151149

0 commit comments

Comments
 (0)