Passed
Push — master ( 256926...23461a )
by Jan
06:28
created
src/Services/Parts/PartsTableActionHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Twig/FormatExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,8 +117,8 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.