From 12fd228e7505244a83aec255d1729e15290fad2a Mon Sep 17 00:00:00 2001 From: eai04191 Date: Tue, 5 Nov 2019 05:59:00 +0900 Subject: [PATCH] =?UTF-8?q?array=5Fmap=E3=81=AEcallback=E3=82=92=E3=82=B7?= =?UTF-8?q?=E3=83=B3=E3=83=97=E3=83=AB=E3=81=AB=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/MetadataResolver/XtubeResolver.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/MetadataResolver/XtubeResolver.php b/app/MetadataResolver/XtubeResolver.php index ed1e258..58608dd 100644 --- a/app/MetadataResolver/XtubeResolver.php +++ b/app/MetadataResolver/XtubeResolver.php @@ -37,13 +37,7 @@ class XtubeResolver implements Resolver $metadata->description = trim($crawler->filter('.fullDescription ')->text('')); $metadata->image = str_replace('m=eSuQ8f', 'm=eaAaaEFb', $metadata->image); $metadata->image = str_replace('240X180', 'original', $metadata->image); - $metadata->tags = - array_map( - function ($text) { - return trim($text); - }, - $crawler->filter('.tagsCategories a')->extract('_text') - ); + $metadata->tags = array_map('trim', $crawler->filter('.tagsCategories a')->extract('_text')); return $metadata; }