Failed Conditions
Pull Request — master (#346)
by Sander
05:00
created
lib/Service/IconService.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -32,17 +32,17 @@  discard block
 block discarded – undo
32 32
 	const URL_TYPE_RELATIVE = 4;
33 33
 	const URL_TYPE_EMBED_BASE64 = 5;
34 34
 
35
-	public $url;          // (string) Page URL
36
-	public $pageUrl;      // (string) Page URL, after prospective redirects
37
-	public $siteUrl;      // (string) Site root URL (homepage), based on $pageUrl
38
-	public $icoUrl;       // (string) full URI to favicon
39
-	public $icoType;      // (string) favicon type (file extension, ex: ico|gif|png)
40
-	public $findMethod;   // (string) favicon url determination method (default /favicon.ico or found in head>link tag)
41
-	public $error;        // (string) details, in case of failure...
42
-	public $icoExists;    // (bool)   tell if the favicon exists (set after calling downloadFavicon)
43
-	public $icoMd5;       // (string) md5 of $icoData
44
-	public $icoData;      // (binary) favicon binary data
45
-	public $debugInfo;    // (array)  additionnal debug info
35
+	public $url; // (string) Page URL
36
+	public $pageUrl; // (string) Page URL, after prospective redirects
37
+	public $siteUrl; // (string) Site root URL (homepage), based on $pageUrl
38
+	public $icoUrl; // (string) full URI to favicon
39
+	public $icoType; // (string) favicon type (file extension, ex: ico|gif|png)
40
+	public $findMethod; // (string) favicon url determination method (default /favicon.ico or found in head>link tag)
41
+	public $error; // (string) details, in case of failure...
42
+	public $icoExists; // (bool)   tell if the favicon exists (set after calling downloadFavicon)
43
+	public $icoMd5; // (string) md5 of $icoData
44
+	public $icoData; // (binary) favicon binary data
45
+	public $debugInfo; // (array)  additionnal debug info
46 46
 	protected $httpProxy; // (string) HTTP proxy (ex: localhost:8888)
47 47
 	protected $sslVerify; // (bool)   SSL verify peer (default: true)
48 48
 
@@ -271,8 +271,8 @@  discard block
 block discarded – undo
271 271
 		curl_setopt($ch, CURLOPT_HEADER, false);
272 272
 		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
273 273
 		curl_setopt($ch, CURLOPT_BINARYTRANSFER, true);
274
-		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);  // Follow redirects (302, 301)
275
-		curl_setopt($ch, CURLOPT_MAXREDIRS, 20);         // Follow up to 20 redirects
274
+		curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // Follow redirects (302, 301)
275
+		curl_setopt($ch, CURLOPT_MAXREDIRS, 20); // Follow up to 20 redirects
276 276
 		curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0');
277 277
 
278 278
 		// Don't check SSL certificate to allow autosigned certificate
Please login to merge, or discard this patch.