From 4a9a85458df53db1a5c4c3fc5ee1d84641cbceef Mon Sep 17 00:00:00 2001 From: odain Date: Fri, 7 Nov 2025 16:04:23 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08796=20-=20fix=20ci=20jo=20regression=20?= =?UTF-8?q?due=20to=20code=20style=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/php-code-style/.php-cs-fixer.dist.php | 2 +- .../php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/php-code-style/.php-cs-fixer.dist.php b/tests/php-code-style/.php-cs-fixer.dist.php index 1478f735c..6456c3dd9 100644 --- a/tests/php-code-style/.php-cs-fixer.dist.php +++ b/tests/php-code-style/.php-cs-fixer.dist.php @@ -6,7 +6,7 @@ echo $APPROOT; $finder = PhpCsFixer\Finder::create() ->in($APPROOT) ->exclude(['oql', 'data', 'extensions']) - ->notPath(['/env-*/', '/cache-*/', 'lib', 'vendor', 'node_modules']) + ->notPath(['/env-*/', '/cache-*/', 'lib', 'vendor', 'node_modules', 'config-itop', 'php-static-analysis']) ; $config = new PhpCsFixer\Config(); diff --git a/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php b/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php index baaf59372..8acc2c3ef 100644 --- a/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php +++ b/tests/php-unit-tests/unitary-tests/core/Log/ExceptionLogTest.php @@ -68,7 +68,7 @@ class ExceptionLogTest extends ItopDataTestCase $sExpectedFile = __FILE__; // @formatter:off $oException = new $aExceptions[$i]("Iteration number $i"); - $sExpectedLine = __LINE__; //Both should remain on the same line + $sExpectedLine = __LINE__-1; //Both should remain on the same line // @formatter:on $iExpectedWriteNumber = $aExpectedWriteNumber[$i];