Code Duplication    Length = 7-7 lines in 2 locations

app/Controller/FamilyBookController.php 2 locations

@@ 233-239 (lines=7) @@
230
							$linefactor = $tblheight;
231
						}
232
					}
233
					if ($genoffset == 4) {
234
						if ($famcount == 4) {
235
							$linefactor = $tblheight;
236
						} elseif ($famcount > 4) {
237
							$linefactor = ($famcount - $genoffset) * ($tblheight * 1.5);
238
						}
239
					}
240
					if ($genoffset == 5) {
241
						if ($famcount == 5) {
242
							$linefactor = 0;
@@ 240-246 (lines=7) @@
237
							$linefactor = ($famcount - $genoffset) * ($tblheight * 1.5);
238
						}
239
					}
240
					if ($genoffset == 5) {
241
						if ($famcount == 5) {
242
							$linefactor = 0;
243
						} elseif ($famcount > 5) {
244
							$linefactor = $tblheight * ($famcount - $genoffset);
245
						}
246
					}
247
				}
248
				$lh = (($famcount - 1) * ($this->getBoxDimensions()->height) - ($linefactor));
249
				if ($genoffset > 5) {