release/v1.3.5 #122
2 changed files with 5 additions and 2 deletions
|
|
@ -19,8 +19,8 @@ public static function extractArticleUrls(string $json): array
|
|||
|
||||
return collect($decoded['data'])
|
||||
->pluck('id')
|
||||
->filter(fn($id) => is_int($id) || (is_string($id) && ctype_digit($id)))
|
||||
->map(fn($id) => sprintf(self::ARTICLE_URL_TEMPLATE, $id))
|
||||
->filter(fn ($id) => is_int($id) || (is_string($id) && ctype_digit($id)))
|
||||
->map(fn ($id) => sprintf(self::ARTICLE_URL_TEMPLATE, $id))
|
||||
->unique()
|
||||
->values()
|
||||
->toArray();
|
||||
|
|
|
|||
3
pint.json
Normal file
3
pint.json
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"preset": "laravel"
|
||||
}
|
||||
Loading…
Reference in a new issue