Avas fix
This commit is contained in:
		@@ -18,7 +18,10 @@ class AvasService
 | 
			
		||||
        $articlesitems = [];
 | 
			
		||||
        //Looping through the articles and scraping and while scraping it creates a new instance of the scraper.
 | 
			
		||||
        foreach ($articles as $article) {
 | 
			
		||||
            $articlesitems[] = (new AvasScraper)->extract($article["link"], $article["date"]);
 | 
			
		||||
            $scraped_article = (new AvasScraper)->extract($article["link"], $article["date"]);
 | 
			
		||||
            if (!is_null($scraped_article)) {
 | 
			
		||||
                $articlesitems[] =  $scraped_article;
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        return $articlesitems;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user