Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 195-205 (lines=11) @@
192
    /**
193
     * @return AbstractReference[]
194
     */
195
    public function addedForeigns(): array
196
    {
197
        $difference = [];
198
        foreach ($this->current->getForeigns() as $name => $foreign) {
199
            if (!$this->initial->knowsForeign($name)) {
200
                $difference[] = $foreign;
201
            }
202
        }
203
204
        return $difference;
205
    }
206
207
    /**
208
     * @return AbstractReference[]
@@ 210-220 (lines=11) @@
207
    /**
208
     * @return AbstractReference[]
209
     */
210
    public function droppedForeigns(): array
211
    {
212
        $difference = [];
213
        foreach ($this->initial->getForeigns() as $name => $foreign) {
214
            if (!$this->current->knowsForeign($name)) {
215
                $difference[] = $foreign;
216
            }
217
        }
218
219
        return $difference;
220
    }
221
222
    /**
223
     * Returns array where each value contain current and initial element state.