From 8aee6fc67840e240ad80de90973b6ada5ef431ec Mon Sep 17 00:00:00 2001 From: salam Date: Thu, 25 Jun 2026 12:43:08 +0200 Subject: [PATCH] wip --- .../Commands/Grapper/Sofascore/.gitignore | 3 +- app/Filament/Widgets/StatsMedianAverage.php | 18 +-- composer.lock | 128 ++++-------------- 3 files changed, 35 insertions(+), 114 deletions(-) diff --git a/app/Console/Commands/Grapper/Sofascore/.gitignore b/app/Console/Commands/Grapper/Sofascore/.gitignore index 0dbecae5..f70e7cc1 100644 --- a/app/Console/Commands/Grapper/Sofascore/.gitignore +++ b/app/Console/Commands/Grapper/Sofascore/.gitignore @@ -1 +1,2 @@ -/grapped \ No newline at end of file +grapped/ +worldcup-teams/ \ No newline at end of file diff --git a/app/Filament/Widgets/StatsMedianAverage.php b/app/Filament/Widgets/StatsMedianAverage.php index 891134bc..e466b2fb 100644 --- a/app/Filament/Widgets/StatsMedianAverage.php +++ b/app/Filament/Widgets/StatsMedianAverage.php @@ -61,14 +61,14 @@ class StatsMedianAverage extends StatsOverviewWidget $away_team = $data['away_team']; } - if ($arr_home) - $median_home = self::getMedian($arr_home); - else - $median_home = 0; - if ($arr_away) - $median_away = self::getMedian($arr_away); - else - $median_away = 0; + // if ($arr_home) + // $median_home = self::getMedian($arr_home); + // else + // $median_home = 0; + // if ($arr_away) + // $median_away = self::getMedian($arr_away); + // else + // $median_away = 0; if (isset($data['results'])) { $win = $data['results']['w'] ? number_format(Round::odd($total_home / $data['results']['w']), 2) : 0; @@ -111,7 +111,7 @@ class StatsMedianAverage extends StatsOverviewWidget $boxes[] = Stat::make('Average ' . $statistic_type, self::template('avhome', 'avaway', $home_team, $away_team))->description('Team ' . $team_position)->extraAttributes(['x-init' => "animate('avhome', $value_home); animate('avaway', $value_away)"]); $boxes[] = Stat::make('Average ' . $statistic_type, self::template('av_team_home', 'av_team_away', 'Home', 'Away', $average_team_h, $average_team_a))->description('Team Season')->extraAttributes(['x-init' => "animate('av_team_home', $average_team_h); animate('av_team_away', $average_team_a)"]); $boxes[] = Stat::make('Average ' . $statistic_type, self::template('av_league_home', 'av_league_away', 'Home', 'Away', $average_league_h, $average_league_a))->description('League Season')->extraAttributes(['x-init' => "animate('av_league_home', $average_league_h); animate('av_league_away', $average_league_a)"]); - $boxes[] = Stat::make('Median ' . $statistic_type, self::template('mehome', 'meaway', $home_team, $away_team, $median_home, $median_away))->description($team_position)->extraAttributes(['x-init' => "animate('mehome', $median_home); animate('meaway', $median_away, 0)"]); + // $boxes[] = Stat::make('Median ' . $statistic_type, self::template('mehome', 'meaway', $home_team, $away_team, $median_home, $median_away))->description($team_position)->extraAttributes(['x-init' => "animate('mehome', $median_home); animate('meaway', $median_away, 0)"]); $boxes[] = Stat::make('Odds', self::templateOdds($data, $win, $draw, $lost))->description($team_position)->extraAttributes(['x-init' => "animate('mehome', $median_home); animate('meaway', $median_away, 0)"]); $this->columns = [ diff --git a/composer.lock b/composer.lock index 9fa1044d..241093cb 100644 --- a/composer.lock +++ b/composer.lock @@ -3107,16 +3107,16 @@ }, { "name": "laravel/prompts", - "version": "v0.3.18", + "version": "v0.3.20", "source": { "type": "git", "url": "https://github.com/laravel/prompts.git", - "reference": "a19af51bb144bf87f08397921fa619f85c7d4e72" + "reference": "6d53c826dfd33ec5f4ac91f816ff327727c7988b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laravel/prompts/zipball/a19af51bb144bf87f08397921fa619f85c7d4e72", - "reference": "a19af51bb144bf87f08397921fa619f85c7d4e72", + "url": "https://api.github.com/repos/laravel/prompts/zipball/6d53c826dfd33ec5f4ac91f816ff327727c7988b", + "reference": "6d53c826dfd33ec5f4ac91f816ff327727c7988b", "shasum": "" }, "require": { @@ -3160,9 +3160,9 @@ "description": "Add beautiful and user-friendly forms to your command-line applications.", "support": { "issues": "https://github.com/laravel/prompts/issues", - "source": "https://github.com/laravel/prompts/tree/v0.3.18" + "source": "https://github.com/laravel/prompts/tree/v0.3.20" }, - "time": "2026-05-19T00:47:18+00:00" + "time": "2026-06-24T19:16:38+00:00" }, { "name": "laravel/serializable-closure", @@ -3576,16 +3576,16 @@ }, { "name": "league/flysystem", - "version": "3.35.0", + "version": "3.35.1", "source": { "type": "git", "url": "https://github.com/thephpleague/flysystem.git", - "reference": "d0a405f03d980461e4b6e08cfed2c162650f9f6b" + "reference": "f23af6c5aafd958a7593029a271d77baf5ed793c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/d0a405f03d980461e4b6e08cfed2c162650f9f6b", - "reference": "d0a405f03d980461e4b6e08cfed2c162650f9f6b", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/f23af6c5aafd958a7593029a271d77baf5ed793c", + "reference": "f23af6c5aafd958a7593029a271d77baf5ed793c", "shasum": "" }, "require": { @@ -3653,9 +3653,9 @@ ], "support": { "issues": "https://github.com/thephpleague/flysystem/issues", - "source": "https://github.com/thephpleague/flysystem/tree/3.35.0" + "source": "https://github.com/thephpleague/flysystem/tree/3.35.1" }, - "time": "2026-06-22T20:12:06+00:00" + "time": "2026-06-25T06:52:23+00:00" }, { "name": "league/flysystem-local", @@ -4457,24 +4457,24 @@ }, { "name": "mongodb/mongodb", - "version": "2.3.0", + "version": "2.2.0", "source": { "type": "git", - "url": "https://github.com/mongodb/mongo-php-library", - "reference": "12e56461166d915e3dd8e4969ad0940ed5207d88" + "url": "https://github.com/mongodb/mongo-php-library.git", + "reference": "bbb13f969e37e047fd822527543df55fdc1c9298" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/12e56461166d915e3dd8e4969ad0940ed5207d88", - "reference": "12e56461166d915e3dd8e4969ad0940ed5207d88", + "url": "https://api.github.com/repos/mongodb/mongo-php-library/zipball/bbb13f969e37e047fd822527543df55fdc1c9298", + "reference": "bbb13f969e37e047fd822527543df55fdc1c9298", "shasum": "" }, "require": { "composer-runtime-api": "^2.0", - "ext-mongodb": "^2.3", + "ext-mongodb": "^2.2", "php": "^8.1", "psr/log": "^1.1.4|^2|^3", - "symfony/polyfill-php85": "^1.33" + "symfony/polyfill-php85": "^1.32" }, "replace": { "mongodb/builder": "*" @@ -4526,7 +4526,11 @@ "mongodb", "persistence" ], - "time": "2026-04-28T12:50:06+00:00" + "support": { + "issues": "https://github.com/mongodb/mongo-php-library/issues", + "source": "https://github.com/mongodb/mongo-php-library/tree/2.2.0" + }, + "time": "2026-02-11T11:39:56+00:00" }, { "name": "monolog/monolog", @@ -8023,90 +8027,6 @@ ], "time": "2026-04-10T16:19:22+00:00" }, - { - "name": "symfony/polyfill-iconv", - "version": "v1.37.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-iconv.git", - "reference": "2c5729fd241b4b22f6e4b436bc3354a4f262df57" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-iconv/zipball/2c5729fd241b4b22f6e4b436bc3354a4f262df57", - "reference": "2c5729fd241b4b22f6e4b436bc3354a4f262df57", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "provide": { - "ext-iconv": "*" - }, - "suggest": { - "ext-iconv": "For best performance" - }, - "type": "library", - "extra": { - "thanks": { - "url": "https://github.com/symfony/polyfill", - "name": "symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Iconv\\": "" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill for the Iconv extension", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "iconv", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-iconv/tree/v1.37.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2026-04-10T16:19:22+00:00" - }, { "name": "symfony/polyfill-intl-grapheme", "version": "v1.38.1",