🎨 fix the majority of code sniffs

This commit is contained in:
William Hall
2021-02-08 17:28:05 +00:00
parent 14e90c3faa
commit 2aa6f46e20
18 changed files with 194 additions and 140 deletions
+3 -3
View File
@@ -9,7 +9,7 @@ abstract class BaseHTTPQRCodeProvider implements IQRCodeProvider
protected function getContent($url)
{
$curlhandle = curl_init();
curl_setopt_array($curlhandle, array(
CURLOPT_URL => $url,
CURLOPT_RETURNTRANSFER => true,
@@ -20,8 +20,8 @@ abstract class BaseHTTPQRCodeProvider implements IQRCodeProvider
CURLOPT_USERAGENT => 'TwoFactorAuth'
));
$data = curl_exec($curlhandle);
curl_close($curlhandle);
return $data;
}
}
}