Lint
This commit is contained in:
parent
50a3c6df90
commit
b20d05398b
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
namespace Zoomyboy\TableDocument;
|
namespace Zoomyboy\TableDocument;
|
||||||
|
|
||||||
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
use PhpOffice\PhpSpreadsheet\Writer\Csv;
|
use PhpOffice\PhpSpreadsheet\Writer\Csv;
|
||||||
use PHPUnit\Framework\Assert;
|
use PHPUnit\Framework\Assert;
|
||||||
|
|
||||||
|
@ -12,7 +13,7 @@ trait TestsExcelDocuments
|
||||||
{
|
{
|
||||||
$filename = sys_get_temp_dir() . '/' . str()->uuid()->toString();
|
$filename = sys_get_temp_dir() . '/' . str()->uuid()->toString();
|
||||||
file_put_contents($filename, $content);
|
file_put_contents($filename, $content);
|
||||||
$spreadsheet = \PhpOffice\PhpSpreadsheet\IOFactory::load($filename);
|
$spreadsheet = IOFactory::load($filename);
|
||||||
$writer = new Csv($spreadsheet);
|
$writer = new Csv($spreadsheet);
|
||||||
$writer->save($filename);
|
$writer->save($filename);
|
||||||
$spreadsheet->disconnectWorksheets();
|
$spreadsheet->disconnectWorksheets();
|
||||||
|
|
Loading…
Reference in New Issue