Fix another batch of typos

This commit is contained in:
Daniel Dudzic 2025-03-24 14:27:35 +01:00
parent 9fb76a966a
commit 61a265a1a4
No known key found for this signature in database
GPG key ID: 31B40D33E3465483
8 changed files with 11 additions and 11 deletions

View file

@ -106,7 +106,7 @@ class PartnersEndpoint {
* Returns the current seller status. * Returns the current seller status.
* *
* @return SellerStatus * @return SellerStatus
* @throws RuntimeException When request could not be fullfilled. * @throws RuntimeException When request could not be fulfilled.
*/ */
public function seller_status() : SellerStatus { public function seller_status() : SellerStatus {
$url = trailingslashit( $this->host ) . 'v1/customer/partners/' . $this->partner_id . '/merchant-integrations/' . $this->merchant_id; $url = trailingslashit( $this->host ) . 'v1/customer/partners/' . $this->partner_id . '/merchant-integrations/' . $this->merchant_id;

View file

@ -14,7 +14,7 @@ namespace WooCommerce\PayPalCommerce\ApiClient\Entity;
*/ */
class PhoneWithType { class PhoneWithType {
const VALLID_TYPES = array( const VALID_TYPES = array(
'FAX', 'FAX',
'HOME', 'HOME',
'MOBILE', 'MOBILE',
@ -43,7 +43,7 @@ class PhoneWithType {
* @param Phone $phone The phone. * @param Phone $phone The phone.
*/ */
public function __construct( string $type, Phone $phone ) { public function __construct( string $type, Phone $phone ) {
$this->type = in_array( $type, self::VALLID_TYPES, true ) ? $type : 'OTHER'; $this->type = in_array( $type, self::VALID_TYPES, true ) ? $type : 'OTHER';
$this->phone = $phone; $this->phone = $phone;
} }

View file

@ -23,7 +23,7 @@ class PatchCollectionFactory {
/** /**
* Creates a Patch Collection by comparing two orders. * Creates a Patch Collection by comparing two orders.
* *
* @param Order $from The inital order. * @param Order $from The initial order.
* @param Order $to The target order. * @param Order $to The target order.
* *
* @return PatchCollection * @return PatchCollection

View file

@ -21,7 +21,7 @@ class ShippingPreferenceFactory {
/** /**
* Returns shipping_preference for the given state. * Returns shipping_preference for the given state.
* *
* @param PurchaseUnit $purchase_unit Thw PurchaseUnit. * @param PurchaseUnit $purchase_unit The PurchaseUnit.
* @param string $context The operation context like 'checkout', 'cart'. * @param string $context The operation context like 'checkout', 'cart'.
* @param WC_Cart|null $cart The current cart if relevant. * @param WC_Cart|null $cart The current cart if relevant.
* @param string $funding_source The funding source (PayPal button) like 'paypal', 'venmo', 'card'. * @param string $funding_source The funding source (PayPal button) like 'paypal', 'venmo', 'card'.

View file

@ -289,17 +289,17 @@ const bootstrap = () => {
} }
if ( context === 'checkout' ) { if ( context === 'checkout' ) {
const checkoutBootstap = new CheckoutBootstrap( const checkoutBootstrap = new CheckoutBootstrap(
PayPalCommerceGateway, PayPalCommerceGateway,
renderer, renderer,
spinner, spinner,
errorHandler errorHandler
); );
checkoutBootstap.init(); checkoutBootstrap.init();
buttonModuleWatcher.registerContextBootstrap( buttonModuleWatcher.registerContextBootstrap(
'checkout', 'checkout',
checkoutBootstap checkoutBootstrap
); );
} }

View file

@ -15,7 +15,7 @@ class PreviewButtonManager {
/** /**
* Resolves the promise. * Resolves the promise.
* Used by `this.boostrap()` to process enqueued initialization logic. * Used by `this.bootstrap()` to process enqueued initialization logic.
*/ */
#onInitResolver; #onInitResolver;

View file

@ -188,7 +188,7 @@ class DisabledFundingSources {
/** /**
* Filters the final list of disabled funding sources. * Filters the final list of disabled funding sources.
* *
* @param array $diabled_funding The filter value, funding sources to be disabled. * @param array $disable_funding The filter value, funding sources to be disabled.
* @param array $flags Decision flags to provide more context to filters. * @param array $flags Decision flags to provide more context to filters.
*/ */
$disable_funding = apply_filters( $disable_funding = apply_filters(

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* Handles the Early Order logic, when we need to create the WC_Order by ourselfs. * Handles the Early Order logic, when we need to create the WC_Order by ourselves.
* *
* @package WooCommerce\PayPalCommerce\Button\Helper * @package WooCommerce\PayPalCommerce\Button\Helper
*/ */