From 5fd97bc3ee17e946943ba0a242eeea2fc4f0d61a Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sun, 26 Mar 2023 01:32:02 +0100 Subject: [PATCH] And again --- .../DisallowInlineTabsUnitTest.5.inc.fixed | 28 +++++++++---------- .../WhiteSpace/DisallowInlineTabsUnitTest.php | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.5.inc.fixed b/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.5.inc.fixed index ceb402c..ce00160 100644 --- a/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.5.inc.fixed +++ b/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.5.inc.fixed @@ -1,35 +1,35 @@ tokens[ $closer ]['column'] - 1 ); // Bad. - $error = 'Array closer not aligned correctly; expected %s space(s) but found %s'; // Bad. - $data = array( // Bad. + $found = ( $this->tokens[ $closer ]['column'] - 1 ); // Bad. + $error = 'Array closer not aligned correctly; expected %s space(s) but found %s'; // Bad. + $data = array( // Bad. $expected_value => 'data', - $found => 'more_data', // Bad. + $found => 'more_data', // Bad. ); /* * Test that the tab replacements do not negatively influence existing mid-line alignments. */ -$a = true; -$aa = true; -$aaa = true; -$aaaa = true; -$aaaaa = true; +$a = true; +$aa = true; +$aaa = true; +$aaaa = true; +$aaaaa = true; $aaaaaa = true; $aaaaaaa = true; $aaaaaaaa = true; -// Test tab replacement in inline comments. +// Test tab replacement in inline comments. /* - * Tab indented and inline tabs. + * Tab indented and inline tabs. */ - // Tab indented and inline tabs. - // Tab indented and inline tabs. + // Tab indented and inline tabs. + // Tab indented and inline tabs. diff --git a/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php b/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php index 8b6df27..262127a 100644 --- a/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php +++ b/Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php @@ -56,7 +56,7 @@ public function setCliValues($testFile, $config) } if ($testFile === 'DisallowInlineTabsUnitTest.5.inc' || $testFile === 'DisallowInlineTabsUnitTest.6.inc') { - // Set to the default. + // Set to the default (results in tab width 1). $config->tabWidth = 0; return; }