Loading modules/cloud_service_providers/vmware/src/Controller/ApiController.php +2 −4 Changes for modules/cloud_service_providers/vmware/src/Controller/ApiController.php: 2 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -326,8 +326,6 @@ class ApiController extends ControllerBase implements ApiControllerInterface { return new JsonResponse(['count' => $count]); } /** * {@inheritdoc} */ Loading Loading @@ -414,7 +412,7 @@ class ApiController extends ControllerBase implements ApiControllerInterface { /** * Convert the unit. * * @param int $value value * @param int $value * The Value. * * @return string Loading @@ -422,7 +420,7 @@ class ApiController extends ControllerBase implements ApiControllerInterface { */ private function convert(int $value): string { if ($value < 1024) { return '' + $value; return '' . $value; } if ($value < 1024 * 1024) { return round($value / 1024, 2) . 'Ki'; Loading Loading
modules/cloud_service_providers/vmware/src/Controller/ApiController.php +2 −4 Changes for modules/cloud_service_providers/vmware/src/Controller/ApiController.php: 2 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -326,8 +326,6 @@ class ApiController extends ControllerBase implements ApiControllerInterface { return new JsonResponse(['count' => $count]); } /** * {@inheritdoc} */ Loading Loading @@ -414,7 +412,7 @@ class ApiController extends ControllerBase implements ApiControllerInterface { /** * Convert the unit. * * @param int $value value * @param int $value * The Value. * * @return string Loading @@ -422,7 +420,7 @@ class ApiController extends ControllerBase implements ApiControllerInterface { */ private function convert(int $value): string { if ($value < 1024) { return '' + $value; return '' . $value; } if ($value < 1024 * 1024) { return round($value / 1024, 2) . 'Ki'; Loading