Skip to content

Commit

Permalink
And again
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Mar 26, 2023
1 parent e19074e commit 5fd97bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.5.inc.fixed
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
<?php
/* *** TESTING WITHOUT A TAB WIDTH SET *** */
/**
* @param int $var Description - Bad: alignment using tabs.
* @param int $var Description - Bad: alignment using tabs.
* @param string $string Another description.
*/

$expected = ( $column - 1 );
$found = ( $this->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.
2 changes: 1 addition & 1 deletion Universal/Tests/WhiteSpace/DisallowInlineTabsUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5fd97bc

Please sign in to comment.