Fixed coding standards

This commit is contained in:
Claudio Sanches 2018-10-16 21:15:03 -03:00
parent a9b36a4e23
commit 2bcd4598f8
1 changed files with 1 additions and 1 deletions

View File

@ -1330,7 +1330,7 @@ class WC_REST_Products_Controller extends WC_REST_Products_V2_Controller {
$data = parent::get_product_data( $product, $context );
// Replace in_stock with stock_status.
$pos = array_search( 'in_stock', array_keys( $data ) );
$pos = array_search( 'in_stock', array_keys( $data ), true );
$array_section_1 = array_slice( $data, 0, $pos, true );
$array_section_2 = array_slice( $data, $pos + 1, null, true );