Fix Psalm errors

This commit is contained in:
Narek Zakarian 2022-08-17 15:03:57 +04:00
parent 9b81ac54f2
commit 2231b7836c
3 changed files with 6 additions and 14 deletions

View file

@ -63,14 +63,6 @@ class OrderTrackingModule implements ModuleInterface {
$settings->persist();
}
/**
* The settings listener.
*
* @var SettingsListener $listener
*/
$listener = $c->get( 'wcgateway.settings.listener' );
$listener->listen_for_tracking_enabled();
$tracking_enabled = $settings->has( 'tracking_enabled' ) && $settings->get( 'tracking_enabled' );
if ( ! $tracking_enabled ) {