Skip to content

Commit 839ce9d

Browse files
committed
Suppress Squiz.PHP.Heredoc.NotAllowed warning
1 parent 4091142 commit 839ce9d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/class-plugin.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -827,6 +827,7 @@ public function render_admin_bar( $wp_admin_bar ) {
827827
* @return string
828828
*/
829829
protected function admin_bar_style() {
830+
// phpcs:disable Squiz.PHP.Heredoc.NotAllowed
830831
return <<<HTML
831832
<style>
832833
#wpadminbar ul li.redis-cache-error {
@@ -839,6 +840,7 @@ protected function admin_bar_style() {
839840
}
840841
</style>
841842
HTML;
843+
// phpcs:enable
842844
}
843845

844846
/**
@@ -851,6 +853,7 @@ protected function admin_bar_script() {
851853
$ajaxurl = esc_url( admin_url( 'admin-ajax.php' ) );
852854
$flushMessage = __( 'Flushing cache...', 'redis-cache' );
853855

856+
// phpcs:disable Squiz.PHP.Heredoc.NotAllowed
854857
return <<<HTML
855858
<script>
856859
(function (element) {
@@ -896,6 +899,7 @@ protected function admin_bar_script() {
896899
);
897900
</script>
898901
HTML;
902+
// phpcs:enable
899903
}
900904

901905
/**

0 commit comments

Comments
 (0)