Code Duplication    Length = 11-11 lines in 2 locations

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

@@ 68-78 (lines=11) @@
65
    /**
66
     * @return AbstractColumn[]
67
     */
68
    public function addedColumns()
69
    {
70
        $difference = [];
71
        foreach ($this->current->getColumns() as $name => $column) {
72
            if (!$this->initial->knowsColumn($name)) {
73
                $difference[] = $column;
74
            }
75
        }
76
77
        return $difference;
78
    }
79
80
    /**
81
     * @return AbstractColumn[]
@@ 83-93 (lines=11) @@
80
    /**
81
     * @return AbstractColumn[]
82
     */
83
    public function droppedColumns()
84
    {
85
        $difference = [];
86
        foreach ($this->initial->getColumns() as $name => $column) {
87
            if (!$this->current->knowsColumn($name)) {
88
                $difference[] = $column;
89
            }
90
        }
91
92
        return $difference;
93
    }
94
95
    /**
96
     * Returns array where each value contain current and initial element state.