From 4ece4e58c520e2ad5e7d911106f4b1c1a77142a5 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 11 Oct 2023 20:22:56 +0200 Subject: [PATCH] Clean code --- dev/tools/rector/rector.php | 3 +-- htdocs/core/modules/facture/doc/pdf_crabe.modules.php | 1 + htdocs/core/modules/facture/doc/pdf_sponge.modules.php | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/tools/rector/rector.php b/dev/tools/rector/rector.php index 6b29ba61cfc..c2c3c574e22 100644 --- a/dev/tools/rector/rector.php +++ b/dev/tools/rector/rector.php @@ -14,8 +14,7 @@ return static function (RectorConfig $rectorConfig): void { __DIR__ . '/../../../test/phpunit/', ]); $rectorConfig->skip([ - __DIR__ . '/../../../htdocs/custom/**/includes/*', - __DIR__ . '/../../../htdocs/includes/*', + '**/includes/**', __DIR__ . '/../../../htdocs/install/doctemplates/*' ]); $rectorConfig->parallel(240); diff --git a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php index fda39f6882e..c9727ded9e1 100644 --- a/htdocs/core/modules/facture/doc/pdf_crabe.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_crabe.modules.php @@ -1783,6 +1783,7 @@ class pdf_crabe extends ModelePDFFactures */ protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null) { + // phpcs:enable global $conf, $langs; $ltrdirection = 'L'; diff --git a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php index c823f398cd3..dac0d5e0d1f 100644 --- a/htdocs/core/modules/facture/doc/pdf_sponge.modules.php +++ b/htdocs/core/modules/facture/doc/pdf_sponge.modules.php @@ -2035,6 +2035,7 @@ class pdf_sponge extends ModelePDFFactures */ protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null) { + // phpcs:enable global $conf, $langs; $ltrdirection = 'L';