original_string: public function shoppingCart()
      {
          $shoppingCart = $this->orders()->with('details')
              ->where('type', 'cart')
              ->first();
  
          return is_null($shoppingCart) ? collect() : $shoppingCart->details;
      }
code: public function shoppingCart()
      {
          $shoppingCart = $this->orders()->with('details')
              ->where('type', 'cart')
              ->first();
  
          return is_null($shoppingCart) ? collect() : $shoppingCart->details;
      }
code_tokens: public function shoppingCart ( ) { $ shoppingCart = $ this -> orders ( ) -> with ( 'details' ) -> where ( 'type' , 'cart' ) -> first ( ) ; return is_null ( $ shoppingCart ) ? collect ( ) : $ shoppingCart -> details ; }
docstring: The user's shopping cart. | while refactoring
  
  @return mixed
docstring_tokens: The user s shopping cart . | while refactoring