Code Duplication    Length = 5-5 lines in 2 locations

languages/Language.php 2 locations

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