Skip to content

Commit 2953ebe

Browse files
rootroot
authored andcommitted
Improve linting
1 parent be6b431 commit 2953ebe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

CraftyController/CraftyController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ private function decodeSizeToGB($size)
122122
'TB' => 1024, // Convert TB to GB
123123
'PB' => 1024 * 1024, // Convert PB to GB
124124
];
125-
125+
126126
if (preg_match('/^([\d\.]+)\s*([KMGTP]?B)$/i', strtoupper($size), $matches)) {
127127
$value = (float)$matches[1];
128128
$unit = $matches[2];
129-
129+
130130
return $value * ($units[$unit] ?? 1);
131131
}
132-
132+
133133
return false; // Invalid format
134134
}
135135
}

0 commit comments

Comments
 (0)