mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
Fix coding standards
This commit is contained in:
@@ -26,9 +26,11 @@ class http_query
|
||||
public static function getHttpCodeFromUrl($url)
|
||||
{
|
||||
if (!is_scalar($url))
|
||||
|
||||
return null;
|
||||
|
||||
if (trim($url) === '')
|
||||
|
||||
return null;
|
||||
|
||||
$ch = curl_init();
|
||||
@@ -52,9 +54,11 @@ class http_query
|
||||
public static function getHttpHeaders($url)
|
||||
{
|
||||
if (!is_scalar($url))
|
||||
|
||||
return null;
|
||||
|
||||
if (trim($url) === '')
|
||||
|
||||
return null;
|
||||
$ch = curl_init();
|
||||
|
||||
@@ -83,9 +87,11 @@ class http_query
|
||||
public static function getUrl($url, $post_data = false)
|
||||
{
|
||||
if (!is_scalar($url))
|
||||
|
||||
return null;
|
||||
|
||||
if (trim($url) === '')
|
||||
|
||||
return null;
|
||||
|
||||
$ch = curl_init();
|
||||
|
@@ -93,7 +93,7 @@ class http_request
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public function is_secure()
|
||||
{
|
||||
return (
|
||||
|
Reference in New Issue
Block a user