diff --git a/inc/utils.php b/inc/utils.php index fae2c40c..75427b86 100644 --- a/inc/utils.php +++ b/inc/utils.php @@ -190,15 +190,15 @@ function mollieWooCommerceFormatCurrencyValue($value, $currency) return number_format($value, 2, '.', ''); } -function mollieUpdateCompleted( $upgrader_object, $options ) { +function mollieUpdateCompleted($upgrader_object, $options) +{ //whenever something gets updated they update the languages, we need to delete them mollieDeleteWPTranslationFiles(); } - function mollieDeleteWPTranslationFiles() { - if ( ! function_exists( 'WP_Filesystem' ) ) { + if (!function_exists('WP_Filesystem')) { require_once ABSPATH . '/wp-admin/includes/file.php'; } WP_Filesystem(); diff --git a/src/Shared/SharedDataDictionary.php b/src/Shared/SharedDataDictionary.php index ff7ec60b..7ea56432 100644 --- a/src/Shared/SharedDataDictionary.php +++ b/src/Shared/SharedDataDictionary.php @@ -88,7 +88,7 @@ class SharedDataDictionary '_transient_mollie-wc-giftcard_issuers_test', '_transient_timeout_mollie-wc-giftcard_issuers_live', '_transient_mollie-wc-giftcard_issuers_live', - 'mollie_plugin_update_translation' + 'mollie_plugin_update_translation', ]; public const DB_VERSION_PARAM_NAME = 'mollie-db-version'; public const PLUGIN_VERSION_PARAM_NAME = 'mollie-plugin-version';