From 43ef6b7a4131e45b58417427511895514dc8698b Mon Sep 17 00:00:00 2001 From: Vijeta Raikar <110518282+vijetaR@users.noreply.github.com> Date: Thu, 25 Jul 2024 16:03:23 +0530 Subject: [PATCH 1/3] pcp check --- classes/class-uabb-iconfonts.php | 2 +- fields/uabb-gradient/uabb-gradient.php | 2 +- modules/flip-box/flip-box.php | 2 +- modules/image-icon/image-icon.php | 2 +- modules/image-separator/image-separator.php | 2 +- modules/info-list/info-list.php | 6 +++--- modules/info-table/includes/frontend.php | 2 +- modules/ribbon/includes/frontend.php | 4 ++-- modules/ribbon/ribbon.php | 2 +- modules/slide-box/includes/frontend.php | 4 ++-- modules/uabb-heading/includes/frontend.css.php | 2 +- modules/uabb-star-rating/uabb-star-rating.php | 2 +- 12 files changed, 16 insertions(+), 16 deletions(-) diff --git a/classes/class-uabb-iconfonts.php b/classes/class-uabb-iconfonts.php index 8f19362..84bbfef 100644 --- a/classes/class-uabb-iconfonts.php +++ b/classes/class-uabb-iconfonts.php @@ -96,7 +96,7 @@ function recurse_copy( $src, $dst ) { // Create directory if not exist. if ( ! is_dir( $dst ) ) { - @mkdir( $dst ); + @mkdir( $dst ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_system_operations_mkdir } while ( false !== ( $file = readdir( $dir ) ) ) { diff --git a/fields/uabb-gradient/uabb-gradient.php b/fields/uabb-gradient/uabb-gradient.php index 0be4cd3..0093250 100644 --- a/fields/uabb-gradient/uabb-gradient.php +++ b/fields/uabb-gradient/uabb-gradient.php @@ -63,7 +63,7 @@ function uabb_gradient( $name, $value, $field, $settings ) { $name_new = 'uabb_' . $name; $value = (array) $value; - $preview = json_encode( array( 'type' => 'refresh' ) ); + $preview = json_encode( array( 'type' => 'refresh' ) ); // phpcs:ignore WordPress.WP.AlternativeFunctions.json_encode_json_encode $default = ( isset( $field['default'] ) && '' !== $field['default'] ) ? $field['default'] : ''; $direction = array( diff --git a/modules/flip-box/flip-box.php b/modules/flip-box/flip-box.php index fb7a5d9..31ad44e 100644 --- a/modules/flip-box/flip-box.php +++ b/modules/flip-box/flip-box.php @@ -47,7 +47,7 @@ public function get_icon( $icon = '' ) { } if ( file_exists( $path ) ) { - return file_get_contents( $path ); + return file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents } else { return ''; } diff --git a/modules/image-icon/image-icon.php b/modules/image-icon/image-icon.php index f6fb4f5..a5ee3d3 100644 --- a/modules/image-icon/image-icon.php +++ b/modules/image-icon/image-icon.php @@ -85,7 +85,7 @@ public function delete() { $cropped_path = $this->_get_cropped_path(); if ( file_exists( $cropped_path['path'] ) ) { - unlink( $cropped_path['path'] ); + unlink( $cropped_path['path'] ); //phpcs:ignore WordPress.WP.AlternativeFunctions.unlink_unlink } } diff --git a/modules/image-separator/image-separator.php b/modules/image-separator/image-separator.php index 6738706..48f7a84 100644 --- a/modules/image-separator/image-separator.php +++ b/modules/image-separator/image-separator.php @@ -88,7 +88,7 @@ public function delete() { $cropped_path = $this->_get_cropped_path(); if ( file_exists( $cropped_path['path'] ) ) { - unlink( $cropped_path['path'] ); + unlink( $cropped_path['path'] ); //phpcs:ignore WordPress.WP.AlternativeFunctions.unlink_unlink } } diff --git a/modules/info-list/info-list.php b/modules/info-list/info-list.php index c719cd3..6f526c6 100644 --- a/modules/info-list/info-list.php +++ b/modules/info-list/info-list.php @@ -52,7 +52,7 @@ public function get_icon( $icon = '' ) { } if ( file_exists( $path ) ) { - return file_get_contents( $path ); + return file_get_contents( $path ); //phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents } else { return ''; } @@ -163,14 +163,14 @@ public function render_each_item( $item, $list_item_counter ) { echo ''; } - echo '