Code Duplication    Length = 9-9 lines in 2 locations

modules/commons/commons_groups/commons_groups.module 1 location

@@ 461-469 (lines=9) @@
458
    }
459
  }
460
461
  if (isset($commons_entity_integrations[$file->name])) {
462
    foreach ($commons_entity_integrations[$file->name] as $entity_type => $integration) {
463
      foreach ($integration as $bundle => $options) {
464
        if (commons_groups_is_group_content($entity_type, $bundle)) {
465
          $info['features_exclude']['dependencies']['commons_groups'] = 'commons_groups';
466
        }
467
      }
468
    }
469
  }
470
}
471
472
/**

modules/commons/commons_media/commons_media.module 1 location

@@ 43-51 (lines=9) @@
40
    }
41
  }
42
43
  if (isset($commons_entity_integrations[$file->name])) {
44
    foreach ($commons_entity_integrations[$file->name] as $entity_type => $integration) {
45
      foreach ($integration as $bundle => $options) {
46
        if (commons_media_has_media_integration($entity_type, $bundle)) {
47
          $info['features_exclude']['dependencies']['commons_media'] = 'commons_media';
48
        }
49
      }
50
    }
51
  }
52
}
53
54
/**