Skip to content

Commit 9d3f691

Browse files
committed
Merge branch 'master' into 4.x
2 parents aab9cd6 + 1229916 commit 9d3f691

File tree

3 files changed

+17
-4
lines changed

3 files changed

+17
-4
lines changed

src/Standards/Generic/Sniffs/WhiteSpace/ScopeIndentSniff.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ class ScopeIndentSniff implements Sniff
9797
*/
9898
public function register()
9999
{
100-
if (defined('PHP_CODESNIFFER_IN_TESTS') === true) {
101-
$this->debug = false;
102-
}
103-
104100
return [T_OPEN_TAG];
105101

106102
}//end register()

src/Standards/Generic/Tests/WhiteSpace/ScopeIndentUnitTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ final class ScopeIndentUnitTest extends AbstractSniffTestCase
3030
*/
3131
public function setCliValues($testFile, $config)
3232
{
33+
$config->setConfigData('scope_indent_debug', false, true);
34+
3335
// Tab width setting is only needed for the tabbed file.
3436
if ($testFile === 'ScopeIndentUnitTest.2.inc') {
3537
$config->tabWidth = 4;

src/Standards/PEAR/Tests/WhiteSpace/ScopeIndentUnitTest.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ final class ScopeIndentUnitTest extends AbstractSniffTestCase
2020
{
2121

2222

23+
/**
24+
* Get a list of CLI values to set before the file is tested.
25+
*
26+
* @param string $testFile The name of the file being tested.
27+
* @param \PHP_CodeSniffer\Config $config The config data for the test run.
28+
*
29+
* @return void
30+
*/
31+
public function setCliValues($testFile, $config)
32+
{
33+
$config->setConfigData('scope_indent_debug', false, true);
34+
35+
}//end setCliValues()
36+
37+
2338
/**
2439
* Returns the lines where errors should occur.
2540
*

0 commit comments

Comments
 (0)