Skip to content

Commit e1122fb

Browse files
committed
resolvedd phpcs
1 parent 5c36499 commit e1122fb

File tree

4 files changed

+87
-87
lines changed

4 files changed

+87
-87
lines changed

admin/index.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -982,17 +982,17 @@ function rich_snippet_dashboard() {
982982
}
983983
// Update options.
984984
if ( isset( $_POST['setting_analytics_submit'] ) ) {
985-
if ( ! isset( $_POST['snippet_analytics_nonce_field'] ) || ! wp_verify_nonce( $_POST['snippet_analytics_nonce_field'], 'snippet_analytics_form_action' ) || ! current_user_can( 'manage_options' )
986-
) {
987-
print 'Sorry, your nonce did not verify.';
988-
exit;
989-
} else {
990-
if ( isset( $_POST['aiosrs_analytics_optin'] ) ) {
991-
update_option( 'aiosrs_analytics_optin', 'yes' );
992-
} else {
993-
update_option( 'aiosrs_analytics_optin', 'no' );
994-
}
995-
}
985+
if ( ! isset( $_POST['snippet_analytics_nonce_field'] ) || ! wp_verify_nonce( $_POST['snippet_analytics_nonce_field'], 'snippet_analytics_form_action' ) || ! current_user_can( 'manage_options' )
986+
) {
987+
print 'Sorry, your nonce did not verify.';
988+
exit;
989+
} else {
990+
if ( isset( $_POST['aiosrs_analytics_optin'] ) ) {
991+
update_option( 'aiosrs_analytics_optin', 'yes' );
992+
} else {
993+
update_option( 'aiosrs_analytics_optin', 'no' );
994+
}
995+
}
996996
}
997997
if ( isset( $_POST['setting_submit'] ) ) {
998998
if ( ! isset( $_POST['snippet_woocommerce_nonce_field'] ) || ! wp_verify_nonce( $_POST['snippet_woocommerce_nonce_field'], 'snippet_woocommerce_form_action' ) || ! current_user_can( 'manage_options' )

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
"require": {
4848
"wp-cli/wp-cli-bundle": "^2.11",
49-
"php": "^8.4.3",
49+
"php": "^7.4.33",
5050
"composer/composer": "^2.7",
5151
"brainstormforce/nps-survey": "^1",
5252
"composer/installers": "*",

composer.lock

Lines changed: 66 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)