We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37d2851 commit 2be96e1Copy full SHA for 2be96e1
1 file changed
src/Plugin.php
@@ -136,6 +136,11 @@ public function handleOriginalArguments(array $arguments): void
136
->notName('*.blade.php')
137
->files();
138
139
+ $files = array_filter(
140
+ iterator_to_array($files),
141
+ fn (string $file): bool => ! str_contains(file_get_contents($file), 'trait '),
142
+ );
143
+
144
$totals = [];
145
146
$this->output->writeln(['']);
@@ -151,8 +156,6 @@ public function handleOriginalArguments(array $arguments): void
151
156
['index' => $index, 'total' => $total] = Shard::getShard($input);
152
157
}
153
158
154
- $files = iterator_to_array($files);
155
-
159
if ($total > 1) {
160
$files = array_filter($files, static function ($file) use ($index, $total): bool {
161
return (crc32($file->getRealPath()) % $total) === ($index - 1);
0 commit comments