Code Duplication    Length = 7-7 lines in 2 locations

catalog/includes/classes/shipping.php 2 locations

@@ 115-121 (lines=7) @@
112
          if (strpos($value, '\\') !== false) {
113
            $obj = Registry::get('Shipping_' . str_replace('\\', '_', $value));
114
115
            if (tep_not_null($module)) {
116
              if ( ($module == $value) && ($obj->enabled) ) {
117
                $include_quotes[] = $value;
118
              }
119
            } elseif ($obj->enabled) {
120
              $include_quotes[] = $value;
121
            }
122
          } else {
123
            $class = substr($value, 0, strrpos($value, '.'));
124
@@ 125-131 (lines=7) @@
122
          } else {
123
            $class = substr($value, 0, strrpos($value, '.'));
124
125
            if (tep_not_null($module)) {
126
              if ( ($module == $class) && ($GLOBALS[$class]->enabled) ) {
127
                $include_quotes[] = $class;
128
              }
129
            } elseif ($GLOBALS[$class]->enabled) {
130
              $include_quotes[] = $class;
131
            }
132
          }
133
        }
134