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

index 004432ccc420a8e98c15f9ccd36622f78695dc88..fc2df5edaa12e53fcdc505b8724d9c7275dd78c7 100644 (file)
@@ -13,9 +13,7 @@ class GetPageTitleFromUrl
 
 
         \Log::debug("get title $url");
-//        if(Str::contains($url, 'prescription-quotidien')) {
-//            return "PSQ";
-//        }
+
         $ch = curl_init();
         curl_setopt($ch, CURLOPT_URL, $url);
 
@@ -38,6 +36,7 @@ class GetPageTitleFromUrl
         $str = curl_exec($ch);
 
         curl_close($ch);
+        \Log::debug("CURL OK" );
 
 
         if($str !== ''){
index 436925cf8e2b805351c5785d438ae174db0b31d2..7928a05ea608d52796ffab471b09031ad88e7da7 100644 (file)
@@ -22,7 +22,7 @@ class GetTitleForLink implements ShouldQueue
     /**
      * Create a new job instance.
      *
-     * @return void
+     * @param TrackedLink $link
      */
     public function __construct(TrackedLink $link)
     {