Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
puntope committed Feb 12, 2024
1 parent 0bdde07 commit 72f00f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Google/NotificationsService.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct() {
* https://public-api.wordpress.com/wpcom/v2/sites/{site}/partners/google/notifications
*
* @param string $topic The topic to use in the notification.
* @param int|null $item_id Tme item ID to notify. It can be null for topics that doesn't need Item ID
* @param int|null $item_id The item ID to notify. It can be null for topics that doesn't need Item ID
* @return bool True is the notification is successful. False otherwise.
*/
public function notify( string $topic, $item_id = null ): bool {
Expand Down
6 changes: 3 additions & 3 deletions src/Shipping/SyncerHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class SyncerHooks implements Service, Registerable {
/**
* @var NotificationsService $notifications_service
*/
protected $notifiations_service;
protected $notifications_service;

/**
* @var ShippingNotificationJob $shipping_notification_job
Expand All @@ -70,7 +70,7 @@ public function __construct( MerchantCenterService $merchant_center, GoogleSetti
$this->merchant_center = $merchant_center;
$this->update_shipping_job = $job_repository->get( UpdateShippingSettings::class );
$this->shipping_notification_job = $job_repository->get( ShippingNotificationJob::class );
$this->notifiations_service = $notifications_service;
$this->notifications_service = $notifications_service;
}

/**
Expand Down Expand Up @@ -144,7 +144,7 @@ protected function handle_update_shipping_settings() {
return;
}

if ( $this->notifiations_service->is_enabled() ) {
if ( $this->notifications_service->is_enabled() ) {
$this->shipping_notification_job->schedule();
} else {
$this->update_shipping_job->schedule();
Expand Down

0 comments on commit 72f00f8

Please sign in to comment.