diff --git a/includes/class-plugin.php b/includes/class-plugin.php index 5578202f..9fd537e4 100644 --- a/includes/class-plugin.php +++ b/includes/class-plugin.php @@ -827,6 +827,7 @@ public function render_admin_bar( $wp_admin_bar ) { * @return string */ protected function admin_bar_style() { + // phpcs:disable Squiz.PHP.Heredoc.NotAllowed return << #wpadminbar ul li.redis-cache-error { @@ -838,7 +839,7 @@ protected function admin_bar_style() { color: #fff; } -HTML; +HTML; // phpcs:enable } /** @@ -851,6 +852,7 @@ protected function admin_bar_script() { $ajaxurl = esc_url( admin_url( 'admin-ajax.php' ) ); $flushMessage = __( 'Flushing cache...', 'redis-cache' ); + // phpcs:disable Squiz.PHP.Heredoc.NotAllowed return << (function (element) { @@ -895,7 +897,7 @@ protected function admin_bar_script() { document.querySelector('#wp-admin-bar-redis-cache-flush > a') ); -HTML; +HTML; // phpcs:enable } /** diff --git a/includes/object-cache.php b/includes/object-cache.php index b201f040..86367e6b 100644 --- a/includes/object-cache.php +++ b/includes/object-cache.php @@ -1877,6 +1877,7 @@ protected function lua_flush_closure( $salt, $escape = true ) { $salt = $escape ? $this->glob_quote( $salt ) : $salt; return function () use ( $salt ) { + // phpcs:disable Squiz.PHP.Heredoc.NotAllowed $script = <<redis_version) && version_compare( $this->redis_version, '5', '<' ) && version_compare( $this->redis_version, '3.2', '>=' ) ) { $script = 'redis.replicate_commands()' . "\n" . $script; @@ -1923,6 +1924,7 @@ function ( $group ) { $this->unflushable_groups ); + // phpcs:disable Squiz.PHP.Heredoc.NotAllowed $script = <<redis_version) && version_compare( $this->redis_version, '5', '<' ) && version_compare( $this->redis_version, '3.2', '>=' ) ) { $script = 'redis.replicate_commands()' . "\n" . $script; }