115 - Satisfy PHPStan on Belga parser and fixture helpers
This commit is contained in:
parent
ac1b461e41
commit
7d745b036a
2 changed files with 5 additions and 2 deletions
|
|
@ -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
3
pint.json
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"preset": "laravel"
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue