PSR2 ClassDeclaration
This commit is contained in:
parent
b03f4004ea
commit
6aee680a4f
@ -374,7 +374,7 @@
|
||||
</rule>
|
||||
<rule ref="PEAR.NamingConventions.ValidVariableName" />
|
||||
|
||||
<!--<rule ref="PSR2.Classes.ClassDeclaration" />-->
|
||||
<rule ref="PSR2.Classes.ClassDeclaration" />
|
||||
<rule ref="PSR2.Methods.FunctionClosingBrace" />
|
||||
|
||||
<!-- This is not in PSR2 -->
|
||||
|
||||
@ -345,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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -2669,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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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 '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1056,5 +1056,4 @@ class BlockedLog
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -255,5 +255,4 @@ class Bookmark extends CommonObject
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -138,6 +138,5 @@ class Auth
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -648,5 +648,4 @@ class Facturation
|
||||
$this->prix_total_ttc = $aTotalTtc;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1688,5 +1688,4 @@ class ActionComm extends CommonObject
|
||||
|
||||
return $error;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -227,6 +227,5 @@ class ActionCommReminder extends CommonObject
|
||||
{
|
||||
$this->initAsSpecimenCommon();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -225,5 +225,4 @@ class CActionComm
|
||||
$transcode=$langs->trans("Action".$this->code);
|
||||
if ($transcode != "Action".$this->code) return $transcode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -970,6 +970,4 @@ class AdvanceTargetingMailing extends CommonObject
|
||||
|
||||
return $return_sql_criteria;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@ -643,6 +643,5 @@ class Mailing extends CommonObject
|
||||
if ($statut==3) return $langs->trans("MailingStatusNotContact").' '.img_picto($langs->trans("MailingStatusNotContact"),'statut3');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -4235,6 +4235,5 @@ class PropaleLigne extends CommonObjectLine
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -222,6 +222,5 @@ class CommandeStats extends Stats
|
||||
|
||||
return $this->_getAllByProduct($sql);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1629,7 +1629,6 @@ class Account extends CommonObject
|
||||
$this->owner_address = 'Owner address';
|
||||
$this->country_id = 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -2312,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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -452,6 +452,5 @@ class Deplacement extends CommonObject
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1259,5 +1259,4 @@ class Invoices extends DolibarrApi
|
||||
}
|
||||
return $invoice;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1859,5 +1859,4 @@ class FactureLigneRec extends CommonInvoiceLine
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -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');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -370,5 +370,4 @@ class Cpaiement
|
||||
$this->accountancy_code = '';
|
||||
$this->module = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1937,6 +1937,5 @@ class BonPrelevement extends CommonObject
|
||||
if ($statut==2) return $this->labelstatut[$statut].' '.img_picto($this->labelstatut[$statut],'statut6');
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -368,6 +368,5 @@ class RejetPrelevement
|
||||
return -2;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -627,5 +627,4 @@ class PaymentSalary extends CommonObject
|
||||
}*/
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -524,5 +524,4 @@ class Cchargesociales
|
||||
$this->module = '';
|
||||
$this->accountancy_code = '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -316,6 +316,5 @@ abstract class ActionsContactCardCommon
|
||||
$this->object->country = $langs->trans("Country".$obj->code)?$langs->trans("Country".$obj->code):$obj->label;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -177,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -188,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -205,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -164,6 +164,5 @@ class box_fournisseurs extends ModeleBoxes
|
||||
{
|
||||
return parent::showBox($this->info_box_head, $this->info_box_contents, $nooutput);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -415,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -182,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -236,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -7240,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']);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -435,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
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
@ -344,6 +344,5 @@ class DolEditor
|
||||
if ($noprint) return $out;
|
||||
else print $out;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1097,6 +1097,5 @@ class DolGraph
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -423,7 +423,6 @@ class EmailSenderProfile extends CommonObject
|
||||
{
|
||||
$this->initAsSpecimenCommon();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -297,5 +297,4 @@ class Events // extends CommonObject
|
||||
$this->dateevent=time();
|
||||
$this->description='This is a specimen event';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -335,5 +335,4 @@ class Fiscalyear extends CommonObject
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -38,6 +38,5 @@ class GenericObject extends CommonObject
|
||||
{
|
||||
$this->db=$db;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -283,5 +283,4 @@ class HookManager
|
||||
|
||||
return ($error?-1:$resaction);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -7113,6 +7113,5 @@ class Form
|
||||
|
||||
return $out;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -366,5 +366,4 @@ class FormActions
|
||||
else print $out;
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -186,6 +186,5 @@ class FormBarCode
|
||||
print '</td></tr></table></form>';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -867,6 +867,5 @@ class FormCompany
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -187,5 +187,4 @@ class FormContract
|
||||
print '<input type="submit" class="button valignmiddle" value="'.$langs->trans("Modify").'">';
|
||||
print '</form>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -1829,6 +1829,5 @@ class FormFile
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1385,7 +1385,6 @@ class FormMail extends Form
|
||||
|
||||
return $tmparray;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -282,6 +282,5 @@ class FormMargin
|
||||
print '</table>';
|
||||
print '</div>';
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -100,6 +100,5 @@ class FormOrder extends Form
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -1255,6 +1255,5 @@ class FormOther
|
||||
dol_print_error($this->db);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -665,5 +665,4 @@ class FormProjets
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -360,6 +360,5 @@ function limitChars(textarea, limit, infodiv)
|
||||
|
||||
print "<!-- End form SMS -->\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -120,6 +120,5 @@ class FormSocialContrib
|
||||
dol_print_error($db,$db->lasterror());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -205,5 +205,4 @@ class FormWebsite
|
||||
|
||||
return $out;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -281,6 +281,5 @@ class InfoBox
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user