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';