@@ -86,7 +86,7 @@ |
||
86 | 86 | if ($action === 'generate_label') { |
87 | 87 | $targets = implode(',', array_map(static fn (Part $part) => $part->getID(), $selected_parts)); |
88 | 88 | } else { //For lots we have to extract the part lots |
89 | - $targets = implode(',', array_map(static function (Part $part) { |
|
89 | + $targets = implode(',', array_map(static function(Part $part) { |
|
90 | 90 | //We concat the lot IDs of every part with a comma (which are later concated with a comma too per part) |
91 | 91 | return implode(',', array_map(static fn (PartLot $lot) => $lot->getID(), $part->getPartLots()->toArray())); |
92 | 92 | }, $selected_parts)); |
@@ -117,8 +117,8 @@ |
||
117 | 117 | */ |
118 | 118 | public function formatBytes(int $bytes, int $precision = 2): string |
119 | 119 | { |
120 | - $size = ['B','kB','MB','GB','TB','PB','EB','ZB','YB']; |
|
120 | + $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
|
121 | 121 | $factor = floor((strlen((string) $bytes) - 1) / 3); |
122 | - return sprintf("%.{$precision}f", $bytes / pow(1024, $factor)) . ' ' . @$size[$factor]; |
|
122 | + return sprintf("%.{$precision}f", $bytes / pow(1024, $factor)).' '.@$size[$factor]; |
|
123 | 123 | } |
124 | 124 | } |