aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Image.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Image.php')
-rw-r--r--lib/private/Image.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/private/Image.php b/lib/private/Image.php
index 3dd0bc49662..3b8cb79c853 100644
--- a/lib/private/Image.php
+++ b/lib/private/Image.php
@@ -56,7 +56,7 @@ class Image implements IImage {
$this->appConfig = $appConfig ?? Server::get(IAppConfig::class);
$this->config = $config ?? Server::get(IConfig::class);
- if (\OC_Util::fileInfoLoaded()) {
+ if (class_exists(finfo::class)) {
$this->fileInfo = new finfo(FILEINFO_MIME_TYPE);
}
}
@@ -699,11 +699,11 @@ class Image implements IImage {
fclose($fp);
unset($fp);
- $headerFormat = 'A4Riff/' . // get n string
- 'I1Filesize/' . // get integer (file size but not actual size)
- 'A4Webp/' . // get n string
- 'A4Vp/' . // get n string
- 'A74Chunk';
+ $headerFormat = 'A4Riff/' // get n string
+ . 'I1Filesize/' // get integer (file size but not actual size)
+ . 'A4Webp/' // get n string
+ . 'A4Vp/' // get n string
+ . 'A74Chunk';
$header = unpack($headerFormat, $data);
unset($data, $headerFormat);