Skip to content

Commit 394512e

Browse files
committed
mute warnings
1 parent 39e2355 commit 394512e

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
name: Code style
22

3-
on:
4-
pull_request: null
5-
push: null
3+
on: push
64

75
concurrency:
86
group: ${{ github.workflow }}-${{ github.ref }}

includes/class-metrics.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ public function collect() {
146146

147147
$info = $wp_object_cache->info();
148148

149+
// phpcs:disable WordPress.WP.AlternativeFunctions.rand_mt_rand
149150
$this->id = substr( md5( uniqid( strval( mt_rand() ), true ) ), 12 );
150151
$this->hits = $info->hits;
151152
$this->misses = $info->misses;

includes/class-plugin.php

Lines changed: 1 addition & 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 id="redis-cache-admin-bar-style">
832833
#wpadminbar ul li.redis-cache-error {

includes/object-cache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1877,6 +1877,7 @@ protected function lua_flush_closure( $salt, $escape = true ) {
18771877
$salt = $escape ? $this->glob_quote( $salt ) : $salt;
18781878

18791879
return function () use ( $salt ) {
1880+
// phpcs:disable Squiz.PHP.Heredoc.NotAllowed
18801881
$script = <<<LUA
18811882
local cur = 0
18821883
local i = 0

0 commit comments

Comments
 (0)