Refactor code for improved readability and consistency
- Removed unnecessary blank lines in various files to enhance code clarity. - Updated comments for consistency and clarity across multiple classes and methods. - Adjusted spacing in test files for better formatting and readability.
This commit is contained in:
@@ -13,15 +13,12 @@ class CreateOrderService
|
||||
{
|
||||
/**
|
||||
* Create a new order for the user
|
||||
*
|
||||
* @param User $user
|
||||
* @param array $data
|
||||
* @return Order
|
||||
*/
|
||||
public function execute(User $user, array $data): Order
|
||||
{
|
||||
return DB::transaction(function () use ($user, $data) {
|
||||
// 1. Create the order
|
||||
info(['service' => $data]);
|
||||
$order = Order::create($data);
|
||||
|
||||
// 2. Process Cart Items
|
||||
|
||||
Reference in New Issue
Block a user