Code Duplication    Length = 3-3 lines in 4 locations

add_dog.php 2 locations

@@ 367-369 (lines=3) @@
364
        }
365
    }
366
367
    for ($i = 1; $i < $numofcolumns; ++$i) {
368
        $empty[] = array('value' => '');
369
    }
370
    $dogs [] = array(
371
        'id'          => '0',
372
        'name'        => '',
@@ 555-557 (lines=3) @@
552
        }
553
    }
554
555
    for ($i = 1; $i < $numofcolumns; ++$i) {
556
        $empty[] = array('value' => '');
557
    }
558
    $dogs [] = array(
559
        'id'          => '0',
560
        'name'        => '',

add_litter.php 2 locations

@@ 310-312 (lines=3) @@
307
            }
308
        }
309
310
        for ($i = 1; $i < $numofcolumns; ++$i) {
311
            $empty[] = array('value' => '');
312
        }
313
        $dogs [] = array(
314
            'id'          => '0',
315
            'name'        => '',
@@ 496-498 (lines=3) @@
493
            }
494
        }
495
496
        for ($i = 1; $i < $numofcolumns; ++$i) {
497
            $empty[] = array('value' => '');
498
        }
499
        $dogs [] = array(
500
            'id'          => '0',
501
            'name'        => '',