Code Duplication    Length = 5-5 lines in 2 locations

languages/Language.php 2 locations

@@ 1351-1355 (lines=5) @@
1348
					$usedAMPM = true;
1349
					$s .= intval( substr( $ts, 8, 2 ) ) < 12 ? 'AM' : 'PM';
1350
					break;
1351
				case 'g':
1352
					$usedHour = true;
1353
					$h = substr( $ts, 8, 2 );
1354
					$num = $h % 12 ? $h % 12 : 12;
1355
					break;
1356
				case 'G':
1357
					$usedHour = true;
1358
					$num = intval( substr( $ts, 8, 2 ) );
@@ 1360-1364 (lines=5) @@
1357
					$usedHour = true;
1358
					$num = intval( substr( $ts, 8, 2 ) );
1359
					break;
1360
				case 'h':
1361
					$usedHour = true;
1362
					$h = substr( $ts, 8, 2 );
1363
					$num = sprintf( '%02d', $h % 12 ? $h % 12 : 12 );
1364
					break;
1365
				case 'H':
1366
					$usedHour = true;
1367
					$num = substr( $ts, 8, 2 );