Clean up spaces, tabs, indentation, and bracket formatting

This commit is contained in:
Brian Miyaji
2021-11-10 15:41:40 +09:00
parent e58beb1201
commit 3dff686a00
285 changed files with 29638 additions and 24147 deletions

View File

@@ -6,10 +6,10 @@ if ( ! defined( 'ABSPATH' ) ) {
/**
* SportsPress Admin.
*
* @class SP_Admin_AJAX
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin
* @class SP_Admin_AJAX
* @author ThemeBoy
* @category Admin
* @package SportsPress/Admin
* @version 1.7
*/
class SP_Admin_AJAX {
@@ -59,10 +59,10 @@ class SP_Admin_AJAX {
function save_inline_results() {
check_ajax_referer( 'sp-save-inline-results', 'nonce' );
$id = sp_array_value( $_POST, 'post_id' );
$id = sp_array_value( $_POST, 'post_id' );
$results = sp_array_value( $_POST, 'results' );
if ( sp_update_main_results ( $id, $results ) ) {
if ( sp_update_main_results( $id, $results ) ) {
wp_send_json_success();
} else {
wp_send_json_error();