Code Duplication    Length = 6-8 lines in 2 locations

themes/commons/commons_origins/template.php 2 locations

@@ 1319-1324 (lines=6) @@
1316
    // Show what group the content belongs to if applicable.
1317
    if (!empty($node->{OG_AUDIENCE_FIELD}) && $wrapper->{OG_AUDIENCE_FIELD}->count() == 1) {
1318
      $placeholders['!group'] = l($wrapper->{OG_AUDIENCE_FIELD}->get(0)->label(), 'node/' . $wrapper->{OG_AUDIENCE_FIELD}->get(0)->getIdentifier());
1319
      if ($use_timeago_date_format == TRUE) {
1320
        $variables['submitted'] = t('!type created !date in the !group group by !user', $placeholders);
1321
      }
1322
      else {
1323
        $variables['submitted'] = t('!type created @interval ago in the !group group by !user', $placeholders);
1324
      }
1325
    }
1326
    else {
1327
      if ($use_timeago_date_format == TRUE) {
@@ 1326-1333 (lines=8) @@
1323
        $variables['submitted'] = t('!type created @interval ago in the !group group by !user', $placeholders);
1324
      }
1325
    }
1326
    else {
1327
      if ($use_timeago_date_format == TRUE) {
1328
        $variables['submitted'] = t('!type created !date by !user', $placeholders);
1329
      }
1330
      else {
1331
        $variables['submitted'] = t('!type created @interval ago by !user', $placeholders);
1332
      }
1333
    }
1334
  }
1335
1336
  // Append a feature label to featured node teasers.