From a59920e80e410a7e567dd1e6a4f3ab72ed941544 Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Thu, 3 Dec 2020 13:03:38 +0100 Subject: [PATCH] log --- app/Invokables/GetPageTitleFromUrl.php | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.5