From 78917241ad230e87c33d0822c1ce20bd3dfebd5c Mon Sep 17 00:00:00 2001 From: salam Date: Wed, 5 Aug 2026 17:27:51 +0200 Subject: [PATCH] wip --- app/Console/Commands/Grap.php | 114 ++++++++++++++++++ .../Grapper/Sofascore/DaysTournament.php | 9 +- .../Commands/Grapper/Sofascore/Grapper.php | 45 +++---- .../Grapper/Sofascore/Helper/CurlSofa.php | 35 +----- .../Grapper/Sofascore/Helper/LoadDays.php | 10 +- .../Grapper/Sofascore/Helper/ReadDir.php | 22 ++++ .../Grapper/Sofascore/Helper/SetStorage.php | 55 +++++++++ .../Grapper/Sofascore/Helper/ZipFolder.php | 16 --- .../Commands/Grapper/Sofascore/MakeExcel.php | 17 +-- .../Commands/Grapper/Sofascore/Player.php | 13 ++ .../Grapper/Sofascore/PlayerPerSeason.php | 4 +- .../Grapper/Sofascore/SettingsToLocal.php | 18 ++- app/Console/Commands/Nuh.php | 24 +--- 13 files changed, 254 insertions(+), 128 deletions(-) create mode 100644 app/Console/Commands/Grap.php create mode 100644 app/Console/Commands/Grapper/Sofascore/Helper/ReadDir.php create mode 100644 app/Console/Commands/Grapper/Sofascore/Helper/SetStorage.php create mode 100644 app/Console/Commands/Grapper/Sofascore/Player.php diff --git a/app/Console/Commands/Grap.php b/app/Console/Commands/Grap.php new file mode 100644 index 00000000..98d98da2 --- /dev/null +++ b/app/Console/Commands/Grap.php @@ -0,0 +1,114 @@ +options(); + + self::$options['task'] = $this->argument('task'); + + self::$options['base_url'] = 'https://www.sofascore.com/'; + + $id = $this->argument('id'); + + if (!$id) { + $txt = 'PARAMETERS' . PHP_EOL; + $txt .= '--d debug' . PHP_EOL; + $txt .= '--r restart range' . PHP_EOL; + $txt .= '--f force' . PHP_EOL; + $txt .= '-----------------------------------------------------------' . PHP_EOL; + $txt .= 'FUNCTION' . PHP_EOL; + $txt .= " 1\tPlayerPerSeason" . PHP_EOL; + $txt .= " 2\tSettingsToLocal" . PHP_EOL; + $txt .= '-----------------------------------------------------------' . PHP_EOL; + $txt .= 'TASK' . PHP_EOL; + $txt .= " 1\tgrapper daily" . PHP_EOL; + $txt .= " 2\tgrapper" . PHP_EOL; + Notice::note($txt, 'b', 1); + } + + switch ($id) { + + case 1: + Notice::note('PlayerPerSeason sleep 5', 'bb'); + sleep(5); + + PlayerPerSeason::run(); + break; + + case 2: + Notice::note('SettingsToLocal sleep 5', 'bb'); + sleep(5); + + SettingsToLocal::run(); + break; + + case 3: + SetStorage::set(); + Grapper::load(); + break; + + case 4: + SetStorage::set(); + MakeExcel::create(); + break; + + // case 'zip': + // self::setStorage(); + // ZipFolder::create(); + // break; + + // case 'mail': + // self::setStorage(); + // SendMail::run(); + // break; + + // case 'rose': + // self::setStorage(); + // Rose::run(); + // break; + + // case 'sql_mover': + // SqlMover::run(); + // break; + + + + // case 'torunament_teams': + // TournamentTeams::get(); + // break; + + // case 'set_to_production': + // SettingsToProduction::run(); + // break; + + default: + Notice::note('not a valid fuction', 'br', 1); + } + } +} diff --git a/app/Console/Commands/Grapper/Sofascore/DaysTournament.php b/app/Console/Commands/Grapper/Sofascore/DaysTournament.php index 508fe182..ae8e889e 100644 --- a/app/Console/Commands/Grapper/Sofascore/DaysTournament.php +++ b/app/Console/Commands/Grapper/Sofascore/DaysTournament.php @@ -3,9 +3,8 @@ namespace App\Console\Commands\Grapper\Sofascore; use App\Console\Commands\Grapper\Sofascore\Helper\CurlSofa; -use App\Console\Commands\Grapper\Sofascore\Helper\LoadDays; use App\Console\Commands\Grapper\Sofascore\Helper\Sleeper; -use App\Console\Commands\Nuh; +use App\Console\Commands\Grap; use App\Models\Country; use App\Models\SofaScoreCategory; use App\Models\SofaScoreDayTournament; @@ -16,7 +15,7 @@ use Illuminate\Support\Facades\Log; class DaysTournament { /** - * a nuh --d --f 67 --fun=4 --task=1 + * a Grap --d --f 67 --fun=4 --task=1 * * Ita Serie-A-Saison 23-08-2025 - 24-05-2026 * Ger Bundesliga 22-08-2025 – 16-05-2026 @@ -26,7 +25,7 @@ class DaysTournament */ public static function get(array $d) { - $debug = Nuh::$options['d'] ?? 0; + $debug = Grap::$options['d'] ?? 0; $tournaments_counter = 0; @@ -52,7 +51,7 @@ class DaysTournament while ($page) { - $url = Nuh::$options['base_url'] . "api/v1/sport/$slug/scheduled-tournaments/$day/page/$page"; + $url = Grap::$options['base_url'] . "api/v1/sport/$slug/scheduled-tournaments/$day/page/$page"; Sleeper::rand(); diff --git a/app/Console/Commands/Grapper/Sofascore/Grapper.php b/app/Console/Commands/Grapper/Sofascore/Grapper.php index e61e1164..8992fefc 100644 --- a/app/Console/Commands/Grapper/Sofascore/Grapper.php +++ b/app/Console/Commands/Grapper/Sofascore/Grapper.php @@ -2,15 +2,14 @@ namespace App\Console\Commands\Grapper\Sofascore; +use App\Console\Commands\Grap; use App\Utilities\Notice; -use App\Console\Commands\Nuh; use Illuminate\Support\Carbon; use App\Models\SofaScoreTaskDay; use Illuminate\Support\Facades\File; use App\Models\SofaScoreEventGrapped; use App\Models\SofaScoreDayTournament; use App\Models\SofaScoreTaskTournament; -use App\Console\Commands\Grapper\Sofascore; use App\Console\Commands\Grapper\Sofascore\Helper\Sleeper; use App\Console\Commands\Grapper\Sofascore\Helper\CurlSofa; use App\Console\Commands\Grapper\Sofascore\Helper\LoadDays; @@ -23,13 +22,13 @@ class Grapper * , JSON_PRETTY_PRINT * to fromat json */ - $debug = Nuh::$options['d'] ?? 0; + $debug = Grap::$options['d'] ?? 0; + $restart = Grap::$options['r'] ?? 0; + $force = Grap::$options['f'] ?? 0; + $task_id = Grap::$options['task'] ?? 0; - $force = Nuh::$options['ff'] ?? 0; - - $task_id = Nuh::$options['task'] ?? 0; - - $restart = Nuh::$options['restart'] ?? 0; + if (!$task_id) + Notice::note('task id missing', 'r', 1); $days = LoadDays::load(); @@ -84,21 +83,17 @@ class Grapper Notice::note($day, 'g'); } - $url = Nuh::$options['base_url'] . "api/v1/unique-tournament/$tournament->sofa_score_tournament_id/scheduled-events/$day"; + $url = Grap::$options['base_url'] . "api/v1/unique-tournament/$tournament->sofa_score_tournament_id/scheduled-events/$day"; Sleeper::rand(1); $data = CurlSofa::load($url); - Nuh::$options['s'] = 0; - - Nuh::$options['r'] = 0; - if (isset($data['events'])) { foreach ($data['events'] as $event) { - Sofascore::$useragent = rand(1, 6); + Grap::$useragent = rand(1, 6); if (!$force && SofaScoreEventGrapped::where('id', (int) $event['id'])->exists()) { if ($debug) { @@ -128,7 +123,7 @@ class Grapper $grapped->url = $url; $grapped->starttime = $starttime->toDateTimeString(); - $folder = Sofascore::$storage . '/' . $day . '/' . $day . '-' . $event['tournament']['slug'] . '/' . $event['slug']; + $folder = Grap::$storage . '/' . $day . '/' . $day . '-' . $event['tournament']['slug'] . '/' . $event['slug']; File::makeDirectory($folder, 0775, true, true); @@ -144,9 +139,7 @@ class Grapper $event_id = $event['id']; - // if (!$grapped['got_statistics'] && isset($event['hasEventPlayerStatistics']) && $event['hasEventPlayerStatistics'] == true) { - - $url = Nuh::$options['base_url'] . "api/v1/event/$event_id/statistics"; + $url = Grap::$options['base_url'] . "api/v1/event/$event_id/statistics"; Sleeper::rand(); @@ -157,15 +150,12 @@ class Grapper File::put($folder . '/statistics.json', json_encode($data)); $grapped->got_statistics = 1; - // } /********************************* * EVENT lineups *********************************/ - // if (!$grapped['got_lineups']) { - - $url = Nuh::$options['base_url'] . "api/v1/event/$event_id/lineups"; + $url = Grap::$options['base_url'] . "api/v1/event/$event_id/lineups"; Sleeper::rand(); @@ -176,15 +166,12 @@ class Grapper File::put($folder . '/lineups.json', json_encode($data)); $grapped->got_lineups = 1; - // } /********************************* * EVENT odds *********************************/ - // if (!$grapped['got_odds']) { - - $url = Nuh::$options['base_url'] . "api/v1/event/$event_id/odds/1/all"; + $url = Grap::$options['base_url'] . "api/v1/event/$event_id/odds/1/all"; Sleeper::rand(); @@ -195,15 +182,12 @@ class Grapper File::put($folder . '/odds.json', json_encode($data)); $grapped->got_odds = 1; - // } /********************************* * EVENT incidents *********************************/ - // if (!$grapped['got_incidents']) { - - $url = Nuh::$options['base_url'] . "api/v1/event/$event_id/incidents"; + $url = Grap::$options['base_url'] . "api/v1/event/$event_id/incidents"; Sleeper::rand(); @@ -214,7 +198,6 @@ class Grapper File::put($folder . '/incidents.json', json_encode($data)); $grapped->got_incidents = 1; - // } $grapped->save(); } diff --git a/app/Console/Commands/Grapper/Sofascore/Helper/CurlSofa.php b/app/Console/Commands/Grapper/Sofascore/Helper/CurlSofa.php index f5f3cf25..0fe0c1fc 100644 --- a/app/Console/Commands/Grapper/Sofascore/Helper/CurlSofa.php +++ b/app/Console/Commands/Grapper/Sofascore/Helper/CurlSofa.php @@ -2,37 +2,20 @@ namespace App\Console\Commands\Grapper\Sofascore\Helper; -use App\Console\Commands\Grapper\Sofascore; +use App\Console\Commands\Grap; use App\Utilities\Notice; -use App\Console\Commands\Nuh; class CurlSofa { - - public static $testfile = '/Console/Commands/Grapper/Sofascore/test/'; - public static function load(string $url) { - $debug = Nuh::$options['d'] ?? 0; - $save = Nuh::$options['s'] ?? 0; - $read = Nuh::$options['r'] ?? 0; + $debug = Grap::$options['d'] ?? 0; if ($debug) { Notice::note($url, 'b'); } - if ($read) { - if ($debug) { - Notice::note('data read localy', 'bb'); - } - $filename = app_path() . self::$testfile . strtolower(str_replace(' ', '_', Nuh::$options['name'])) . '.json'; - - $data = file_get_contents($filename); - - return json_decode($data, true); - } - $useragents = []; $useragents[1] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2.1 Safari/605.1.15'; $useragents[2] = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3.1 Safari/605.1.15'; @@ -41,12 +24,8 @@ class CurlSofa $useragents[5] = 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36 Edg/134.0.0.0'; $useragents[6] = 'Mozilla/5.0 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36'; - // if ($debug) { - // Notice::note($useragents[Sofascore::$useragent], 'b'); - // } - $headers = [ - 'User-Agent: ' . $useragents[Sofascore::$useragent], + 'User-Agent: ' . $useragents[Grap::$useragent], 'Accept: */*', 'Accept-Language: de,en-US;q=0.7,en;q=0.3', 'Accept-Encoding: gzip, deflate, br, zstd', @@ -74,14 +53,6 @@ class CurlSofa $data = gzdecode($data); - if ($save) { - $filename = app_path() . self::$testfile . strtolower(str_replace(' ', '_', Nuh::$options['name'])) . '.json'; - - file_put_contents($filename, $data); - - Notice::note('data saved localy', 'bp'); - } - $data = json_decode($data, true); return $data; diff --git a/app/Console/Commands/Grapper/Sofascore/Helper/LoadDays.php b/app/Console/Commands/Grapper/Sofascore/Helper/LoadDays.php index 89b4c297..9a1b37a9 100644 --- a/app/Console/Commands/Grapper/Sofascore/Helper/LoadDays.php +++ b/app/Console/Commands/Grapper/Sofascore/Helper/LoadDays.php @@ -3,7 +3,7 @@ namespace App\Console\Commands\Grapper\Sofascore\Helper; use App\Utilities\Notice; -use App\Console\Commands\Nuh; +use App\Console\Commands\Grap; use App\Models\SofaScoreTask; use Illuminate\Support\Carbon; use App\Models\SofaScoreTaskDay; @@ -12,13 +12,13 @@ class LoadDays { public static function load() { - $debug = Nuh::$options['d'] ?? 0; + $debug = Grap::$options['d'] ?? 0; - $restart = Nuh::$options['restart'] ?? 0; + $restart = Grap::$options['restart'] ?? 0; - $task_id = Nuh::$options['task'] ?? 0; + $task_id = Grap::$options['task'] ?? 0; - $folder = Nuh::$options['folder'] ?? 0; + $folder = Grap::$options['folder'] ?? 0; $dates = []; diff --git a/app/Console/Commands/Grapper/Sofascore/Helper/ReadDir.php b/app/Console/Commands/Grapper/Sofascore/Helper/ReadDir.php new file mode 100644 index 00000000..d300339e --- /dev/null +++ b/app/Console/Commands/Grapper/Sofascore/Helper/ReadDir.php @@ -0,0 +1,22 @@ +first(); + + $sofascore_data = storage_path('sofascore_data') . '/'; + if ($task) { + $storage_name = Strings::clean($task->name); + + switch ($task->id) { + case 1: + Grap::$storage = $sofascore_data . $storage_name; + Grap::$folder = Carbon::now()->subDays(3)->format('Y-m-d'); + break; + case 2: + Grap::$storage = $sofascore_data . $storage_name . '/' . $task->day_from; + Grap::$zipfile = $sofascore_data . $storage_name . '/' . $task->day_from . '.zip'; + break; + case 3: + Grap::$storage = $sofascore_data . $storage_name . '-' . $task->day_from . '-' . $task->day_to; + Grap::$zipfile = $sofascore_data . $storage_name . '-' . $task->day_from . '-' . $task->day_to . '.zip'; + break; + case 4: + Grap::$storage = $sofascore_data . $storage_name . '/rosa-' . Carbon::now()->format('Y-m-d'); + Grap::$zipfile = $sofascore_data . $storage_name . '/rosa-' . Carbon::now()->format('Y-m-d') . '.zip'; + break; + + default: + Grap::$storage = $sofascore_data . $storage_name; + Grap::$zipfile = $sofascore_data . $storage_name . '/archive.zip'; + break; + } + } else if ($folder) { + Grap::$storage = $sofascore_data; + Grap::$folder = $folder; + } + + if ($debug) { + Notice::note("Task: $task->name\n" . 'Storage: ' . Grap::$storage . "\nFolder: " . Grap::$folder); + } + } +} diff --git a/app/Console/Commands/Grapper/Sofascore/Helper/ZipFolder.php b/app/Console/Commands/Grapper/Sofascore/Helper/ZipFolder.php index 1af1d902..ce3acc2b 100644 --- a/app/Console/Commands/Grapper/Sofascore/Helper/ZipFolder.php +++ b/app/Console/Commands/Grapper/Sofascore/Helper/ZipFolder.php @@ -33,20 +33,4 @@ class ZipFolder return response()->json(['error' => 'Failed to create ZIP archive'], 500); } } - - public static function get_tree(string $dir, &$results = array()) - { - $files = scandir($dir); - foreach ($files as $value) { - $path = realpath($dir . DIRECTORY_SEPARATOR . $value); - if (!is_dir($path)) { - $results[] = $path; - } else if ($value != "." && $value != "..") { - self::get_tree($path, $results); - $results[] = $path; - } - } - - return $results; - } } diff --git a/app/Console/Commands/Grapper/Sofascore/MakeExcel.php b/app/Console/Commands/Grapper/Sofascore/MakeExcel.php index 14d86613..2528fc68 100644 --- a/app/Console/Commands/Grapper/Sofascore/MakeExcel.php +++ b/app/Console/Commands/Grapper/Sofascore/MakeExcel.php @@ -2,12 +2,13 @@ namespace App\Console\Commands\Grapper\Sofascore; -use App\Utilities\Notice; +use App\Console\Commands\Grap; +use App\Console\Commands\Grapper\Grap\Helper\ZipFolder; +use App\Console\Commands\Grapper\Sofascore\Helper\ReadDir; use App\Console\Commands\Nuh; +use App\Utilities\Notice; use PhpOffice\PhpSpreadsheet\IOFactory; use PhpOffice\PhpSpreadsheet\Spreadsheet; -use App\Console\Commands\Grapper\Sofascore; -use App\Console\Commands\Grapper\Sofascore\Helper\ZipFolder; class MakeExcel { @@ -22,7 +23,7 @@ class MakeExcel $debug = Nuh::$options['d'] ?? 0; if ($debug) { - Notice::note("Make Excel folder to import: " . Sofascore::$folder . "\nmaximum files in excel: " . self::$max, 'b'); + Notice::note("Make Excel folder to import: " . Grap::$folder . "\nmaximum files in excel: " . self::$max, 'b'); } $files = self::load_files(); @@ -46,7 +47,7 @@ class MakeExcel $to = $key * self::$max + $has; } - $filename = Sofascore::$folder . '-' . $from . '-' . $to . '.xlsx'; + $filename = Grap::$folder . '-' . $from . '-' . $to . '.xlsx'; $spreadsheet = new Spreadsheet; $spreadsheet->getProperties()->setTitle($filename); $activeWorksheet = $spreadsheet->getActiveSheet(); @@ -68,16 +69,16 @@ class MakeExcel $spreadsheet->setActiveSheetIndex(0); $writer = IOFactory::createWriter($spreadsheet, 'Xlsx'); - $writer->save(Sofascore::$storage . '/' . $filename); + $writer->save(Grap::$storage . '/' . $filename); - self::$filesToMail[] = Sofascore::$storage . '/' . $filename; + self::$filesToMail[] = Grap::$storage . '/' . $filename; } } public static function load_files() { - $files = ZipFolder::get_tree(Sofascore::$storage . '/' . Sofascore::$folder); + $files = ReadDir::get_tree(Grap::$storage . '/' . Grap::$folder); $filtered = []; foreach ($files as $file) { diff --git a/app/Console/Commands/Grapper/Sofascore/Player.php b/app/Console/Commands/Grapper/Sofascore/Player.php new file mode 100644 index 00000000..b3836ea4 --- /dev/null +++ b/app/Console/Commands/Grapper/Sofascore/Player.php @@ -0,0 +1,13 @@ +select('ss_player_id', 'ss_team_id')->get(); diff --git a/app/Console/Commands/Grapper/Sofascore/SettingsToLocal.php b/app/Console/Commands/Grapper/Sofascore/SettingsToLocal.php index 0412c572..b491721c 100644 --- a/app/Console/Commands/Grapper/Sofascore/SettingsToLocal.php +++ b/app/Console/Commands/Grapper/Sofascore/SettingsToLocal.php @@ -2,8 +2,7 @@ namespace App\Console\Commands\Grapper\Sofascore; -use App\Console\Commands\Nuh; -use App\Models\SofaScoreRosa; +use App\Console\Commands\Grap; use App\Models\SofaScoreTask; use App\Models\SofaScoreTaskTournament; use App\Models\SofaScoreTournament; @@ -14,11 +13,15 @@ class SettingsToLocal { public static function run() { - $debug = Nuh::$options['d'] ?? 0; + $debug = Grap::$options['d'] ?? 0; - if ($debug) { - Notice::note('Settings To Local', 'bb'); - } + Notice::note("⚽ close all vpn"); + exec('killall ssh'); + + Notice::note("⚽ open vpn"); + exec('ssh -f -N -L 13306:127.0.0.1:3306 -p 58371 root@162.55.242.190'); + + Notice::note("⚽ settings to local"); if ($debug) { Notice::note('SofaScoreTask', 'g'); @@ -46,5 +49,8 @@ class SettingsToLocal foreach ($rows as $row) { SofaScoreTournament::insert((array) $row); } + + Notice::note("⚽ close all vpn"); + exec('killall ssh'); } } diff --git a/app/Console/Commands/Nuh.php b/app/Console/Commands/Nuh.php index 458bfb1b..be282f4e 100644 --- a/app/Console/Commands/Nuh.php +++ b/app/Console/Commands/Nuh.php @@ -12,7 +12,6 @@ use App\Console\Commands\Grapper\Magloo; use App\Console\Commands\Grapper\TxOdds; use App\Console\Commands\Grapper\Betsapi; use App\Console\Commands\Grapper\Goldbet; -use App\Console\Commands\Grapper\Sofascore; use App\Console\Commands\Services\Services; use App\Console\Commands\Grapper\Logifuture; use App\Console\Commands\DbMapper\AutoMapper; @@ -23,7 +22,7 @@ class Nuh extends Command public static $id = 0; - protected $signature = 'nuh {process=help} {--folder=} {--id=0} {--fun=} {--ff} {--task=0} {--restart=0} {--gid=} {--p} {--d} {--x} {--t} {--y} {--m} {--l} {--w} {--a} {--r} {--s} {--g} {--t} {--q} {--f} {--b} {--e} {--z}'; + protected $signature = 'nuh {process=help} {--folder=} {--id=0} {--gid=} {--p} {--d} {--x} {--t} {--y} {--m} {--l} {--w} {--a} {--r} {--s} {--g} {--t} {--q} {--f} {--b} {--e} {--z}'; public function handle() { @@ -43,22 +42,6 @@ class Nuh extends Command $txt .= '--id=matchid (optional) calling spezific id' . PHP_EOL; $txt .= '--fun=name (optional) [bkms, markets]' . PHP_EOL; $txt .= '--gid=groupid (optional) [bkms, groupid]' . PHP_EOL; - $txt .= '-----------------------------------------------------------' . PHP_EOL; - $txt .= 'Sofascore (67)' . PHP_EOL; - $txt .= '--fun=' . PHP_EOL; - $txt .= chr(9) . 'player_season' . PHP_EOL; - $txt .= chr(9) . 'set_to_local' . PHP_EOL; - $txt .= chr(9) . 'grapper' . PHP_EOL; - $txt .= chr(9) . 'zip' . PHP_EOL; - $txt .= chr(9) . 'mail' . PHP_EOL; - $txt .= chr(9) . 'rose' . PHP_EOL; - $txt .= chr(9) . 'sql_mover' . PHP_EOL; - $txt .= chr(9) . 'excel' . PHP_EOL; - $txt .= chr(9) . 'torunament_teams' . PHP_EOL; - $txt .= chr(9) . 'set_to_production' . PHP_EOL; - $txt .= '--task=[id from sofa_score_tasks table]' . PHP_EOL; - $txt .= '--restart=[0|1] delete archive and flusch DB for taks, start new' . PHP_EOL; - $txt .= '--folder="yyyy-mm-dd" to import files into Excel' . PHP_EOL; $txt .= '-----------------------------------------------------------' . PHP_EOL . PHP_EOL; $txt .= 'Options' . PHP_EOL; $txt .= '-----------------------------------------------------------' . PHP_EOL; @@ -67,7 +50,6 @@ class Nuh extends Command $txt .= '--d debug' . PHP_EOL; $txt .= '--e echo client data' . PHP_EOL; $txt .= '--f force (what ever in script)' . PHP_EOL; - $txt .= '--ff force grapping (sofascore)' . PHP_EOL; $txt .= '--g by minor groups (tx)' . PHP_EOL; $txt .= '--t load today' . PHP_EOL; $txt .= '--m mail it' . PHP_EOL; @@ -148,10 +130,6 @@ class Nuh extends Command // DB MAPPER AutoMapper::switch(); break; - case 12: - // SOFASCORE - Sofascore::switch(); - break; default: Notice::note('Provider not defined', 'r', 1); break;