Existing bugs commits squashed
validation-bugsnag-email auto-update datatables adding-engine backup fixes Apply fixes from StyleCI duedate fixes Apply fixes from StyleCI style-changes changes Apply fixes from StyleCI changes-n Apply fixes from StyleCI manual-update database:sync issues bugfixes mail Apply fixes from StyleCI Apply fixes from StyleCI
This commit is contained in:

committed by
RafficMohammed

parent
2ae90d7fcb
commit
0654723809
@@ -3,6 +3,7 @@
|
||||
namespace Chumper\Zipper\Repositories;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Support\Str;
|
||||
use ZipArchive;
|
||||
|
||||
class ZipRepository implements RepositoryInterface
|
||||
@@ -114,10 +115,12 @@ class ZipRepository implements RepositoryInterface
|
||||
if ($stats['size'] === 0 && $stats['crc'] === 0) {
|
||||
continue;
|
||||
}
|
||||
call_user_func_array($callback, [
|
||||
'file' => $this->archive->getNameIndex($i),
|
||||
'stats' => $this->archive->statIndex($i)
|
||||
]);
|
||||
$file = $this->archive->getNameIndex($i);
|
||||
$stats = $this->archive->statIndex($i);
|
||||
if (Str::startsWith($file, 'some_prefix')) {
|
||||
$callback($file, $stats);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user