Fixed coding standards
This commit is contained in:
parent
d133875e5d
commit
c55b49194b
|
@ -561,7 +561,6 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
|
|||
* Return an array of sections and the data associated with each.
|
||||
*
|
||||
* @deprecated 3.9.0
|
||||
* @param array $fields List of fields to be included on the response.
|
||||
* @return array
|
||||
*/
|
||||
public function get_item_mappings() {
|
||||
|
@ -665,7 +664,7 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
|
|||
// WP memory limit.
|
||||
$wp_memory_limit = wc_let_to_num( WP_MEMORY_LIMIT );
|
||||
if ( function_exists( 'memory_get_usage' ) ) {
|
||||
$wp_memory_limit = max( $wp_memory_limit, wc_let_to_num( @ini_get( 'memory_limit' ) ) );
|
||||
$wp_memory_limit = max( $wp_memory_limit, wc_let_to_num( @ini_get( 'memory_limit' ) ) ); // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
|
||||
}
|
||||
|
||||
// Test POST requests.
|
||||
|
@ -720,7 +719,7 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
|
|||
'site_url' => get_option( 'siteurl' ),
|
||||
'version' => WC()->version,
|
||||
'log_directory' => WC_LOG_DIR,
|
||||
'log_directory_writable' => (bool) @fopen( WC_LOG_DIR . 'test-log.log', 'a' ),
|
||||
'log_directory_writable' => (bool) @fopen( WC_LOG_DIR . 'test-log.log', 'a' ), // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged, WordPress.WP.AlternativeFunctions.file_system_read_fopen
|
||||
'wp_version' => get_bloginfo( 'version' ),
|
||||
'wp_multisite' => is_multisite(),
|
||||
'wp_memory_limit' => $wp_memory_limit,
|
||||
|
@ -840,7 +839,7 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
|
|||
if ( is_multisite() && 0 !== strpos( $table->name, $site_tables_prefix ) && ! in_array( $table->name, $global_tables, true ) ) {
|
||||
continue;
|
||||
}
|
||||
$table_type = in_array( $table->name, $core_tables ) ? 'woocommerce' : 'other';
|
||||
$table_type = in_array( $table->name, $core_tables, true ) ? 'woocommerce' : 'other';
|
||||
|
||||
$tables[ $table_type ][ $table->name ] = array(
|
||||
'data' => $table->data,
|
||||
|
@ -1129,7 +1128,7 @@ class WC_REST_System_Status_V2_Controller extends WC_REST_Controller {
|
|||
'thousand_separator' => wc_get_price_thousand_separator(),
|
||||
'decimal_separator' => wc_get_price_decimal_separator(),
|
||||
'number_of_decimals' => wc_get_price_decimals(),
|
||||
'geolocation_enabled' => in_array( get_option( 'woocommerce_default_customer_address' ), array( 'geolocation_ajax', 'geolocation' ) ),
|
||||
'geolocation_enabled' => in_array( get_option( 'woocommerce_default_customer_address' ), array( 'geolocation_ajax', 'geolocation' ), true ),
|
||||
'taxonomies' => $term_response,
|
||||
'product_visibility_terms' => $product_visibility_terms,
|
||||
'woocommerce_com_connected' => $woo_com_connected,
|
||||
|
|
Loading…
Reference in New Issue