Code Duplication    Length = 13-13 lines in 2 locations

app/Controller/FamilyBookController.php 1 location

@@ 289-301 (lines=13) @@
286
				//-- recursively print the mother’s family
287
				$this->printPersonPedigree($family->getWife(), $count + 1);
288
				echo '</td>';
289
			} else {
290
				echo '<td>';
291
				if ($count < $genoffset - 1) {
292
					echo '<table cellspacing="0" cellpadding="0" border="0" >';
293
					for ($i = 1; $i < (pow(2, ($genoffset - 1) - $count) / 2) + 1; $i++) {
294
						$this->printEmptyBox();
295
						echo '</tr>';
296
						$this->printEmptyBox();
297
						echo '</tr>';
298
					}
299
					echo '</table>';
300
				}
301
			}
302
			echo '</tr>',
303
			'</table>';
304
			break;

app/Controller/HourglassController.php 1 location

@@ 120-132 (lines=13) @@
117
				//-- recursively get the father’s family
118
				$this->printPersonPedigree($family->getHusband(), $count + 1);
119
				echo '</td>';
120
			} else {
121
				echo '<td> ';
122
				if ($count < $genoffset - 1) {
123
					echo '<table>';
124
					for ($i = $count; $i < (pow(2, ($genoffset - 1) - $count) / 2) + 2; $i++) {
125
						$this->printEmptyBox();
126
						echo '</tr>';
127
						$this->printEmptyBox();
128
						echo '</tr>';
129
					}
130
					echo '</table>';
131
				}
132
			}
133
			echo
134
			'</tr><tr>',
135
			"<td style='vertical-align:top'><img class='pvline' src='" . Theme::theme()->parameter('image-vline') . "' width='3' alt=''></td>",