diff --git a/samples/Pdf/21b_Pdf.php b/samples/Pdf/21b_Pdf.php index 6770b7c5..ad2f609b 100644 --- a/samples/Pdf/21b_Pdf.php +++ b/samples/Pdf/21b_Pdf.php @@ -52,4 +52,4 @@ if (\PHP_VERSION_ID < 80000) { $filename = $helper->getFileName('21b_Pdf_tcpdf.xlsx', 'pdf'); $writer->setEditHtmlCallback('replaceBody'); $writer->save($filename); -} \ No newline at end of file +} diff --git a/tests/PhpSpreadsheetTests/Functional/StreamTest.php b/tests/PhpSpreadsheetTests/Functional/StreamTest.php index 3ca01fc4..03f9a2d9 100644 --- a/tests/PhpSpreadsheetTests/Functional/StreamTest.php +++ b/tests/PhpSpreadsheetTests/Functional/StreamTest.php @@ -22,7 +22,7 @@ class StreamTest extends TestCase if (\PHP_VERSION_ID < 80000) { $providerFormats = array_merge( $providerFormats, - [['Tcpdf'],['Dompdf']] + [['Tcpdf'], ['Dompdf']] ); } diff --git a/tests/PhpSpreadsheetTests/Writer/Xlsx/UnparsedDataCloneTest.php b/tests/PhpSpreadsheetTests/Writer/Xlsx/UnparsedDataCloneTest.php index 2eeaef9d..660e40fe 100644 --- a/tests/PhpSpreadsheetTests/Writer/Xlsx/UnparsedDataCloneTest.php +++ b/tests/PhpSpreadsheetTests/Writer/Xlsx/UnparsedDataCloneTest.php @@ -5,6 +5,7 @@ namespace PhpOffice\PhpSpreadsheetTests\Writer\Xlsx; use PhpOffice\PhpSpreadsheet\Settings; use PhpOffice\PhpSpreadsheet\Shared\File; use PHPUnit\Framework\TestCase; +use ZipArchive; class UnparsedDataCloneTest extends TestCase { @@ -35,7 +36,7 @@ class UnparsedDataCloneTest extends TestCase $writer->save($resultFilename); $dupname = 'Unable to open saved file'; - $zip = new \ZipArchive(); + $zip = new ZipArchive(); if ($zip->open($resultFilename) !== false) { $names = []; $dupname = '';