use (! ... codestyle
This commit is contained in:
parent
12dd5a4909
commit
835e5ce56a
|
|
@ -3,6 +3,7 @@
|
|||
namespace Webkul\Sales\Repositories;
|
||||
|
||||
use Illuminate\Container\Container as App;
|
||||
use Illuminate\Support\Facades\Event;
|
||||
use Webkul\Core\Eloquent\Repository;
|
||||
use Webkul\Sales\Contracts\OrderItem;
|
||||
|
||||
|
|
@ -51,7 +52,7 @@ class OrderItemRepository extends Repository
|
|||
|
||||
$totalInvoiced = $baseTotalInvoiced = 0;
|
||||
$taxInvoiced = $baseTaxInvoiced = 0;
|
||||
|
||||
|
||||
$totalRefunded = $baseTotalRefunded = 0;
|
||||
$taxRefunded = $baseTaxRefunded = 0;
|
||||
|
||||
|
|
|
|||
|
|
@ -141,13 +141,13 @@ class OrderRepository extends Repository
|
|||
{
|
||||
$order = $this->findOrFail($orderId);
|
||||
|
||||
if (!$order->canCancel())
|
||||
if (! $order->canCancel())
|
||||
return false;
|
||||
|
||||
Event::fire('sales.order.cancel.before', $order);
|
||||
|
||||
foreach ($order->items as $item) {
|
||||
if (!$item->qty_to_cancel)
|
||||
if (! $item->qty_to_cancel)
|
||||
continue;
|
||||
|
||||
$orderItems = [];
|
||||
|
|
@ -231,7 +231,7 @@ class OrderRepository extends Repository
|
|||
$totalQtyOrdered += $item->qty_ordered;
|
||||
$totalQtyInvoiced += $item->qty_invoiced;
|
||||
|
||||
if (!$item->isStockable()) {
|
||||
if (! $item->isStockable()) {
|
||||
$totalQtyShipped += $item->qty_ordered;
|
||||
} else {
|
||||
$totalQtyShipped += $item->qty_shipped;
|
||||
|
|
|
|||
Loading…
Reference in New Issue