Skip to content
Snippets Groups Projects

Issue #3272661: Add the function to create VMware VM in the SPA

@@ -326,8 +326,6 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
return new JsonResponse(['count' => $count]);
}
/**
* {@inheritdoc}
*/
@@ -413,16 +411,16 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
/**
* Convert the unit.
*
* @param int $value value
*
* @param int $value
* The Value.
*
*
* @return string
* Converted value string.
*/
private function convert(int $value): string {
if ($value < 1024) {
return '' + $value;
return '' . $value;
}
if ($value < 1024 * 1024) {
return round($value / 1024, 2) . 'Ki';
Loading