Code Duplication    Length = 8-8 lines in 2 locations

code/CheckForMysqlPaginationIssuesBuildTask.php 2 locations

@@ 168-175 (lines=8) @@
165
                                            $tempRows = DB::query('SELECT "ID" FROM "'.$class.'" ORDER BY "'.$field.'" ASC LIMIT '.$i.', '.$this->step.';');
166
                                            foreach ($tempRows as $row) {
167
                                                $id = $row['ID'];
168
                                                if (isset($comparisonArray[$id])) {
169
                                                    if (! isset($errors[$class][$field][$id])) {
170
                                                        $errors[$class][$field][$id] = 1;
171
                                                    }
172
                                                    $errors[$class][$field][$id]++;
173
                                                } else {
174
                                                    $this->flushNowQuick('.');
175
                                                }
176
                                                $comparisonArray[$id] = $id;
177
                                            }
178
                                        } else {
@@ 188-195 (lines=8) @@
185
                                        $tempObjects = $class::get()->sort($field)->limit($this->step, $i);
186
                                        foreach ($tempObjects as $tempObject) {
187
                                            $id = $tempObject->ID;
188
                                            if (isset($comparisonArray[$id])) {
189
                                                if (! isset($errors[$class][$field][$id])) {
190
                                                    $errors[$class][$field][$id] = 1;
191
                                                }
192
                                                $errors[$class][$field][$id]++;
193
                                            } else {
194
                                                $this->flushNowQuick('.');
195
                                            }
196
                                            $comparisonArray[$tempObject->ID] = $tempObject->ID;
197
                                        }
198
                                    }