Skip to content

Commit ef7c95f

Browse files
committed
Code Style fixes
CS fixes for the changes in the unit test Signed-off-by: Tom Van Herreweghe <tom@theanalogguy.be>
1 parent 0f4b429 commit ef7c95f

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

test/Command/ProjectionNamesCommandTest.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ public function it_lists_correct_amount_of_projections(int $amountToGenerate, in
7474
}
7575

7676
$commandTester = new CommandTester($command);
77-
$commandTester->execute(['--limit' => $limit,]);
77+
$commandTester->execute(['--limit' => $limit]);
7878
$this->assertContains('main_projection_manager', $commandTester->getDisplay());
7979

80-
$expectedProjectionNames = array_slice($projectionNames, 0, $limit);
81-
$unexpectedProjectionNames = array_slice($projectionNames, $limit);
80+
$expectedProjectionNames = \array_slice($projectionNames, 0, $limit);
81+
$unexpectedProjectionNames = \array_slice($projectionNames, $limit);
8282
foreach ($expectedProjectionNames as $projectionName) {
8383
$this->assertContains($projectionName, $commandTester->getDisplay());
8484
}
@@ -113,11 +113,11 @@ private function projectionNameGenerator(
113113
int $amountToGenerate,
114114
string $prefix = 'black_hole_read_model_projection_'
115115
): array {
116-
return array_map(
116+
return \array_map(
117117
function ($value) use ($amountToGenerate, $prefix) {
118-
return $prefix . str_pad((string) $value, strlen((string) $amountToGenerate), '0', \STR_PAD_LEFT);
118+
return $prefix . \str_pad((string) $value, \strlen((string) $amountToGenerate), '0', \STR_PAD_LEFT);
119119
},
120-
range(1, $amountToGenerate)
120+
\range(1, $amountToGenerate)
121121
);
122122
}
123123

@@ -126,15 +126,15 @@ public function provideLimitOptions(): array
126126
return [
127127
[
128128
25,
129-
null
129+
null,
130130
],
131131
[
132132
25,
133-
5
133+
5,
134134
],
135135
[
136136
25,
137-
25
137+
25,
138138
],
139139
];
140140
}

0 commit comments

Comments
 (0)