]> _ Git - psq.git/commitdiff
log
authorLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 12:03:38 +0000 (13:03 +0100)
committerLouis Jeckel <louis.jeckel@outlook.com>
Thu, 3 Dec 2020 12:03:38 +0000 (13:03 +0100)
app/Invokables/GetPageTitleFromUrl.php

index d5b3827ff4e48d89a6b6494dfedbce930dce35e1..b615a289f916e490d9bfdae22a47b5d1773856e3 100644 (file)
@@ -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);