This commit is contained in:
salam committed 2026-08-03 09:50:48 +02:00
1 parent a85ac159de
commit 84490d446b
1 file changed
+4 -1
@@ -6,7 +6,6 @@ use App\Console\Commands\Grapper\Sofascore;
use App\Console\Commands\Grapper\Sofascore\Helper\ZipFolder; use App\Console\Commands\Grapper\Sofascore\Helper\ZipFolder;
use App\Console\Commands\Nuh; use App\Console\Commands\Nuh;
use App\Utilities\Notice; use App\Utilities\Notice;
use Illuminate\Support\Carbon;
use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\IOFactory;
use PhpOffice\PhpSpreadsheet\Spreadsheet; use PhpOffice\PhpSpreadsheet\Spreadsheet;
@@ -14,6 +13,8 @@ class MakeExcel
{ {
public static $max = 1000; public static $max = 1000;
public static $filesToMail = [];
public static function create() public static function create()
{ {
ini_set("memory_limit", -1); ini_set("memory_limit", -1);
@@ -55,6 +56,8 @@ class MakeExcel
$spreadsheet->setActiveSheetIndex(0); $spreadsheet->setActiveSheetIndex(0);
$writer = IOFactory::createWriter($spreadsheet, 'Xlsx'); $writer = IOFactory::createWriter($spreadsheet, 'Xlsx');
$writer->save(Sofascore::$storage . '/' . $filename); $writer->save(Sofascore::$storage . '/' . $filename);
self::$filesToMail[] = Sofascore::$storage . '/' . $filename;
} }
} }