Fix: PHPCS

This commit is contained in:
Laurent Destailleur 2014-12-05 20:18:30 +01:00
parent efe2719f48
commit 5f353c39d1
13 changed files with 36 additions and 16 deletions

View File

@ -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)
{ {

View File

@ -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)
{ {

View File

@ -72,8 +72,6 @@ class Conf
/** /**
* Constructor * Constructor
*
* @return Conf
*/ */
function __construct() function __construct()
{ {

View File

@ -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)
{ {

View File

@ -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)
{ {
@ -90,7 +89,7 @@ class dolprintIPP
global $conf,$db; global $conf,$db;
include_once DOL_DOCUMENT_ROOT.'/includes/printipp/CupsPrintIPP.php'; include_once DOL_DOCUMENT_ROOT.'/includes/printipp/CupsPrintIPP.php';
$ipp = new CupsPrintIPP(); $ipp = new CupsPrintIPP();
$ipp->setLog(DOL_DATA_ROOT.'/dolibarr_printipp.log','file',3); // logging very verbose $ipp->setLog(DOL_DATA_ROOT.'/dolibarr_printipp.log','file',3); // logging very verbose
$ipp->setHost($this->host); $ipp->setHost($this->host);
@ -121,12 +120,12 @@ class dolprintIPP
} }
} }
} }
// Set number of copy // Set number of copy
$ipp->setCopies($obj->copy); $ipp->setCopies($obj->copy);
$ipp->setData(DOL_DATA_ROOT.'/'.$module.'/'.$file); $ipp->setData(DOL_DATA_ROOT.'/'.$module.'/'.$file);
$ipp->printJob(); $ipp->printJob();
return ''; return '';
} }

View File

@ -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)
{ {

View File

@ -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;

View File

@ -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();

View File

@ -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)
{ {

View File

@ -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)
{ {

View File

@ -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

View File

@ -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)
{ {

View File

@ -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)
{ {