From a661f043e1a8764cb7c795f50df77b830d3e352b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Fri, 26 Jan 2018 23:46:40 +0100 Subject: Remove unneeded semicolon and parentheses Signed-off-by: Morris Jobke --- lib/private/Preview/TXT.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/private/Preview/TXT.php') diff --git a/lib/private/Preview/TXT.php b/lib/private/Preview/TXT.php index 88c6e87f38e..2925e5bd537 100644 --- a/lib/private/Preview/TXT.php +++ b/lib/private/Preview/TXT.php @@ -60,7 +60,7 @@ class TXT extends Provider { $lines = preg_split("/\r\n|\n|\r/", $content); - $fontSize = ($maxX) ? (int) ((5 / 32) * $maxX) : 5; //5px + $fontSize = $maxX ? (int) ((5 / 32) * $maxX) : 5; //5px $lineSize = ceil($fontSize * 1.25); $image = imagecreate($maxX, $maxY); -- cgit v1.2.3