diff --git a/Api/Data/DiscountDataInterface.php b/Api/Data/DiscountDataInterface.php index be44dba2..922a651c 100644 --- a/Api/Data/DiscountDataInterface.php +++ b/Api/Data/DiscountDataInterface.php @@ -15,26 +15,26 @@ interface DiscountDataInterface * * @return float */ - public function getAmount(); + public function getAmount(): float; /** * Get Base Amount * * @return float */ - public function getBaseAmount(); + public function getBaseAmount(): float; /** * Get Original Amount * * @return float */ - public function getOriginalAmount(); + public function getOriginalAmount(): float; /** * Get Base Original Amount * * @return float */ - public function getBaseOriginalAmount(); + public function getBaseOriginalAmount(): float; } diff --git a/Api/Data/Order/Payment/RequestInterface.php b/Api/Data/Order/Payment/RequestInterface.php index f49f4d35..d2c96389 100644 --- a/Api/Data/Order/Payment/RequestInterface.php +++ b/Api/Data/Order/Payment/RequestInterface.php @@ -13,7 +13,7 @@ interface RequestInterface /** * Add payment object to the request. * - * @param \Magento\Sales\Api\Data\OrderPaymentInterface$payment + * @param \Magento\Sales\Api\Data\OrderPaymentInterface $payment * @return void */ public function setPayment(OrderPaymentInterface $payment): void; diff --git a/Api/Data/RuleDiscountInterface.php b/Api/Data/RuleDiscountInterface.php index 4c47c776..2f93c4a4 100644 --- a/Api/Data/RuleDiscountInterface.php +++ b/Api/Data/RuleDiscountInterface.php @@ -15,19 +15,19 @@ interface RuleDiscountInterface * * @return \Bold\Checkout\Api\Data\DiscountDataInterface */ - public function getDiscountData(); + public function getDiscountData(): DiscountDataInterface; /** * Get Rule Label * * @return string */ - public function getRuleLabel(); + public function getRuleLabel(): string; /** * Get Rule ID * * @return int */ - public function getRuleID(); + public function getRuleID(): int; } diff --git a/Api/Http/ClientInterface.php b/Api/Http/ClientInterface.php index de2a2e31..7a4d0c90 100644 --- a/Api/Http/ClientInterface.php +++ b/Api/Http/ClientInterface.php @@ -15,7 +15,7 @@ interface ClientInterface * * @param int $websiteId * @param string $url - * @return Bold\Checkout\Api\Data\Http\Client\ResultInterface + * @return \Bold\Checkout\Api\Data\Http\Client\ResultInterface * @throws \Exception */ public function get(int $websiteId, string $url): ResultInterface; @@ -26,7 +26,7 @@ public function get(int $websiteId, string $url): ResultInterface; * @param int $websiteId * @param string $url * @param array|null $data - * @return Bold\Checkout\Api\Data\Http\Client\ResultInterface + * @return \Bold\Checkout\Api\Data\Http\Client\ResultInterface * @throws \Exception */ public function post(int $websiteId, string $url, array $data): ResultInterface; @@ -37,7 +37,7 @@ public function post(int $websiteId, string $url, array $data): ResultInterface; * @param int $websiteId * @param string $url * @param array|null $data - * @return Bold\Checkout\Api\Data\Http\Client\ResultInterface + * @return \Bold\Checkout\Api\Data\Http\Client\ResultInterface * @throws \Exception */ public function put(int $websiteId, string $url, array $data): ResultInterface; @@ -48,7 +48,7 @@ public function put(int $websiteId, string $url, array $data): ResultInterface; * @param int $websiteId * @param string $url * @param array|null $data - * @return Bold\Checkout\Api\Data\Http\Client\ResultInterface + * @return \Bold\Checkout\Api\Data\Http\Client\ResultInterface * @throws \Exception */ public function patch(int $websiteId, string $url, array $data): ResultInterface; @@ -59,7 +59,7 @@ public function patch(int $websiteId, string $url, array $data): ResultInterface * @param int $websiteId * @param string $url * @param array $data - * @return Bold\Checkout\Api\Data\Http\Client\ResultInterface + * @return \Bold\Checkout\Api\Data\Http\Client\ResultInterface * @throws \Exception */ public function delete(int $websiteId, string $url, array $data): ResultInterface; diff --git a/Api/Order/HydrateOrderFromQuoteInterface.php b/Api/Order/HydrateOrderFromQuoteInterface.php index a5dc5405..096c2240 100644 --- a/Api/Order/HydrateOrderFromQuoteInterface.php +++ b/Api/Order/HydrateOrderFromQuoteInterface.php @@ -15,7 +15,7 @@ interface HydrateOrderFromQuoteInterface * * @param CartInterface $quote * @param string $publicOrderId - * @return ResultInterface + * @return \Bold\Checkout\Api\Data\Http\Client\ResultInterface */ public function hydrate(CartInterface $quote, string $publicOrderId): ResultInterface; } diff --git a/Api/PlaceOrderInterface.php b/Api/PlaceOrderInterface.php index 55440dd5..da46088b 100644 --- a/Api/PlaceOrderInterface.php +++ b/Api/PlaceOrderInterface.php @@ -24,9 +24,9 @@ interface PlaceOrderInterface public function place(string $shopId, OrderDataInterface $order): ResultInterface; /** - * @param string $shopId + * @param string $publicOrderId * @param string $quoteMaskId - * @return ResultInterface + * @return \Bold\Checkout\Api\Data\PlaceOrder\ResultInterface */ public function authorizeAndPlace(string $publicOrderId, string $quoteMaskId): ResultInterface; } diff --git a/Block/System/Config/Form/Field/Location.php b/Block/System/Config/Form/Field/Location.php index 89c6a49f..db030065 100644 --- a/Block/System/Config/Form/Field/Location.php +++ b/Block/System/Config/Form/Field/Location.php @@ -3,33 +3,13 @@ namespace Bold\Checkout\Block\System\Config\Form\Field; -use Bold\Checkout\Model\ModuleInfo\InstalledModulesProvider; use Magento\Framework\View\Element\Html\Select; -use Magento\Backend\Block\Template\Context; /** * HTML select element block with location options. */ class Location extends Select { - /** - * @var InstalledModulesProvider - */ - protected $installedModulesProvider; - - /** - * @param Context $context - * @param InstalledModulesProvider $installedModuleProvider - */ - public function __construct( - Context $context, - InstalledModulesProvider $installedModulesProvider - ) - { - parent::__construct($context); - $this->installedModulesProvider = $installedModulesProvider; - } - /** * Set "name" for - - -
- - - -
- - - -
-
- - - -
-
- -
-
-
- -
-
-
- -