Code Duplication    Length = 9-10 lines in 2 locations

src/Updater.php 2 locations

@@ 404-412 (lines=9) @@
401
        return rename($backup, $this->getLocalPharFile());
402
    }
403
404
    protected function getBackupPharFile()
405
    {
406
        if (null !== $this->getBackupPath()) {
407
            return $this->getBackupPath();
408
        }
409
        return $this->getTempDirectory()
410
            . '/'
411
            . sprintf('%s%s', $this->getLocalPharFileBasename(), $this->getBackupExtension());
412
    }
413
414
    protected function getRestorePharFile()
415
    {
@@ 414-423 (lines=10) @@
411
            . sprintf('%s%s', $this->getLocalPharFileBasename(), $this->getBackupExtension());
412
    }
413
414
    protected function getRestorePharFile()
415
    {
416
        if (null !== $this->getRestorePath()) {
417
            return $this->getRestorePath();
418
        }
419
        return $this->getTempDirectory()
420
            . '/'
421
            . sprintf('%s%s', $this->getLocalPharFileBasename(), $this->getBackupExtension()
422
        );
423
    }
424
425
    protected function getTempPubKeyFile()
426
    {