Skip to content

Commit b592b26

Browse files
committed
fixed CS
1 parent 8578887 commit b592b26

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Helper/ProgressBar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public function setRedrawFrequency(int $freq)
250250
*/
251251
public function iterate(iterable $iterable, ?int $max = null): iterable
252252
{
253-
$this->start($max ?? (\is_countable($iterable) ? \count($iterable) : 0));
253+
$this->start($max ?? (is_countable($iterable) ? \count($iterable) : 0));
254254

255255
foreach ($iterable as $key => $value) {
256256
yield $key => $value;

Tests/Helper/ProgressBarTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ public function testIterate(): void
884884
{
885885
$bar = new ProgressBar($output = $this->getOutputStream());
886886

887-
$this->assertEquals([1, 2], \iterator_to_array($bar->iterate([1, 2])));
887+
$this->assertEquals([1, 2], iterator_to_array($bar->iterate([1, 2])));
888888

889889
rewind($output->getStream());
890890
$this->assertEquals(
@@ -900,7 +900,7 @@ public function testIterateUncountable(): void
900900
{
901901
$bar = new ProgressBar($output = $this->getOutputStream());
902902

903-
$this->assertEquals([1, 2], \iterator_to_array($bar->iterate((function () {
903+
$this->assertEquals([1, 2], iterator_to_array($bar->iterate((function () {
904904
yield 1;
905905
yield 2;
906906
})())));

0 commit comments

Comments
 (0)