Merge pull request #9332 from frederic34/functionClosingBrace
PSR2 FunctionClosingBrace
This commit is contained in:
commit
482ddd548a
@ -374,6 +374,9 @@
|
||||
</rule>
|
||||
<rule ref="PEAR.NamingConventions.ValidVariableName" />
|
||||
|
||||
<rule ref="PSR2.Classes.ClassDeclaration" />
|
||||
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
||||
|
||||
<!-- This is not in PSR2 -->
|
||||
<rule ref="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore">
|
||||
<severity>0</severity>
|
||||
|
||||
@ -65,7 +65,6 @@ class autoTranslator
|
||||
//ini_set('default_charset','UTF-8');
|
||||
ini_set('default_charset',$this->_outputpagecode);
|
||||
$this->parse_refLangTranslationFiles();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -346,5 +345,4 @@ class autoTranslator
|
||||
|
||||
return $rep;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -28,7 +28,7 @@ require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
|
||||
/**
|
||||
* Class to manage categories of an accounting account
|
||||
*/
|
||||
class AccountancyCategory // extends CommonObject
|
||||
class AccountancyCategory // extends CommonObject
|
||||
{
|
||||
/**
|
||||
* @var DoliDB Database handler.
|
||||
@ -824,5 +824,4 @@ class AccountancyCategory // extends CommonObject
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -277,5 +277,4 @@ abstract class ActionsAdherentCardCommon
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -117,7 +117,6 @@ class ActionsAdherentCardDefault extends ActionsAdherentCardCommon
|
||||
{
|
||||
$this->LoadListDatas($limit, $offset, $sortfield, $sortorder);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -690,7 +690,6 @@ class Adherent extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2107,7 +2106,6 @@ class Adherent extends CommonObject
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2671,5 +2669,4 @@ class Adherent extends CommonObject
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -555,5 +555,4 @@ class AdherentType extends CommonObject
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -181,5 +181,4 @@ class AdherentStats extends Stats
|
||||
|
||||
return $this->_getAllByYear($sql);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -409,5 +409,4 @@ class Members extends DolibarrApi
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -320,5 +320,4 @@ class MembersTypes extends DolibarrApi
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -181,7 +181,6 @@ function create_script_table($list)
|
||||
print '</tr>';
|
||||
}
|
||||
print '</table>';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -196,6 +196,5 @@ class DolibarrApiAccess implements iAuthenticate
|
||||
return $requires
|
||||
? static::$role == 'admin' || in_array(static::$role, (array) $requires)
|
||||
: true;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -918,5 +918,4 @@ class Setup extends DolibarrApi
|
||||
|
||||
return array('resultcode'=>$resultcode, 'resultcomment'=>$resultcomment, 'expectedchecksum'=> $outexpectedchecksum, 'currentchecksum'=> $outcurrentchecksum, 'out'=>$out);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -437,5 +437,4 @@ class AssetType extends CommonObject
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -54,7 +54,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
$this->db = $db;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -90,7 +89,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
return md5($this->signature.$this->blockchain);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -103,7 +101,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
return ($hash === $this->getBlockchainHash() );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -116,7 +113,6 @@ class BlockedLogAuthority
|
||||
{
|
||||
|
||||
$this->blockchain.=$block;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -197,7 +193,6 @@ class BlockedLogAuthority
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -252,7 +247,6 @@ class BlockedLogAuthority
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -291,7 +285,6 @@ class BlockedLogAuthority
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -340,5 +333,4 @@ class BlockedLogAuthority
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -283,7 +283,6 @@ class BlockedLog
|
||||
}
|
||||
|
||||
return '<i class="opacitymedium">'.$langs->trans('ImpossibleToReloadObject', $this->element, $this->fk_object).'</i>';
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -676,7 +675,6 @@ class BlockedLog
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -716,8 +714,6 @@ class BlockedLog
|
||||
if($res===false) return false;
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1060,5 +1056,4 @@ class BlockedLog
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -226,7 +226,6 @@ class Bookmark extends CommonObject
|
||||
$this->error=$this->db->lasterror();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -256,5 +255,4 @@ class Bookmark extends CommonObject
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -138,6 +138,5 @@ class Auth
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -167,7 +167,6 @@ class Facturation
|
||||
$_SESSION['poscart']=$newcartarray;
|
||||
|
||||
$this->raz();
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -269,7 +268,6 @@ class Facturation
|
||||
$this->prixTotalHt('RESET');
|
||||
$this->montantTva('RESET');
|
||||
$this->prixTotalTtc('RESET');
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -324,7 +322,6 @@ class Facturation
|
||||
{
|
||||
$this->ref = $aRef;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -348,7 +345,6 @@ class Facturation
|
||||
{
|
||||
$this->qte = $aQte;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -372,7 +368,6 @@ class Facturation
|
||||
{
|
||||
$this->stock = $aStock;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -396,7 +391,6 @@ class Facturation
|
||||
{
|
||||
$this->remise_percent = $aRemisePercent;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -421,7 +415,6 @@ class Facturation
|
||||
$this->montant_remise = $aMontantRemise;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -446,7 +439,6 @@ class Facturation
|
||||
$this->prix = $aPrix;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -470,7 +462,6 @@ class Facturation
|
||||
$this->tva = $aTva;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -518,7 +509,6 @@ class Facturation
|
||||
$this->mode_reglement = $aModeReglement;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -543,7 +533,6 @@ class Facturation
|
||||
$this->montant_encaisse = $aMontantEncaisse;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -567,7 +556,6 @@ class Facturation
|
||||
$this->montant_rendu = $aMontantRendu;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -637,7 +625,6 @@ class Facturation
|
||||
$this->montant_tva = $aMontantTva;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -661,5 +648,4 @@ class Facturation
|
||||
$this->prix_total_ttc = $aTotalTtc;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -437,7 +437,6 @@ class ActionComm extends CommonObject
|
||||
$this->error=$this->db->lasterror();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -648,7 +647,6 @@ class ActionComm extends CommonObject
|
||||
}
|
||||
|
||||
return $num;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1690,5 +1688,4 @@ class ActionComm extends CommonObject
|
||||
|
||||
return $error;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -227,6 +227,5 @@ class ActionCommReminder extends CommonObject
|
||||
{
|
||||
$this->initAsSpecimenCommon();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -293,7 +293,6 @@ class AgendaEvents extends DolibarrApi
|
||||
'message' => 'Agenda Event deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -225,5 +225,4 @@ class CActionComm
|
||||
$transcode=$langs->trans("Action".$this->code);
|
||||
if ($transcode != "Action".$this->code) return $transcode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -44,7 +44,6 @@ class ICal
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -970,6 +970,4 @@ class AdvanceTargetingMailing extends CommonObject
|
||||
|
||||
return $return_sql_criteria;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -93,7 +93,6 @@ class Mailing extends CommonObject
|
||||
$this->statut_dest[1] = 'MailingStatusSent';
|
||||
$this->statut_dest[2] = 'MailingStatusRead';
|
||||
$this->statut_dest[3] = 'MailingStatusReadAndUnsubscribe'; // Read but ask to not be contacted anymore
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -644,6 +643,5 @@ class Mailing extends CommonObject
|
||||
if ($statut==3) return $langs->trans("MailingStatusNotContact").' '.img_picto($langs->trans("MailingStatusNotContact"),'statut3');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -491,7 +491,6 @@ class Proposals extends DolibarrApi
|
||||
'message' => 'Commercial Proposal deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -4236,6 +4236,5 @@ class PropaleLigne extends CommonObjectLine
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -473,7 +473,6 @@ class Orders extends DolibarrApi
|
||||
'message' => 'Order deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -3411,7 +3411,6 @@ class Commande extends CommonOrder
|
||||
if ($statut==self::STATUS_CLOSED && ($billed && empty($conf->global->WORKFLOW_BILL_ON_SHIPMENT))) return '<span class="hideonsmartphone">'.$langs->trans('StatusOrderProcessed').$billedtext.' </span>'.img_picto($langs->trans('StatusOrderProcessed').$billedtext,'statut6');
|
||||
if ($statut==self::STATUS_CLOSED && (! empty($conf->global->WORKFLOW_BILL_ON_SHIPMENT))) return '<span class="hideonsmartphone">'.$langs->trans('StatusOrderDelivered').' </span>'.img_picto($langs->trans('StatusOrderDelivered'),'statut6');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -222,6 +222,5 @@ class CommandeStats extends Stats
|
||||
|
||||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1170,7 +1170,6 @@ class Account extends CommonObject
|
||||
}
|
||||
|
||||
return $solde;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1513,7 +1512,6 @@ class Account extends CommonObject
|
||||
*/
|
||||
function info($id)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1558,7 +1556,6 @@ class Account extends CommonObject
|
||||
|
||||
//Get the order the properties are shown
|
||||
return $fieldarray;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1632,7 +1629,6 @@ class Account extends CommonObject
|
||||
$this->owner_address = 'Owner address';
|
||||
$this->country_id = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -2315,5 +2311,4 @@ class AccountLine extends CommonObject
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -339,5 +339,4 @@ class BankCateg // extends CommonObject
|
||||
$this->id = 0;
|
||||
$this->label = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -599,5 +599,4 @@ class PaymentVarious extends CommonObject
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -154,7 +154,6 @@ class Deplacement extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -453,6 +452,5 @@ class Deplacement extends CommonObject
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1259,5 +1259,4 @@ class Invoices extends DolibarrApi
|
||||
}
|
||||
return $invoice;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1858,7 +1858,5 @@ class FactureLigneRec extends CommonInvoiceLine
|
||||
$this->db->rollback();
|
||||
return -2;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1551,7 +1551,6 @@ class Facture extends CommonInvoice
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -224,7 +224,5 @@ class FactureStats extends Stats
|
||||
|
||||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -482,5 +482,4 @@ class PaymentTerm // extends CommonObject
|
||||
$this->nbjour='';
|
||||
$this->decalage='';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -648,5 +648,4 @@ class Localtax extends CommonObject
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1100,5 +1100,4 @@ class RemiseCheque extends CommonObject
|
||||
}
|
||||
return $langs->trans('Unknown');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -369,8 +369,5 @@ class Cpaiement
|
||||
$this->active = '';
|
||||
$this->accountancy_code = '';
|
||||
$this->module = '';
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -164,7 +164,6 @@ class BonPrelevement extends CommonObject
|
||||
}
|
||||
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1457,7 +1456,6 @@ class BonPrelevement extends CommonObject
|
||||
if (! empty($conf->global->MAIN_UMASK))
|
||||
@chmod($this->file, octdec($conf->global->MAIN_UMASK));
|
||||
return $result;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1687,7 +1685,6 @@ class BonPrelevement extends CommonObject
|
||||
fputs($this->file, substr(" ",0,5));
|
||||
|
||||
fputs($this->file, "\n");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1940,6 +1937,5 @@ class BonPrelevement extends CommonObject
|
||||
if ($statut==2) return $this->labelstatut[$statut].' '.img_picto($this->labelstatut[$statut],'statut6');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -69,7 +69,6 @@ class RejetPrelevement
|
||||
|
||||
$this->facturer[0]=$langs->trans("NoInvoiceRefused");
|
||||
$this->facturer[1]=$langs->trans("InvoiceRefused");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -198,7 +197,6 @@ class RejetPrelevement
|
||||
dol_syslog("RejetPrelevement::Create Rollback");
|
||||
$this->db->rollback();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -327,7 +325,6 @@ class RejetPrelevement
|
||||
}
|
||||
|
||||
return $arr;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -371,6 +368,5 @@ class RejetPrelevement
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -627,5 +627,4 @@ class PaymentSalary extends CommonObject
|
||||
}*/
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -523,8 +523,5 @@ class Cchargesociales
|
||||
$this->fk_pays = '';
|
||||
$this->module = '';
|
||||
$this->accountancy_code = '';
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -289,7 +289,6 @@ class ChargeSociales extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -501,8 +501,6 @@ class PaymentSocialContribution extends CommonObject
|
||||
$this->fk_bank='';
|
||||
$this->fk_user_creat='';
|
||||
$this->fk_user_modif='';
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -316,6 +316,5 @@ abstract class ActionsContactCardCommon
|
||||
$this->object->country = $langs->trans("Country".$obj->code)?$langs->trans("Country".$obj->code):$obj->label;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -116,7 +116,6 @@ class ActionsContactCardDefault extends ActionsContactCardCommon
|
||||
{
|
||||
$this->LoadListDatas($limit, $offset, $sortfield, $sortorder);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -537,7 +537,6 @@ class Contracts extends DolibarrApi
|
||||
'message' => 'Contract deleted'
|
||||
)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -45,22 +45,22 @@ class Contrat extends CommonObject
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='contrat';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
public $table_element='contrat';
|
||||
|
||||
|
||||
public $table_element_line='contratdet';
|
||||
public $fk_element='fk_contrat';
|
||||
public $picto='contract';
|
||||
|
||||
|
||||
/**
|
||||
* 0=No test on entity, 1=Test with field entity, 2=Test with link by societe
|
||||
* @var int
|
||||
*/
|
||||
public $ismultientitymanaged = 1;
|
||||
|
||||
|
||||
/**
|
||||
* 0=Default, 1=View may be restricted to sales representative only if no permission to see all or to company of external user if external user
|
||||
* @var integer
|
||||
@ -520,7 +520,6 @@ class Contrat extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -699,7 +698,6 @@ class Contrat extends CommonObject
|
||||
$this->error=$this->db->error();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2465,7 +2463,7 @@ class ContratLigne extends CommonObjectLine
|
||||
* @var string ID to identify managed object
|
||||
*/
|
||||
public $element='contratdet';
|
||||
|
||||
|
||||
/**
|
||||
* @var string Name of table without prefix where object is stored
|
||||
*/
|
||||
@ -2475,7 +2473,7 @@ class ContratLigne extends CommonObjectLine
|
||||
* @var int ID
|
||||
*/
|
||||
public $id;
|
||||
|
||||
|
||||
var $ref;
|
||||
var $tms;
|
||||
|
||||
|
||||
@ -260,6 +260,5 @@ class box_actions extends ModeleBoxes
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -161,6 +161,5 @@ class box_bookmarks extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -163,7 +163,6 @@ class box_clients extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -178,6 +177,5 @@ class box_clients extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -202,6 +202,5 @@ class box_commandes extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -174,7 +174,6 @@ class box_comptes extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -189,6 +188,5 @@ class box_comptes extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -189,6 +189,5 @@ class box_contacts extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -185,6 +185,5 @@ class box_contracts extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -198,6 +198,5 @@ class box_external_rss extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -206,5 +206,4 @@ class box_factures extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -218,6 +218,5 @@ class box_factures_fourn extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -191,7 +191,6 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -206,6 +205,5 @@ class box_factures_fourn_imp extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -209,5 +209,4 @@ class box_factures_imp extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -170,6 +170,5 @@ class box_ficheinter extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -150,7 +150,6 @@ class box_fournisseurs extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -165,6 +164,5 @@ class box_fournisseurs extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -159,7 +159,6 @@ class box_goodcustomers extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -280,6 +280,5 @@ class box_graph_invoices_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -279,6 +279,5 @@ class box_graph_invoices_supplier_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -278,6 +278,5 @@ class box_graph_orders_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -277,6 +277,5 @@ class box_graph_orders_supplier_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -401,7 +401,6 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
'text' => $mesg
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -416,6 +415,5 @@ class box_graph_product_distribution extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -281,6 +281,5 @@ class box_graph_propales_permonth extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -98,7 +98,6 @@ class box_lastlogin extends ModeleBoxes
|
||||
'td' => '',
|
||||
'text' => $tmp,
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -168,7 +168,6 @@ class box_members extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -183,6 +182,5 @@ class box_members extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -230,6 +230,5 @@ class box_produits extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -242,6 +242,5 @@ class box_produits_alerte_stock extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -184,7 +184,6 @@ class box_project extends ModeleBoxes
|
||||
'td' => '',
|
||||
'text' => " ",
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -192,6 +192,5 @@ class box_propales extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -180,6 +180,5 @@ class box_prospect extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -222,7 +222,6 @@ class box_services_contracts extends ModeleBoxes
|
||||
'text' => $langs->trans("ReadPermissionNotAllowed")
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -237,6 +236,5 @@ class box_services_contracts extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -184,6 +184,5 @@ class box_services_expired extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -188,6 +188,5 @@ class box_supplier_orders extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -137,7 +137,6 @@ class box_task extends ModeleBoxes
|
||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totalplannedtot,'all',25200,5));
|
||||
$this->info_box_contents[$i][] = array('td' => 'align="right" ', 'text' => ConvertSecondToTime($totaldurationtot,'all',25200,5));
|
||||
$this->info_box_contents[$i][] = array('td' => '', 'text' => "");
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
*
|
||||
* Boxes parent class
|
||||
*/
|
||||
class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" boxes
|
||||
class ModeleBoxes // Can't be abtract as it is instantiated to build "empty" boxes
|
||||
{
|
||||
/**
|
||||
* @var DoliDB Database handler
|
||||
@ -503,8 +503,6 @@ class ModeleBoxes // Can't be abtract as it is instantiated to build "empty"
|
||||
}
|
||||
return $widget;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -471,7 +471,6 @@ class CMailFile
|
||||
// --------------------------------------
|
||||
$this->error = 'Bad value for sendmode';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -244,6 +244,5 @@ class CSMSFile
|
||||
@chmod($outputfile, octdec($conf->global->MAIN_UMASK));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -179,6 +179,5 @@ class AntiVir
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -208,5 +208,4 @@ class Canvas
|
||||
return $ret;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -333,5 +333,4 @@ class Ccountry // extends CommonObject
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -767,7 +767,6 @@ abstract class CommonDocGenerator
|
||||
}
|
||||
|
||||
return $array_to_fill;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -1063,7 +1063,6 @@ abstract class CommonObject
|
||||
dol_print_error($this->db);
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -2026,7 +2025,6 @@ abstract class CommonObject
|
||||
$this->db->commit();
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -4622,7 +4620,6 @@ abstract class CommonObject
|
||||
if (isset($conf->global->$keyforfieldname)) return $conf->global->$keyforfieldname;
|
||||
|
||||
// TODO Ad here a scan into table llx_overwrite_default with a filter on $this->element and $fieldname
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -7243,5 +7240,4 @@ abstract class CommonObject
|
||||
{
|
||||
return count($this->comments);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -144,6 +144,5 @@ abstract class CommonOrderLine extends CommonObjectLine
|
||||
public $info_bits = 0;
|
||||
|
||||
public $special_code = 0;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -266,5 +266,4 @@ abstract class CommonStickerGenerator
|
||||
$this->_Height = $this->_Convert_Metric($format['height'], $this->_Metric, $this->_Metric_Doc);
|
||||
$this->Set_Char_Size($pdf, $format['font-size']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -666,7 +666,6 @@ class Conf
|
||||
$this->loghandlers[$handler] = $loghandlerinstance;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -75,7 +75,6 @@ class CoreObject extends CommonObject
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -271,7 +270,6 @@ class CoreObject extends CommonObject
|
||||
$this->db->rollback();
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -437,5 +435,4 @@ class CoreObject extends CommonObject
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -317,5 +317,4 @@ class Cstate // extends CommonObject
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -333,5 +333,4 @@ class Ctypent // extends CommonObject
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -463,7 +463,6 @@ class Ctyperesource
|
||||
$this->label = '';
|
||||
$this->active = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -486,5 +485,4 @@ class CtyperesourceLine
|
||||
/**
|
||||
* @var mixed Sample line property 2
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user