Code Duplication    Length = 5-5 lines in 2 locations

languages/Language.php 2 locations

@@ 1365-1369 (lines=5) @@
1362
					$usedAMPM = true;
1363
					$s .= intval( substr( $ts, 8, 2 ) ) < 12 ? 'AM' : 'PM';
1364
					break;
1365
				case 'g':
1366
					$usedHour = true;
1367
					$h = substr( $ts, 8, 2 );
1368
					$num = $h % 12 ? $h % 12 : 12;
1369
					break;
1370
				case 'G':
1371
					$usedHour = true;
1372
					$num = intval( substr( $ts, 8, 2 ) );
@@ 1374-1378 (lines=5) @@
1371
					$usedHour = true;
1372
					$num = intval( substr( $ts, 8, 2 ) );
1373
					break;
1374
				case 'h':
1375
					$usedHour = true;
1376
					$h = substr( $ts, 8, 2 );
1377
					$num = sprintf( '%02d', $h % 12 ? $h % 12 : 12 );
1378
					break;
1379
				case 'H':
1380
					$usedHour = true;
1381
					$num = substr( $ts, 8, 2 );