From 1fd828b2d9fdca0e65cce30da995b7112fa7b852 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Tue, 6 Feb 2024 10:50:37 +0100 Subject: [PATCH] Fix CS --- lib/php/Converter.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/php/Converter.php b/lib/php/Converter.php index 0b291dd..eb7df60 100644 --- a/lib/php/Converter.php +++ b/lib/php/Converter.php @@ -1367,14 +1367,21 @@ public function convertMemory($capacity) switch (strtolower($matches[3])) { case 'pb': $real_value *= 1024; + //no break, continue to next case 'tb': $real_value *= 1024; + //no break, continue to next case 'gb': $real_value *= 1024; + //no break, continue to next case 'mb': $real_value *= 1024; + //no break, continue to next case 'kb': $real_value *= 1024; + break; + default: + return null; } //then return as Mb.