Skip to content

Commit 2be96e1

Browse files
committed
test
1 parent 37d2851 commit 2be96e1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/Plugin.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ public function handleOriginalArguments(array $arguments): void
136136
->notName('*.blade.php')
137137
->files();
138138

139+
$files = array_filter(
140+
iterator_to_array($files),
141+
fn (string $file): bool => ! str_contains(file_get_contents($file), 'trait '),
142+
);
143+
139144
$totals = [];
140145

141146
$this->output->writeln(['']);
@@ -151,8 +156,6 @@ public function handleOriginalArguments(array $arguments): void
151156
['index' => $index, 'total' => $total] = Shard::getShard($input);
152157
}
153158

154-
$files = iterator_to_array($files);
155-
156159
if ($total > 1) {
157160
$files = array_filter($files, static function ($file) use ($index, $total): bool {
158161
return (crc32($file->getRealPath()) % $total) === ($index - 1);

0 commit comments

Comments
 (0)