changed mosiac for masaic
This commit is contained in:
parent
c29b91801b
commit
fab048593e
|
|
@ -163,7 +163,7 @@ public function allMosaicsPresent(Carbon $endDate): bool
|
||||||
throw new \Exception('End date is in the future');
|
throw new \Exception('End date is in the future');
|
||||||
}
|
}
|
||||||
|
|
||||||
$mosaicsNotPresentInFilesystem = $this->getMosiacFilenameListByEndDate($endDate)
|
$mosaicsNotPresentInFilesystem = $this->getMosaicFilenameListByEndDate($endDate)
|
||||||
->filter(function ($filename) {
|
->filter(function ($filename) {
|
||||||
return !$this->getMosaicList()->contains(function ($mosaicFilename) use ($filename) {
|
return !$this->getMosaicList()->contains(function ($mosaicFilename) use ($filename) {
|
||||||
return Str::endsWith($mosaicFilename, substr($filename, -16));
|
return Str::endsWith($mosaicFilename, substr($filename, -16));
|
||||||
|
|
@ -179,7 +179,7 @@ public function allMosaicsPresent(Carbon $endDate): bool
|
||||||
throw new \Exception($message);
|
throw new \Exception($message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getMosiacFilenameListByEndDate(Carbon $endDate): \Illuminate\Support\Collection
|
public function getMosaicFilenameListByEndDate(Carbon $endDate): \Illuminate\Support\Collection
|
||||||
{
|
{
|
||||||
$result = collect([]);
|
$result = collect([]);
|
||||||
for ($i = 0; $i < 4; $i++) {
|
for ($i = 0; $i < 4; $i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue