Code Duplication    Length = 7-7 lines in 2 locations

languages/Language.php 2 locations

@@ 1288-1294 (lines=7) @@
1285
					$usedYear = true;
1286
					$num = substr( $ts, 0, 4 );
1287
					break;
1288
				case 'xiY':
1289
					$usedIranianYear = true;
1290
					if ( !$iranian ) {
1291
						$iranian = self::tsToIranian( $ts );
1292
					}
1293
					$num = $iranian[0];
1294
					break;
1295
				case 'xmY':
1296
					$usedHijriYear = true;
1297
					if ( !$hijri ) {
@@ 1334-1340 (lines=7) @@
1331
					$usedYear = true;
1332
					$num = substr( $ts, 2, 2 );
1333
					break;
1334
				case 'xiy':
1335
					$usedIranianYear = true;
1336
					if ( !$iranian ) {
1337
						$iranian = self::tsToIranian( $ts );
1338
					}
1339
					$num = substr( $iranian[0], -2 );
1340
					break;
1341
				case 'a':
1342
					$usedAMPM = true;
1343
					$s .= intval( substr( $ts, 8, 2 ) ) < 12 ? 'am' : 'pm';