Code Duplication    Length = 5-8 lines in 2 locations

app/Functions/FunctionsPrintLists.php 2 locations

@@ 1536-1540 (lines=5) @@
1533
			} else {
1534
				// We're dealing with the Upcoming Events block
1535
				if ($filter === 0) {
1536
					if ($endjd === $startjd) {
1537
						$html .= I18N::translate('No events exist for tomorrow.');
1538
					} else {
1539
						$html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1));
1540
					}
1541
				} else {
1542
					if ($endjd === $startjd) {
1543
						$html .= I18N::translate('No events for living individuals exist for tomorrow.');
@@ 1541-1548 (lines=8) @@
1538
					} else {
1539
						$html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1));
1540
					}
1541
				} else {
1542
					if ($endjd === $startjd) {
1543
						$html .= I18N::translate('No events for living individuals exist for tomorrow.');
1544
					} else {
1545
						// I18N: translation for %s==1 is unused; it is translated separately as “tomorrow”
1546
						$html .= I18N::plural('No events for living people exist for the next %s day.', 'No events for living people exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1));
1547
					}
1548
				}
1549
			}
1550
		}
1551