115 - Satisfy PHPStan on Belga parser and fixture helpers
All checks were successful
CI / ci (push) Successful in 1h26m46s
CI / ci (pull_request) Successful in 10m39s
Build and Push Docker Image / build (push) Successful in 4m22s

This commit is contained in:
myrmidex 2026-08-02 02:04:23 +02:00
parent ac1b461e41
commit 7d745b036a
2 changed files with 5 additions and 2 deletions

View file

@ -19,8 +19,8 @@ public static function extractArticleUrls(string $json): array
return collect($decoded['data']) return collect($decoded['data'])
->pluck('id') ->pluck('id')
->filter(fn($id) => is_int($id) || (is_string($id) && ctype_digit($id))) ->filter(fn ($id) => is_int($id) || (is_string($id) && ctype_digit($id)))
->map(fn($id) => sprintf(self::ARTICLE_URL_TEMPLATE, $id)) ->map(fn ($id) => sprintf(self::ARTICLE_URL_TEMPLATE, $id))
->unique() ->unique()
->values() ->values()
->toArray(); ->toArray();

3
pint.json Normal file
View file

@ -0,0 +1,3 @@
{
"preset": "laravel"
}