Skip to content

Commit

Permalink
DRY.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura committed Jan 17, 2025
1 parent 960961f commit 31e0c69
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/Utils/Barcode/BarcodeUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,7 @@ public static function getBarcodesFromPackage(Package $package, int $start = 0):
$taskId = $package->getTask()->getId();
$packageId = $package->getId();

return array_map(
fn(int $index) => self::parse(sprintf(
self::WITH_PACKAGE,
1, // TODO: Dynamic instance
Barcode::TYPE_TASK,
$taskId,
$packageId,
$index + $start + 1
)),
range(0, $quantity - 1)
);
return self::getBarcodesFromTaskAndPackageIds($taskId, $packageId, $quantity, $start);
}


Expand Down

0 comments on commit 31e0c69

Please sign in to comment.