From cf6769eab1a7d8a6b36877df294e1f10cbf72dc1 Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Sun, 5 Jul 2020 17:17:56 +0200 Subject: [PATCH] Hopefully a final phpcs fix before I start looking at how to run a pre-commit hook on Windows 10 --- src/PhpSpreadsheet/Reader/Xml.php | 2 +- tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PhpSpreadsheet/Reader/Xml.php b/src/PhpSpreadsheet/Reader/Xml.php index 33712e96..2f6a2160 100644 --- a/src/PhpSpreadsheet/Reader/Xml.php +++ b/src/PhpSpreadsheet/Reader/Xml.php @@ -897,7 +897,7 @@ class Xml extends BaseReader ]; } - private function pageSetup(SimpleXMLElement $xmlX, array $namespaces, \stdClass $printDefaults): \stdClass + private function pageSetup(SimpleXMLElement $xmlX, array $namespaces, stdClass $printDefaults): stdClass { if (isset($xmlX->WorksheetOptions->PageSetup)) { foreach ($xmlX->WorksheetOptions->PageSetup as $pageSetupData) { diff --git a/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php b/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php index ab664720..92100b04 100644 --- a/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php @@ -12,6 +12,7 @@ class PageSetupTest extends TestCase private const MARGIN_PRECISION = 0.000001; private const MARGIN_UNIT_CONVERSION = 2.54; // Inches to cm + /** * @var Spreadsheet */