Fix: PHPCS
This commit is contained in:
parent
efe2719f48
commit
5f353c39d1
@ -54,7 +54,6 @@ class CSMSFile
|
|||||||
* @param int $deferred Deferred or not
|
* @param int $deferred Deferred or not
|
||||||
* @param int $priority Priority
|
* @param int $priority Priority
|
||||||
* @param int $class Class
|
* @param int $class Class
|
||||||
* @return int
|
|
||||||
*/
|
*/
|
||||||
function __construct($to,$from,$msg,$deliveryreceipt=0,$deferred=0,$priority=3,$class=1)
|
function __construct($to,$from,$msg,$deliveryreceipt=0,$deferred=0,$priority=3,$class=1)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,7 +40,6 @@ class AntiVir
|
|||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
* @return AntiVir
|
|
||||||
*/
|
*/
|
||||||
function __construct($db)
|
function __construct($db)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -72,8 +72,6 @@ class Conf
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
|
||||||
* @return Conf
|
|
||||||
*/
|
*/
|
||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -40,7 +40,6 @@ class DolGeoIP
|
|||||||
*
|
*
|
||||||
* @param string $type 'country' or 'city'
|
* @param string $type 'country' or 'city'
|
||||||
* @param string $datfile Data file
|
* @param string $datfile Data file
|
||||||
* @return GeoIP
|
|
||||||
*/
|
*/
|
||||||
function __construct($type,$datfile)
|
function __construct($type,$datfile)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -45,7 +45,6 @@ class dolprintIPP
|
|||||||
* @param string $userid userid
|
* @param string $userid userid
|
||||||
* @param string $user user
|
* @param string $user user
|
||||||
* @param string $password password
|
* @param string $password password
|
||||||
* @return printIPP
|
|
||||||
*/
|
*/
|
||||||
function __construct($db,$host,$port,$userid,$user,$password)
|
function __construct($db,$host,$port,$userid,$user,$password)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -36,7 +36,6 @@ class GoogleAPI
|
|||||||
*
|
*
|
||||||
* @param DoliDB $db Database handler
|
* @param DoliDB $db Database handler
|
||||||
* @param string $key Google key
|
* @param string $key Google key
|
||||||
* @return GoogleAPI
|
|
||||||
*/
|
*/
|
||||||
function __construct($db,$key)
|
function __construct($db,$key)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -637,6 +637,11 @@ class MobileDetect
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* getMobileHeaders
|
||||||
|
*
|
||||||
|
* @return string mobile Headers
|
||||||
|
*/
|
||||||
public function getMobileHeaders()
|
public function getMobileHeaders()
|
||||||
{
|
{
|
||||||
return self::$mobileHeaders;
|
return self::$mobileHeaders;
|
||||||
|
|||||||
@ -247,6 +247,12 @@ class SimpleOpenID
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* array2url
|
||||||
|
*
|
||||||
|
* @param array $arr An array
|
||||||
|
* @return boolean|string false if KO, string of url if OK
|
||||||
|
*/
|
||||||
function array2url($arr)
|
function array2url($arr)
|
||||||
{ // converts associated array to URL Query String
|
{ // converts associated array to URL Query String
|
||||||
if (!is_array($arr)){
|
if (!is_array($arr)){
|
||||||
@ -259,6 +265,14 @@ class SimpleOpenID
|
|||||||
return $query;
|
return $query;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FSOCK_Request
|
||||||
|
*
|
||||||
|
* @param string $url URL
|
||||||
|
* @param string $method Method
|
||||||
|
* @param string $params Params
|
||||||
|
* @return boolean|unknown
|
||||||
|
*/
|
||||||
function FSOCK_Request($url, $method="GET", $params = "")
|
function FSOCK_Request($url, $method="GET", $params = "")
|
||||||
{
|
{
|
||||||
$fp = fsockopen("ssl://www.myopenid.com", 443, $errno, $errstr, 3); // Connection timeout is 3 seconds
|
$fp = fsockopen("ssl://www.myopenid.com", 443, $errno, $errstr, 3); // Connection timeout is 3 seconds
|
||||||
@ -283,6 +297,14 @@ class SimpleOpenID
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* CURL_Request
|
||||||
|
*
|
||||||
|
* @param string $url URL
|
||||||
|
* @param string $method Method
|
||||||
|
* @param string $params Params
|
||||||
|
* @return boolean|unknown
|
||||||
|
*/
|
||||||
function CURL_Request($url, $method="GET", $params = "")
|
function CURL_Request($url, $method="GET", $params = "")
|
||||||
{ // Remember, SSL MUST BE SUPPORTED
|
{ // Remember, SSL MUST BE SUPPORTED
|
||||||
if (is_array($params)) $params = $this->array2url($params);
|
if (is_array($params)) $params = $this->array2url($params);
|
||||||
@ -305,6 +327,12 @@ class SimpleOpenID
|
|||||||
return $response;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* HTML2OpenIDServer
|
||||||
|
*
|
||||||
|
* @param string $content Content
|
||||||
|
* @return array Array of servers
|
||||||
|
*/
|
||||||
function HTML2OpenIDServer($content)
|
function HTML2OpenIDServer($content)
|
||||||
{
|
{
|
||||||
$get = array();
|
$get = array();
|
||||||
|
|||||||
@ -53,7 +53,6 @@ class DoliDBMssql extends DoliDB
|
|||||||
* @param string $pass Mot de passe
|
* @param string $pass Mot de passe
|
||||||
* @param string $name Nom de la database
|
* @param string $name Nom de la database
|
||||||
* @param int $port Port of database server
|
* @param int $port Port of database server
|
||||||
* @return int 1 if OK, 0 if not
|
|
||||||
*/
|
*/
|
||||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -50,7 +50,6 @@ class DoliDBMysql extends DoliDB
|
|||||||
* @param string $pass Mot de passe
|
* @param string $pass Mot de passe
|
||||||
* @param string $name Nom de la database
|
* @param string $name Nom de la database
|
||||||
* @param int $port Port of database server
|
* @param int $port Port of database server
|
||||||
* @return int 1 if OK, 0 if not
|
|
||||||
*/
|
*/
|
||||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -50,7 +50,6 @@ class DoliDBMysqli extends DoliDB
|
|||||||
* @param string $pass Mot de passe
|
* @param string $pass Mot de passe
|
||||||
* @param string $name Nom de la database
|
* @param string $name Nom de la database
|
||||||
* @param int $port Port of database server
|
* @param int $port Port of database server
|
||||||
* @return int 1 if OK, 0 if not
|
|
||||||
*/
|
*/
|
||||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
@ -357,7 +356,6 @@ class DoliDBMysqli extends DoliDB
|
|||||||
* @return int Nombre de lignes
|
* @return int Nombre de lignes
|
||||||
* @see num_rows
|
* @see num_rows
|
||||||
*/
|
*/
|
||||||
|
|
||||||
function affected_rows($resultset)
|
function affected_rows($resultset)
|
||||||
{
|
{
|
||||||
// If resultset not provided, we take the last used by connexion
|
// If resultset not provided, we take the last used by connexion
|
||||||
|
|||||||
@ -60,7 +60,6 @@ class DoliDBPgsql extends DoliDB
|
|||||||
* @param string $pass Mot de passe
|
* @param string $pass Mot de passe
|
||||||
* @param string $name Nom de la database
|
* @param string $name Nom de la database
|
||||||
* @param int $port Port of database server
|
* @param int $port Port of database server
|
||||||
* @return int 1 if OK, 0 if not
|
|
||||||
*/
|
*/
|
||||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -50,7 +50,6 @@ class DoliDBSqlite extends DoliDB
|
|||||||
* @param string $pass Mot de passe
|
* @param string $pass Mot de passe
|
||||||
* @param string $name Nom de la database
|
* @param string $name Nom de la database
|
||||||
* @param int $port Port of database server
|
* @param int $port Port of database server
|
||||||
* @return int 1 if OK, 0 if not
|
|
||||||
*/
|
*/
|
||||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user