Code Duplication    Length = 8-9 lines in 2 locations

src/Webtrees/Module/Sosa/Views/SosaListView.php 1 location

@@ 56-63 (lines=8) @@
53
			<p class="warning"><?php echo I18N::translate('No ancestor has been found for generation %d', $selectedgen); ?></p>
54
			<?php    }
55
			    }
56
			} else { ?>
57
			<p class="warning"><?php echo I18N::translate('The list could not be displayed. Reasons might be:'); ?><br/>
58
				<ul>
59
					<li><?php echo I18N::translate('No Sosa root individual has been defined.'); ?></li>
60
					<li><?php echo I18N::translate('The Sosa ancestors have not been computed yet.'); ?></li>
61
				</ul>
62
			</p>
63
			<?php } ?>
64
		</div> 
65
		<?php 
66
    }

src/Webtrees/Module/Sosa/Views/SosaListMissingView.php 1 location

@@ 202-210 (lines=9) @@
199
    			 <?php } else if ($this->data->get('generation', 0) > 0) { ?> 
200
    			<p><?= I18N::translate('No ancestors are missing for this generation. Generation complete at %s.', I18N::percentage($this->data->get('perc_sosa'), 2)) ?></p>
201
    			    <?php }   			    
202
    			} else { ?>
203
    			<p class="warning"><?= I18N::translate('The list could not be displayed. Reasons might be:') ?><br/>
204
    				<ul>
205
    					<li><?= I18N::translate('No Sosa root individual has been defined.') ?></li>
206
    					<li><?= I18N::translate('The Sosa ancestors have not been computed yet.') ?></li>
207
    					<li><?= I18N::translate('No generation were found.') ?></li>
208
    				</ul>
209
    			</p>
210
    			<?php } ?>
211
    		</div> 
212
    		<?php 
213
        }