Code Duplication    Length = 8-10 lines in 2 locations

src/Base/Query.php 1 location

@@ 220-227 (lines=8) @@
217
    /**
218
     * Clone Query.
219
     */
220
    public function __clone()
221
    {
222
        $this->selectOrUnionAll = clone $this->selectOrUnionAll;
223
        $this->orders = array_map(static function (Order $order) {
224
            return clone $order;
225
        }, $this->orders);
226
        $this->direction = clone $this->direction;
227
    }
228
}
229

src/Base/Query/Select.php 1 location

@@ 91-100 (lines=10) @@
88
    /**
89
     * Clone Select.
90
     */
91
    public function __clone()
92
    {
93
        $this->where = array_map(static function (ConditionGroup $group) {
94
            return clone $group;
95
        }, $this->where);
96
        $this->orders = array_map(static function (Order $order) {
97
            return clone $order;
98
        }, $this->orders);
99
        $this->limit = clone $this->limit;
100
    }
101
102
    /**
103
     * Retrieve an external iterator.