From 5bdb3ba2107838ba139ba9636719b5574f87f417 Mon Sep 17 00:00:00 2001 From: Alessandro Lai Date: Fri, 22 Dec 2017 10:24:46 +0100 Subject: [PATCH] Simplify return statement --- src/PhpSpreadsheet/Reader/Gnumeric.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/PhpSpreadsheet/Reader/Gnumeric.php b/src/PhpSpreadsheet/Reader/Gnumeric.php index 617e23ef..512d93e5 100644 --- a/src/PhpSpreadsheet/Reader/Gnumeric.php +++ b/src/PhpSpreadsheet/Reader/Gnumeric.php @@ -61,11 +61,7 @@ class Gnumeric extends BaseReader $data = fread($fh, 2); fclose($fh); - if ($data != chr(0x1F) . chr(0x8B)) { - return false; - } - - return true; + return $data == chr(0x1F) . chr(0x8B); } /**