Code Duplication    Length = 5-5 lines in 2 locations

catalog/admin/includes/classes/shopping_cart.php 2 locations

@@ 31-35 (lines=5) @@
28
29
        $this->contents[$products_id] = array('qty' => $qty);
30
31
        if (is_array($attributes)) {
32
          foreach( $attributes as $option => $value ) {
33
            $this->contents[$products_id]['attributes'][$option] = $value;
34
          }
35
        }
36
      }
37
      $this->cleanup();
38
    }
@@ 45-49 (lines=5) @@
42
43
      $this->contents[$products_id] = array('qty' => $quantity);
44
45
      if (is_array($attributes)) {
46
        foreach( $attributes as $option => $value ) {
47
          $this->contents[$products_id]['attributes'][$option] = $value;
48
        }
49
      }
50
    }
51
52
    function cleanup() {