From: Louis Jeckel Date: Thu, 3 Dec 2020 12:03:38 +0000 (+0100) Subject: log X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a59920e80e410a7e567dd1e6a4f3ab72ed941544;p=psq.git log --- diff --git a/app/Invokables/GetPageTitleFromUrl.php b/app/Invokables/GetPageTitleFromUrl.php index d5b3827..b615a28 100644 --- a/app/Invokables/GetPageTitleFromUrl.php +++ b/app/Invokables/GetPageTitleFromUrl.php @@ -4,6 +4,8 @@ namespace App\Invokables; +use Illuminate\Support\Str; + class GetPageTitleFromUrl { public function __invoke($url): string @@ -11,6 +13,9 @@ class GetPageTitleFromUrl \Log::debug("get title $url"); + if(Str::contains($url, 'prescription-quotidien')) { + return "PSQ"; + } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url);