doc type and style
This commit is contained in:
parent
154808b181
commit
84431fa4bc
|
|
@ -446,7 +446,7 @@ class Cart
|
|||
return false;
|
||||
}
|
||||
|
||||
if (!array_key_exists($shippingMethodCode, Shipping::getShippingMethods())) {
|
||||
if (! array_key_exists($shippingMethodCode, Shipping::getShippingMethods())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue