From 68188ffda19f9c9e44eee4486b3f9b5b93683e7f Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Sat, 9 Mar 2019 00:02:05 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- htdocs/datapolicy/class/datapolicy.class.php | 2 +- htdocs/loan/createschedule.php | 10 +++--- htdocs/loan/schedule.php | 10 +++--- htdocs/product/class/product.class.php | 34 ++++++++++---------- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/htdocs/datapolicy/class/datapolicy.class.php b/htdocs/datapolicy/class/datapolicy.class.php index ea720e0586f..bf1033084d5 100644 --- a/htdocs/datapolicy/class/datapolicy.class.php +++ b/htdocs/datapolicy/class/datapolicy.class.php @@ -28,7 +28,7 @@ include_once DOL_DOCUMENT_ROOT . '/adherents/class/adherent.class.php'; /** * Class DataPolicy */ -Class DataPolicy +class DataPolicy { /** * getAllContactNotInformed diff --git a/htdocs/loan/createschedule.php b/htdocs/loan/createschedule.php index 96c84b2306a..4fe644e5521 100644 --- a/htdocs/loan/createschedule.php +++ b/htdocs/loan/createschedule.php @@ -154,12 +154,12 @@ print ''; print ''; print ''; -Print ''.$langs->trans("Term").''; -Print ''.$langs->trans("Date").''; +print ''.$langs->trans("Term").''; +print ''.$langs->trans("Date").''; print ''.$langs->trans("Insurance"); -Print ''.$langs->trans("InterestAmount").''; -Print ''.$langs->trans("Amount").''; -Print ''.$langs->trans("CapitalRemain"); +print ''.$langs->trans("InterestAmount").''; +print ''.$langs->trans("Amount").''; +print ''.$langs->trans("CapitalRemain"); print ' ('.price2num($object->capital).')'; print ''; print ''; diff --git a/htdocs/loan/schedule.php b/htdocs/loan/schedule.php index d422f541b10..1c9cb9d8c3f 100644 --- a/htdocs/loan/schedule.php +++ b/htdocs/loan/schedule.php @@ -160,12 +160,12 @@ print ''; print ''; print ''; -Print ''.$langs->trans("Term").''; -Print ''.$langs->trans("Date").''; +print ''.$langs->trans("Term").''; +print ''.$langs->trans("Date").''; print ''.$langs->trans("Insurance"); -Print ''.$langs->trans("InterestAmount").''; -Print ''.$langs->trans("Amount").''; -Print ''.$langs->trans("CapitalRemain"); +print ''.$langs->trans("InterestAmount").''; +print ''.$langs->trans("Amount").''; +print ''.$langs->trans("CapitalRemain"); print ' ('.price2num($object->capital).')'; print ''; print ''; diff --git a/htdocs/product/class/product.class.php b/htdocs/product/class/product.class.php index 0fa28593386..51a5d7c72d0 100644 --- a/htdocs/product/class/product.class.php +++ b/htdocs/product/class/product.class.php @@ -4159,23 +4159,23 @@ class Product extends CommonObject if ($type == 2) { switch ($mode) { - case 0: - return ($status == 0 ? $langs->trans('ProductStatusNotOnBatch') : $langs->trans('ProductStatusOnBatch')); - case 1: - return ($status == 0 ? $langs->trans('ProductStatusNotOnBatchShort') : $langs->trans('ProductStatusOnBatchShort')); - case 2: - return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 1, 2); - case 3: - if ($status == 0) { - return img_picto($langs->trans('ProductStatusNotOnBatch'), 'statut5'); - } - return img_picto($langs->trans('ProductStatusOnBatch'), 'statut4'); - case 4: - return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 0, 2); - case 5: - return $this->LibStatut($status, 1, 2).' '.$this->LibStatut($status, 3, 2); - default: - return $langs->trans('Unknown'); + case 0: + return ($status == 0 ? $langs->trans('ProductStatusNotOnBatch') : $langs->trans('ProductStatusOnBatch')); + case 1: + return ($status == 0 ? $langs->trans('ProductStatusNotOnBatchShort') : $langs->trans('ProductStatusOnBatchShort')); + case 2: + return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 1, 2); + case 3: + if ($status == 0) { + return img_picto($langs->trans('ProductStatusNotOnBatch'), 'statut5'); + } + return img_picto($langs->trans('ProductStatusOnBatch'), 'statut4'); + case 4: + return $this->LibStatut($status, 3, 2).' '.$this->LibStatut($status, 0, 2); + case 5: + return $this->LibStatut($status, 1, 2).' '.$this->LibStatut($status, 3, 2); + default: + return $langs->trans('Unknown'); } } if ($mode == 0) {