Skip to content

Commit bc85999

Browse files
author
Alex Schulte
committed
small cleanup and updates
1 parent 87e01a2 commit bc85999

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Classes/Service/BackupService.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@
22
namespace Breadlesscode\Backups\Service;
33

44
use Breadlesscode\Backups\Compressor\BackupCompressorInterface;
5-
use Breadlesscode\Backups\BackupStep\StepInterface;
65
use Breadlesscode\Backups\Factory\FilesystemFactory;
7-
use Breadlesscode\Backups\Generators\BackupNameBackupNameGenerator;
86
use Breadlesscode\Backups\Generators\BackupNameGeneratorInterface;
7+
use Breadlesscode\Backups\Step\StepInterface;
98
use League\Flysystem\FileNotFoundException;
109
use League\Flysystem\Filesystem;
1110
use Neos\Flow\Annotations as Flow;
@@ -48,7 +47,7 @@ class BackupService
4847
protected $persistenceManager;
4948

5049
/**
51-
* @var LoggerInterface#
50+
* @var LoggerInterface
5251
*/
5352
protected $logger;
5453

@@ -126,12 +125,9 @@ public function restoreBackup(string $name)
126125
/**
127126
* @throws Exception
128127
* @throws \League\Flysystem\FileExistsException
129-
* @throws \Neos\Flow\Configuration\Exception\InvalidConfigurationTypeException
130-
* @throws \Neos\Flow\ObjectManagement\Exception\CannotBuildObjectException
131-
* @throws \Neos\Flow\ObjectManagement\Exception\UnknownObjectException
132128
* @throws \Neos\Utility\Exception\FilesException
133129
*/
134-
public function createBackup()
130+
public function createBackup(): bool
135131
{
136132
$backupName = $this->generateBackupName();
137133
$backupPath = $this->getTemporaryBackupPath($backupName);
@@ -145,6 +141,7 @@ public function createBackup()
145141
/** @var StepInterface $step */
146142
$step->backup();
147143
}
144+
148145
// create archive
149146
$compressor = $this->getCompressor();
150147
$archivePath = $compressor->compress($backupPath, $this->config['tempPath']);

0 commit comments

Comments
 (0)