From 141664ff10ab69e19f5cb77418537ba7e74af8ce Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 30 Jan 2020 02:25:26 +0100 Subject: [PATCH 1/2] Fix phpcs --- htdocs/core/lib/pdf.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/lib/pdf.lib.php b/htdocs/core/lib/pdf.lib.php index 6de51cfe7ba..a5ba08bb139 100644 --- a/htdocs/core/lib/pdf.lib.php +++ b/htdocs/core/lib/pdf.lib.php @@ -2154,7 +2154,7 @@ function pdf_getLinkedObjects($object, $outputlangs) $linkedobjects[$objecttype]['date_value'] = dol_print_date($elementobject->date_contrat, 'day', '', $outputlangs); } } - else if ($objecttype == 'fichinter') + elseif ($objecttype == 'fichinter') { $outputlangs->load('interventions'); foreach($objects as $elementobject) From 651173678cf6068a130a5e606e258b4bcb612998 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 30 Jan 2020 02:49:59 +0100 Subject: [PATCH 2/2] Fix url to test --- test/phpunit/PaypalTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/phpunit/PaypalTest.php b/test/phpunit/PaypalTest.php index 438cbaa9309..96bfbefdf17 100644 --- a/test/phpunit/PaypalTest.php +++ b/test/phpunit/PaypalTest.php @@ -135,7 +135,7 @@ class PaypalTest extends PHPUnit\Framework\TestCase $langs=$this->savlangs; $db=$this->savdb; - $urltotest=getPaypalPaymentUrl(1, 'free'); + $urltotest=getPaypalPaymentUrl(0, 'free'); print "urltotest=".$urltotest."\n"; $result=getURLContent($urltotest, 'GET');