Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
NirajChaudhary143 committed Sep 2, 2024
1 parent 81abb12 commit 41f64a7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/evf-core-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ function evf_html_attributes( $id = '', $class = array(), $datas = array(), $att
$id = trim( $id );
$parts = array();

$is_edit_entry = isset( $_GET['edit-entry'] ) && ! empty( sanitize_text_field( wp_unslash( $_GET['edit-entry'] ) ) ) ? true : false;
$is_edit_entry = isset( $_GET['edit-entry'] ) && ! sanitize_text_field( wp_unslash( empty( $_GET['edit-entry'] ) ) ) ? true : false;

Check failure on line 977 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Expected 1 space after "!"; 2 found

if ( ! empty( $id ) ) {
$id = sanitize_html_class( $id );
Expand All @@ -987,8 +987,8 @@ function evf_html_attributes( $id = '', $class = array(), $datas = array(), $att
$class = evf_sanitize_classes( $class, true );
if ( ! empty( $class ) ) {
// While editing hidden field should be visible.
if( $is_edit_entry ){
$class = str_replace( "evf-field-hidden", "", $class );
if( $is_edit_entry ) {

Check failure on line 990 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Space after opening control structure is required

Check failure on line 990 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

No space before opening parenthesis is prohibited

Check failure on line 990 in includes/evf-core-functions.php

View workflow job for this annotation

GitHub Actions / Code sniff (PHP 7.4 , WP Latest)

Expected 1 space(s) after IF keyword; 0 found
$class = str_replace( 'evf-field-hidden', '', $class );
}
$parts[] = 'class="' . $class . '"';
}
Expand Down

0 comments on commit 41f64a7

Please sign in to comment.