Code Duplication    Length = 11-11 lines in 2 locations

source/Spiral/Database/Schemas/StateComparator.php 2 locations

@@ 121-131 (lines=11) @@
118
    /**
119
     * @return IndexInterface[]
120
     */
121
    public function addedIndexes(): array
122
    {
123
        $difference = [];
124
        foreach ($this->current->getIndexes() as $name => $index) {
125
            if (!$this->initial->knowsIndex($name)) {
126
                $difference[] = $index;
127
            }
128
        }
129
130
        return $difference;
131
    }
132
133
    /**
134
     * @return IndexInterface[]
@@ 136-146 (lines=11) @@
133
    /**
134
     * @return IndexInterface[]
135
     */
136
    public function droppedIndexes(): array
137
    {
138
        $difference = [];
139
        foreach ($this->initial->getIndexes() as $name => $index) {
140
            if (!$this->current->knowsIndex($name)) {
141
                $difference[] = $index;
142
            }
143
        }
144
145
        return $difference;
146
    }
147
148
    /**
149
     * Returns array where each value contain current and initial element state.