Fix coding standard violations

This commit is contained in:
Alessandro Morelli 2019-01-21 16:54:49 +01:00
parent a4c5a34e99
commit be0f4b45e3
1 changed files with 29 additions and 25 deletions

View File

@ -30,6 +30,7 @@ final class WC_Cart_Session {
*
* @since 3.2.0
* @throws Exception If missing WC_Cart object.
*
* @param WC_Cart $cart Cart object to calculate totals for.
*/
public function __construct( &$cart ) {
@ -126,7 +127,8 @@ final class WC_Cart_Session {
} else {
// Put session data into array. Run through filter so other plugins can load their own session data.
$session_data = array_merge(
$values, array(
$values,
array(
'data' => $product,
)
);
@ -281,8 +283,10 @@ final class WC_Cart_Session {
* Get a cart from an order, if user has permission.
*
* @since 3.5.0
*
* @param int $order_id Order ID to try to load.
* @param array $cart Current cart array.
*
* @return array
*/
private function populate_cart_from_order( $order_id, $cart ) {