Codestyle clean-ups

This commit is contained in:
MarkBaker 2020-10-09 16:08:20 +02:00
parent 930fdc1b0c
commit dcc47fb287
3 changed files with 4 additions and 3 deletions

View File

@ -52,4 +52,4 @@ if (\PHP_VERSION_ID < 80000) {
$filename = $helper->getFileName('21b_Pdf_tcpdf.xlsx', 'pdf'); $filename = $helper->getFileName('21b_Pdf_tcpdf.xlsx', 'pdf');
$writer->setEditHtmlCallback('replaceBody'); $writer->setEditHtmlCallback('replaceBody');
$writer->save($filename); $writer->save($filename);
} }

View File

@ -22,7 +22,7 @@ class StreamTest extends TestCase
if (\PHP_VERSION_ID < 80000) { if (\PHP_VERSION_ID < 80000) {
$providerFormats = array_merge( $providerFormats = array_merge(
$providerFormats, $providerFormats,
[['Tcpdf'],['Dompdf']] [['Tcpdf'], ['Dompdf']]
); );
} }

View File

@ -5,6 +5,7 @@ namespace PhpOffice\PhpSpreadsheetTests\Writer\Xlsx;
use PhpOffice\PhpSpreadsheet\Settings; use PhpOffice\PhpSpreadsheet\Settings;
use PhpOffice\PhpSpreadsheet\Shared\File; use PhpOffice\PhpSpreadsheet\Shared\File;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use ZipArchive;
class UnparsedDataCloneTest extends TestCase class UnparsedDataCloneTest extends TestCase
{ {
@ -35,7 +36,7 @@ class UnparsedDataCloneTest extends TestCase
$writer->save($resultFilename); $writer->save($resultFilename);
$dupname = 'Unable to open saved file'; $dupname = 'Unable to open saved file';
$zip = new \ZipArchive(); $zip = new ZipArchive();
if ($zip->open($resultFilename) !== false) { if ($zip->open($resultFilename) !== false) {
$names = []; $names = [];
$dupname = ''; $dupname = '';