coding style

This commit is contained in:
Ludovic CANDELLIER
2023-09-13 22:53:37 +02:00
parent da48f41ec0
commit 5f215cef81
52 changed files with 122 additions and 129 deletions

View File

@@ -52,6 +52,7 @@ class Cities
// dump($res);
$latitude = $res[0];
$longitude = $res[1];
// dump($latitude);
// dump($longitude);
return ['latitude' => $latitude, 'longitude' => $longitude];

View File

@@ -20,6 +20,7 @@ class Geolocation
// dump($res);
$longitude = $res[0];
$latitude = $res[1];
// dump($latitude);
// dump($longitude);
// exit;

View File

@@ -55,6 +55,7 @@ class Item extends LavaryMenuItem
if (strstr($this->title, 'circle-o')) {
$this->title = str_replace('fa-circle-o', 'fa-dot-circle-o', $this->title);
}
// dump($this);
return $this;
}

View File

@@ -66,6 +66,7 @@ class Stat
->select($db::raw("count(id) as y, $var as name"))
->groupBy($var)
->get();
// var_Debug::message($data);
return $data;
}
@@ -82,6 +83,7 @@ class Stat
$y = (int) $nb[$key];
$data[] = ['y' => $y, 'name' => $value];
}
// var_Debug::message($data);
return $data;
}

View File

@@ -62,6 +62,7 @@ class ArticleNatures
$productType = 'botanic';
break;
}
return $productType;
}

View File

@@ -8,7 +8,7 @@ use App\Traits\Model\Basic;
class DeliveryPackages
{
use Basic;
public static function getModel()
{
return DeliveryPackage::query();

View File

@@ -8,7 +8,7 @@ use App\Traits\Model\Basic;
class DeliveryTypeCalculations
{
use Basic;
public static function getModel()
{
return DeliveryTypeCalculation::query();

View File

@@ -13,7 +13,7 @@ class Invoices
public static function getInvoiceHtml($id)
{
$invoice = self::get($id, ['order.customer', 'order.address', 'order.detail']);
$invoice = self::get($id, ['order.customer', 'order.delivery_address', 'order.detail']);
$order = $invoice->order;
$customer = $order->customer;
unset($invoice->order, $order->customer);
@@ -78,4 +78,9 @@ class Invoices
{
return ['En attente', 'Paiement partiel', 'Soldée', 'Paiement rejeté'];
}
public static function getModel()
{
return Invoice::query();
}
}

View File

@@ -5,11 +5,7 @@ namespace App\Repositories\Shop;
use App\Mail\Acheminement;
use App\Mail\ConfirmationCommande;
use App\Mail\Preparation;
use App\Models\Shop\Order;
use App\Repositories\Core\DateStats;
use Carbon\Carbon;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Str;
class OrderMails
{