From e1ed52ecb60cd48b1579ef5cbe26bea1588465aa Mon Sep 17 00:00:00 2001 From: MarkBaker Date: Thu, 28 Jan 2021 15:18:41 +0100 Subject: [PATCH] PHPCS Resolutions --- src/PhpSpreadsheet/Calculation/Calculation.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/PhpSpreadsheet/Calculation/Calculation.php b/src/PhpSpreadsheet/Calculation/Calculation.php index b5fc1992..72aa9a51 100644 --- a/src/PhpSpreadsheet/Calculation/Calculation.php +++ b/src/PhpSpreadsheet/Calculation/Calculation.php @@ -2697,10 +2697,8 @@ class Calculation * * @param ?Spreadsheet $spreadsheet Injected spreadsheet for working with a PhpSpreadsheet Spreadsheet object, * or NULL to create a standalone claculation engine - * - * @return Calculation */ - public static function getInstance(?Spreadsheet $spreadsheet = null): Calculation + public static function getInstance(?Spreadsheet $spreadsheet = null): self { if ($spreadsheet !== null) { $instance = $spreadsheet->getCalculationEngine(); @@ -2738,8 +2736,6 @@ class Calculation /** * __clone implementation. Cloning should not be allowed in a Singleton! - * - * @throws Exception */ final public function __clone() {