Skip to content

Commit 69d7d32

Browse files
committed
IgnoreList: minor whitespace fixes
1 parent f8eda67 commit 69d7d32

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Util/IgnoreList.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class IgnoreList
3030
*
3131
* @var array<string, bool|array<string, bool|array<string, bool|array<string, bool>>>>
3232
*/
33-
private $data = [ '.default' => false ];
33+
private $data = ['.default' => false];
3434

3535

3636
/**
@@ -105,7 +105,7 @@ public function set($code, $ignore)
105105
if (isset($data[$part]) === false) {
106106
$data[$part] = [];
107107
} else if (is_bool($data[$part]) === true) {
108-
$data[$part] = [ '.default' => $data[$part] ];
108+
$data[$part] = ['.default' => $data[$part]];
109109
}
110110

111111
$data = &$data[$part];
@@ -158,7 +158,7 @@ public function isIgnored($code)
158158
*/
159159
public function ignoresNothing()
160160
{
161-
$arraysToProcess = [ $this->data ];
161+
$arraysToProcess = [$this->data];
162162
while ($arraysToProcess !== []) {
163163
$arrayBeingProcessed = array_pop($arraysToProcess);
164164
foreach ($arrayBeingProcessed as $valueBeingProcessed) {
@@ -184,7 +184,7 @@ public function ignoresNothing()
184184
*/
185185
public function ignoresEverything()
186186
{
187-
$arraysToProcess = [ $this->data ];
187+
$arraysToProcess = [$this->data];
188188
while ($arraysToProcess !== []) {
189189
$arrayBeingProcessed = array_pop($arraysToProcess);
190190
foreach ($arrayBeingProcessed as $valueBeingProcessed) {

tests/Core/Util/IgnoreList/CheckAndSetTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ final class CheckAndSetTest extends TestCase
2424
/**
2525
* Test isIgnored() and set().
2626
*
27-
* @param array<string,bool> $toSet Associative array of $code => $ignore to pass to set().
28-
* @param array<string,bool> $toCheck Associative array of $code => $expect to pass to isIgnored().
27+
* @param array<string, bool> $toSet Associative array of $code => $ignore to pass to set().
28+
* @param array<string, bool> $toCheck Associative array of $code => $expect to pass to isIgnored().
2929
*
3030
* @return void
3131
*

0 commit comments

Comments
 (0)