Code Duplication    Length = 8-8 lines in 2 locations

src/Fwlib/Db/SyncDbData.php 2 locations

@@ 461-468 (lines=8) @@
458
     */
459
    protected function syncDeleteTable($tableSource, $tableDest)
460
    {
461
        if (is_array($tableDest)) {
462
            $i = 0;
463
            foreach ($tableDest as $v) {
464
                $i += $this->syncDeleteTable($tableSource, $v);
465
            }
466
467
            return $i;
468
        }
469
470
471
        // If fewer rows in dest, need not do sync
@@ 601-608 (lines=8) @@
598
     */
599
    protected function syncOneWayTable($tableSource, $tableDest)
600
    {
601
        if (is_array($tableDest)) {
602
            $i = 0;
603
            foreach ($tableDest as $v) {
604
                $i += $this->syncOneWayTable($tableSource, $v);
605
            }
606
607
            return $i;
608
        }
609
610
611
        $timestamp = $this->getLastTimestamp($this->dbDest, $tableSource);