From 1f865c84c0d960c09b08d731edbac20797131cad Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Tue, 30 Jun 2020 07:24:12 +0200 Subject: [PATCH] Keep phpcs happy --- src/PhpSpreadsheet/Reader/Xls.php | 2 +- src/PhpSpreadsheet/Writer/Xls/Worksheet.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/PhpSpreadsheet/Reader/Xls.php b/src/PhpSpreadsheet/Reader/Xls.php index 5e4ee225..cdac07d0 100644 --- a/src/PhpSpreadsheet/Reader/Xls.php +++ b/src/PhpSpreadsheet/Reader/Xls.php @@ -3445,7 +3445,7 @@ class Xls extends BaseReader // offset: 10; size: 2; option flags // bit: 0; mask: 0x0001; 0=down then over, 1=over then down - $isOverThenDown= (0x0001 & self::getUInt2d($recordData, 10)); + $isOverThenDown = (0x0001 & self::getUInt2d($recordData, 10)); // bit: 1; mask: 0x0002; 0=landscape, 1=portrait $isPortrait = (0x0002 & self::getUInt2d($recordData, 10)) >> 1; diff --git a/src/PhpSpreadsheet/Writer/Xls/Worksheet.php b/src/PhpSpreadsheet/Writer/Xls/Worksheet.php index 1a4504ed..eb6b479d 100644 --- a/src/PhpSpreadsheet/Writer/Xls/Worksheet.php +++ b/src/PhpSpreadsheet/Writer/Xls/Worksheet.php @@ -1730,8 +1730,8 @@ class Worksheet extends BIFFwriter $iCopies = 0x01; // Number of copies // Order of printing pages - $fLeftToRight = $this->phpSheet->getPageSetup()->getPageOrder() == PageSetup::PAGEORDER_OVER_THEN_DOWN - ? 0x0 : 0x1; + $fLeftToRight = $this->phpSheet->getPageSetup()->getPageOrder() === PageSetup::PAGEORDER_DOWN_THEN_OVER + ? 0x1 : 0x0; // Page orientation $fLandscape = ($this->phpSheet->getPageSetup()->getOrientation() == PageSetup::ORIENTATION_LANDSCAPE) ? 0x0 : 0x1;