Code Duplication    Length = 11-11 lines in 2 locations

Excluded/Database/Schemas/Comparator.php 2 locations

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