From 4a57c1fda6d50d655eb48ffb712bd43729ea5c10 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 18 Sep 2018 17:19:51 +0200 Subject: Tried to fix several small things :bug: :construction: --- crawler/WebRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawler/WebRequest.php') diff --git a/crawler/WebRequest.php b/crawler/WebRequest.php index a72efc6..f25f31d 100644 --- a/crawler/WebRequest.php +++ b/crawler/WebRequest.php @@ -7,7 +7,7 @@ class WebRequest { - public function getContent($url) + public static function getContent($url): array { $curl = curl_init($url); curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)'); -- cgit v1.2.3