From 395b750030cf30b5920a8f4de2d4893c892add01 Mon Sep 17 00:00:00 2001 From: Adrien Crivelli Date: Sun, 19 Jul 2020 12:30:31 +0900 Subject: [PATCH] Stricter visibility --- src/PhpSpreadsheet/Reader/Xml/PageSettings.php | 2 +- tests/PhpSpreadsheetTests/Reader/Gnumeric/PageSetupTest.php | 4 ++-- tests/PhpSpreadsheetTests/Reader/Ods/PageSetupTest.php | 4 ++-- tests/PhpSpreadsheetTests/Reader/Xls/PageSetupTest.php | 4 ++-- tests/PhpSpreadsheetTests/Reader/Xlsx/PageSetupTest.php | 4 ++-- tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php | 4 ++-- tests/PhpSpreadsheetTests/Worksheet/PageMarginsTest.php | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/PhpSpreadsheet/Reader/Xml/PageSettings.php b/src/PhpSpreadsheet/Reader/Xml/PageSettings.php index 72604dcd..e56ac331 100644 --- a/src/PhpSpreadsheet/Reader/Xml/PageSettings.php +++ b/src/PhpSpreadsheet/Reader/Xml/PageSettings.php @@ -38,7 +38,7 @@ class PageSettings ->setFooter($this->printSettings->footerMargin); } - private function getPrintDefaults() + private function getPrintDefaults(): stdClass { return (object) [ 'paperSize' => 9, diff --git a/tests/PhpSpreadsheetTests/Reader/Gnumeric/PageSetupTest.php b/tests/PhpSpreadsheetTests/Reader/Gnumeric/PageSetupTest.php index 9a8c87a7..0b563586 100644 --- a/tests/PhpSpreadsheetTests/Reader/Gnumeric/PageSetupTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Gnumeric/PageSetupTest.php @@ -68,7 +68,7 @@ class PageSetupTest extends TestCase } } - public function pageSetupAssertions(): array + private function pageSetupAssertions(): array { return [ 'Sheet1' => [ @@ -103,7 +103,7 @@ class PageSetupTest extends TestCase ]; } - public function pageMarginAssertions(): array + private function pageMarginAssertions(): array { return [ 'Sheet1' => [ diff --git a/tests/PhpSpreadsheetTests/Reader/Ods/PageSetupTest.php b/tests/PhpSpreadsheetTests/Reader/Ods/PageSetupTest.php index 0e06fb43..20af31c5 100644 --- a/tests/PhpSpreadsheetTests/Reader/Ods/PageSetupTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Ods/PageSetupTest.php @@ -70,7 +70,7 @@ class PageSetupTest extends TestCase } } - public function pageSetupAssertions(): array + private function pageSetupAssertions(): array { return [ 'Sheet1' => [ @@ -105,7 +105,7 @@ class PageSetupTest extends TestCase ]; } - public function pageMarginAssertions(): array + private function pageMarginAssertions(): array { return [ 'Sheet1' => [ diff --git a/tests/PhpSpreadsheetTests/Reader/Xls/PageSetupTest.php b/tests/PhpSpreadsheetTests/Reader/Xls/PageSetupTest.php index be704f30..034ce6ee 100644 --- a/tests/PhpSpreadsheetTests/Reader/Xls/PageSetupTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Xls/PageSetupTest.php @@ -70,7 +70,7 @@ class PageSetupTest extends TestCase } } - public function pageSetupAssertions(): array + private function pageSetupAssertions(): array { return [ 'Sheet1' => [ @@ -105,7 +105,7 @@ class PageSetupTest extends TestCase ]; } - public function pageMarginAssertions(): array + private function pageMarginAssertions(): array { return [ 'Sheet1' => [ diff --git a/tests/PhpSpreadsheetTests/Reader/Xlsx/PageSetupTest.php b/tests/PhpSpreadsheetTests/Reader/Xlsx/PageSetupTest.php index 5dc16a89..c00a1623 100644 --- a/tests/PhpSpreadsheetTests/Reader/Xlsx/PageSetupTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Xlsx/PageSetupTest.php @@ -70,7 +70,7 @@ class PageSetupTest extends TestCase } } - public function pageSetupAssertions(): array + private function pageSetupAssertions(): array { return [ 'Sheet1' => [ @@ -105,7 +105,7 @@ class PageSetupTest extends TestCase ]; } - public function pageMarginAssertions(): array + private function pageMarginAssertions(): array { return [ 'Sheet1' => [ diff --git a/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php b/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php index 685421d8..97476ed5 100644 --- a/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php +++ b/tests/PhpSpreadsheetTests/Reader/Xml/PageSetupTest.php @@ -70,7 +70,7 @@ class PageSetupTest extends TestCase } } - public function pageSetupAssertions(): array + private function pageSetupAssertions(): array { return [ 'Sheet1' => [ @@ -105,7 +105,7 @@ class PageSetupTest extends TestCase ]; } - public function pageMarginAssertions(): array + private function pageMarginAssertions(): array { return [ 'Sheet1' => [ diff --git a/tests/PhpSpreadsheetTests/Worksheet/PageMarginsTest.php b/tests/PhpSpreadsheetTests/Worksheet/PageMarginsTest.php index 0006a033..37b6df2b 100644 --- a/tests/PhpSpreadsheetTests/Worksheet/PageMarginsTest.php +++ b/tests/PhpSpreadsheetTests/Worksheet/PageMarginsTest.php @@ -79,7 +79,7 @@ class PageMarginsTest extends TestCase ]; } - public function providerMillimetersAndInches() + public function providerMillimetersAndInches(): array { return [ [12.7, 0.5],