Skip to content

Commit f5573fb

Browse files
maurobaptistagithub-actions[bot]
authored andcommitted
Fix styling
1 parent 23c9385 commit f5573fb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Components.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace MauroBaptista\SlowTests;
44

5-
use Closure;
65
use function Termwind\render;
76

87
class Components

src/Extensions/ResultToCSV.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use PHPUnit\Runner\AfterTestHook;
88
use PHPUnit\Runner\BeforeFirstTestHook;
99

10-
1110
class ResultToCSV implements BeforeFirstTestHook, AfterTestHook, AfterLastTestHook
1211
{
1312
private $handle;
@@ -35,7 +34,7 @@ public function executeBeforeFirstTest(): void
3534

3635
$this->handle = fopen($this->getFile(), "a");
3736

38-
if (!is_resource($this->handle)) {
37+
if (! is_resource($this->handle)) {
3938
$this->components->error("Couldn't open file <i>$file</i>", [
4039
'You added the report inside a folder that do not exist',
4140
'You have no permission to create/write the file',

src/Extensions/SlowestTests.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
class SlowestTests implements BeforeFirstTestHook, AfterTestHook, AfterLastTestHook
1010
{
11-
/** @var array<string, float> array<$test, $time> */
11+
/** @var array<string, float> array<$test,> */
1212
private array $tests = [];
1313

14-
public function __construct(public int $show = 10) {}
14+
public function __construct(public int $show = 10)
15+
{
16+
}
1517

1618
public function executeBeforeFirstTest(): void
1719
{
@@ -29,6 +31,6 @@ public function executeAfterLastTest(): void
2931

3032
$slowestTests = array_slice($this->tests, 0, $this->show);
3133

32-
fwrite(STDERR, print_r($slowestTests, TRUE));
34+
fwrite(STDERR, print_r($slowestTests, true));
3335
}
3436
}

0 commit comments

Comments
 (0)