Skip to content

Commit 75bc2c1

Browse files
committed
Clean code
1 parent c592736 commit 75bc2c1

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Unit.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,10 @@ public function execute(): void
9595
}
9696
if(count($this->error) > 0) {
9797
foreach($this->error as $error) {
98-
$tests = [];
98+
//$tests = [];
9999
$this->command->title("\n{$error['message']}");
100100
foreach($error['error'] as $row) {
101-
$tests[] = $row['method'];
101+
//$tests[] = $row['method'];
102102
$this->command->error("Test-value {$row['readableValue']}");
103103
$this->command->error("{$row['message']}\n");
104104
}
@@ -148,17 +148,13 @@ private function findFiles($dir): array
148148
{
149149
$files = [];
150150
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir));
151-
152-
$key = 0;
153151
foreach ($iterator as $file) {
154152
if (fnmatch(static::PATTERN, $file->getFilename()) &&
155153
(isset($this->args['path']) || !str_contains($file->getPathname(), DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR ))) {
156-
157154
if(!$this->findExcluded($this->exclude(), $dir, $file->getPathname())) {
158155
$files[] = $file->getPathname();
159156
}
160157
}
161-
162158
}
163159
return $files;
164160
}

0 commit comments

Comments
 (0)