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 $priority Priority
|
||||
* @param int $class Class
|
||||
* @return int
|
||||
*/
|
||||
function __construct($to,$from,$msg,$deliveryreceipt=0,$deferred=0,$priority=3,$class=1)
|
||||
{
|
||||
|
||||
@ -40,7 +40,6 @@ class AntiVir
|
||||
* Constructor
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
* @return AntiVir
|
||||
*/
|
||||
function __construct($db)
|
||||
{
|
||||
|
||||
@ -72,8 +72,6 @@ class Conf
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @return Conf
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
@ -40,7 +40,6 @@ class DolGeoIP
|
||||
*
|
||||
* @param string $type 'country' or 'city'
|
||||
* @param string $datfile Data file
|
||||
* @return GeoIP
|
||||
*/
|
||||
function __construct($type,$datfile)
|
||||
{
|
||||
|
||||
@ -45,7 +45,6 @@ class dolprintIPP
|
||||
* @param string $userid userid
|
||||
* @param string $user user
|
||||
* @param string $password password
|
||||
* @return printIPP
|
||||
*/
|
||||
function __construct($db,$host,$port,$userid,$user,$password)
|
||||
{
|
||||
@ -90,7 +89,7 @@ class dolprintIPP
|
||||
global $conf,$db;
|
||||
|
||||
include_once DOL_DOCUMENT_ROOT.'/includes/printipp/CupsPrintIPP.php';
|
||||
|
||||
|
||||
$ipp = new CupsPrintIPP();
|
||||
$ipp->setLog(DOL_DATA_ROOT.'/dolibarr_printipp.log','file',3); // logging very verbose
|
||||
$ipp->setHost($this->host);
|
||||
@ -121,12 +120,12 @@ class dolprintIPP
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Set number of copy
|
||||
$ipp->setCopies($obj->copy);
|
||||
$ipp->setData(DOL_DATA_ROOT.'/'.$module.'/'.$file);
|
||||
$ipp->printJob();
|
||||
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
@ -36,7 +36,6 @@ class GoogleAPI
|
||||
*
|
||||
* @param DoliDB $db Database handler
|
||||
* @param string $key Google key
|
||||
* @return GoogleAPI
|
||||
*/
|
||||
function __construct($db,$key)
|
||||
{
|
||||
|
||||
@ -637,6 +637,11 @@ class MobileDetect
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* getMobileHeaders
|
||||
*
|
||||
* @return string mobile Headers
|
||||
*/
|
||||
public function getMobileHeaders()
|
||||
{
|
||||
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)
|
||||
{ // converts associated array to URL Query String
|
||||
if (!is_array($arr)){
|
||||
@ -259,6 +265,14 @@ class SimpleOpenID
|
||||
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 = "")
|
||||
{
|
||||
$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 = "")
|
||||
{ // Remember, SSL MUST BE SUPPORTED
|
||||
if (is_array($params)) $params = $this->array2url($params);
|
||||
@ -305,6 +327,12 @@ class SimpleOpenID
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* HTML2OpenIDServer
|
||||
*
|
||||
* @param string $content Content
|
||||
* @return array Array of servers
|
||||
*/
|
||||
function HTML2OpenIDServer($content)
|
||||
{
|
||||
$get = array();
|
||||
|
||||
@ -53,7 +53,6 @@ class DoliDBMssql extends DoliDB
|
||||
* @param string $pass Mot de passe
|
||||
* @param string $name Nom de la database
|
||||
* @param int $port Port of database server
|
||||
* @return int 1 if OK, 0 if not
|
||||
*/
|
||||
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 $name Nom de la database
|
||||
* @param int $port Port of database server
|
||||
* @return int 1 if OK, 0 if not
|
||||
*/
|
||||
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 $name Nom de la database
|
||||
* @param int $port Port of database server
|
||||
* @return int 1 if OK, 0 if not
|
||||
*/
|
||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||
{
|
||||
@ -357,7 +356,6 @@ class DoliDBMysqli extends DoliDB
|
||||
* @return int Nombre de lignes
|
||||
* @see num_rows
|
||||
*/
|
||||
|
||||
function affected_rows($resultset)
|
||||
{
|
||||
// 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 $name Nom de la database
|
||||
* @param int $port Port of database server
|
||||
* @return int 1 if OK, 0 if not
|
||||
*/
|
||||
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 $name Nom de la database
|
||||
* @param int $port Port of database server
|
||||
* @return int 1 if OK, 0 if not
|
||||
*/
|
||||
function __construct($type, $host, $user, $pass, $name='', $port=0)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user