Code Duplication    Length = 13-13 lines in 2 locations

source/Spiral/Database/Entities/Schemas/AbstractTable.php 2 locations

@@ 589-601 (lines=13) @@
586
     *
587
     * @return $this
588
     */
589
    protected function dropIndexes()
590
    {
591
        foreach ($this->comparator->droppedIndexes() as $index) {
592
            $this->logger()->debug("Dropping index [{statement}] from table {table}.", [
593
                'statement' => $index->sqlStatement(),
594
                'table'     => $this->getName(true)
595
            ]);
596
597
            $this->commander->dropIndex($this, $index);
598
        }
599
600
        return $this;
601
    }
602
603
    /**
604
     * Synchronise indexes.
@@ 643-655 (lines=13) @@
640
     *
641
     * @return $this
642
     */
643
    protected function dropForeigns()
644
    {
645
        foreach ($this->comparator->droppedForeigns() as $foreign) {
646
            $this->logger()->debug("Dropping foreign key [{statement}] from table {table}.", [
647
                'statement' => $foreign->sqlStatement(),
648
                'table'     => $this->getName(true)
649
            ]);
650
651
            $this->commander->dropForeign($this, $foreign);
652
        }
653
654
        return $this;
655
    }
656
657
    /**
658
     * Synchronise foreign keys.