Code format

This commit is contained in:
Edward Yang 2023-04-07 16:53:18 +08:00
parent e1e3ee9568
commit 5c4ae14dbc
12 changed files with 45 additions and 43 deletions

View File

@ -19,6 +19,7 @@ class Weight
'oz' => 0.035,
'lb' => 0.0022046,
];
public const DEFAULT_CLASS = 'g';
public function __construct()
@ -38,6 +39,7 @@ class Weight
if (empty($weight)) {
return 0;
}
return $weight * self::WEIGHT_CLASS[$to] / self::WEIGHT_CLASS[$from];
}
}

View File

@ -11,9 +11,9 @@
namespace Beike\Shop\Http\Controllers;
use Beike\Repositories\OrderRepo;
use Beike\Shop\Services\CheckoutService;
use Illuminate\Http\Request;
use Beike\Repositories\OrderRepo;
class CheckoutController extends Controller
{