Skip to content

Commit

Permalink
PHPCS Resolutions
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkBaker committed Jan 28, 2021
1 parent e7bbc51 commit e1ed52e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/PhpSpreadsheet/Calculation/Calculation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2697,10 +2697,8 @@ private static function loadLocales(): void
*
* @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();
Expand Down Expand Up @@ -2738,8 +2736,6 @@ public function getDebugLog()

/**
* __clone implementation. Cloning should not be allowed in a Singleton!
*
* @throws Exception
*/
final public function __clone()
{
Expand Down

0 comments on commit e1ed52e

Please sign in to comment.