Skip to content

Commit

Permalink
Suppress Squiz.PHP.Heredoc.NotAllowed warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yatsukhnenko committed Jan 24, 2025
1 parent 4091142 commit 839ce9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions includes/class-plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<<HTML
<style>
#wpadminbar ul li.redis-cache-error {
Expand All @@ -839,6 +840,7 @@ protected function admin_bar_style() {
}
</style>
HTML;
// phpcs:enable
}

/**
Expand All @@ -851,6 +853,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 <<<HTML
<script>
(function (element) {
Expand Down Expand Up @@ -896,6 +899,7 @@ protected function admin_bar_script() {
);
</script>
HTML;
// phpcs:enable
}

/**
Expand Down

0 comments on commit 839ce9d

Please sign in to comment.