doc type and style

This commit is contained in:
AmooAti 2021-11-08 16:22:58 +03:30
parent 154808b181
commit 84431fa4bc
4 changed files with 24 additions and 3 deletions

View File

@ -446,7 +446,7 @@ class Cart
return false;
}
if (!array_key_exists($shippingMethodCode, Shipping::getShippingMethods())) {
if (! array_key_exists($shippingMethodCode, Shipping::getShippingMethods())) {
return false;
}

View File

@ -4,7 +4,18 @@ namespace Webkul\Shipping\Carriers;
abstract class AbstractShipping
{
/**
* Shipping method carrier code
*
* @var string
*/
protected $code;
/**
* Shipping method code
*
* @var string
*/
protected $method;
abstract public function calculate();

View File

@ -14,12 +14,17 @@ use Webkul\Checkout\Facades\Cart;
class FlatRate extends AbstractShipping
{
/**
* Shipping method code
* Shipping method carrier code
*
* @var string
*/
protected $code = 'flatrate';
/**
* Shipping method code
*
* @var string
*/
protected $method = 'flatrate_flatrate';
/**

View File

@ -13,12 +13,17 @@ use Webkul\Shipping\Facades\Shipping;
class Free extends AbstractShipping
{
/**
* Shipping method code
* Shipping method carrier code
*
* @var string
*/
protected $code = 'free';
/**
* Shipping method code
*
* @var string
*/
protected $method = 'free_free';
/**