aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/TXT.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/TXT.php')
-rw-r--r--lib/private/Preview/TXT.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Preview/TXT.php b/lib/private/Preview/TXT.php
index 68597f8dbd0..1a1d64f3e08 100644
--- a/lib/private/Preview/TXT.php
+++ b/lib/private/Preview/TXT.php
@@ -50,7 +50,7 @@ class TXT extends ProviderV2 {
$lines = preg_split("/\r\n|\n|\r/", $content);
// Define text size of text file preview
- $fontSize = $maxX ? (int) ((1 / 32) * $maxX) : 5; //5px
+ $fontSize = $maxX ? (int)((1 / 32) * $maxX) : 5; //5px
$lineSize = ceil($fontSize * 1.5);
$image = imagecreate($maxX, $maxY);
@@ -67,7 +67,7 @@ class TXT extends ProviderV2 {
$index = $index + 1;
$x = 1;
- $y = (int) ($index * $lineSize);
+ $y = (int)($index * $lineSize);
if ($canUseTTF === true) {
imagettftext($image, $fontSize, 0, $x, $y, $textColor, $fontFile, $line);