File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments