Code Duplication    Length = 7-7 lines in 2 locations

code/model/DatabasebackupLog.php 2 locations

@@ 310-316 (lines=7) @@
307
                        }
308
                    }
309
                    clearstatcache();
310
                    if (rename($lowerFileLocation, $higherFileLocation)) {
311
                        $obj = DatabasebackupLog::get()->filter(array("FullLocation" => $lowerFileLocation))->First();
312
                        if ($obj) {
313
                            $obj->FullLocation = $higherFileLocation;
314
                            $obj->write();
315
                        }
316
                    }
317
                }
318
            }
319
        }
@@ 338-344 (lines=7) @@
335
                }
336
            }
337
            clearstatcache();
338
            if (rename($fileLocation, $lowerFileLocation)) {
339
                $obj = DatabasebackupLog::get()->filter(array("FullLocation" => $fileLocation))->First();
340
                if ($obj) {
341
                    $obj->FullLocation = $lowerFileLocation;
342
                    $obj->write();
343
                }
344
            }
345
        }
346
        return $fileLocation;
347
    }