@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | $storeman->dump( |
28 | 28 | $input->getArgument('path'), |
29 | - $input->getOption( 'revision') ? (int)$input->getOption('revision') : null, |
|
29 | + $input->getOption('revision') ? (int)$input->getOption('revision') : null, |
|
30 | 30 | $input->getOption('vault'), |
31 | 31 | new SynchronizationProgressListener($output) |
32 | 32 | ); |
@@ -68,7 +68,7 @@ |
||
68 | 68 | } |
69 | 69 | } |
70 | 70 | } |
71 | - while($this->consoleStyle->choice('Add another vault?', ['y', 'n'], 'n') === 'y'); |
|
71 | + while ($this->consoleStyle->choice('Add another vault?', ['y', 'n'], 'n') === 'y'); |
|
72 | 72 | |
73 | 73 | |
74 | 74 | $skipDefaults = !$input->getOption('writeDefaults'); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | $this->consoleStyle->warning("Invalid choice"); |
47 | 47 | } |
48 | - while(true); |
|
48 | + while (true); |
|
49 | 49 | |
50 | 50 | return $return; |
51 | 51 | } |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | class Application extends \Symfony\Component\Console\Application |
6 | 6 | { |
7 | - public const LOGO = <<<TXT |
|
7 | + public const LOGO = <<<TXT |
|
8 | 8 | ____ _ |
9 | 9 | / ___|| |_ ___ _ __ ___ _ __ ___ __ _ _ __ |
10 | 10 | \___ \| __/ _ \| '__/ _ \ '_ ` _ \ / _` | '_ \ |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $contexts[$algorithm] = hash_init($algorithm); |
14 | 14 | } |
15 | 15 | |
16 | -while(!feof($fileHandle)) |
|
16 | +while (!feof($fileHandle)) |
|
17 | 17 | { |
18 | 18 | $buffer = fread($fileHandle, 65536); |
19 | 19 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | |
46 | 46 | $started = time(); |
47 | 47 | |
48 | - while(true) |
|
48 | + while (true) |
|
49 | 49 | { |
50 | 50 | $this->logger->debug("Checking lock existence for '{$name}'..."); |
51 | 51 |
@@ -172,8 +172,7 @@ |
||
172 | 172 | $this->logger->info(sprintf("Loading %s remote index...", $revision ? "r{$revision}" : 'latest')); |
173 | 173 | |
174 | 174 | $synchronization = $revision ? |
175 | - $this->getVaultLayout()->getSynchronization($revision) : |
|
176 | - $this->getVaultLayout()->getLastSynchronization(); |
|
175 | + $this->getVaultLayout()->getSynchronization($revision) : $this->getVaultLayout()->getLastSynchronization(); |
|
177 | 176 | |
178 | 177 | return $synchronization ? $synchronization->getIndex() : null; |
179 | 178 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | public function restore(int $toRevision = null, string $fromVault = null, SynchronizationProgressListenerInterface $progressListener = null): OperationResultList |
118 | 118 | { |
119 | - $this->getLogger()->notice(sprintf("Restoring from %s...", $toRevision ? "r{$toRevision}": 'latest revision')); |
|
119 | + $this->getLogger()->notice(sprintf("Restoring from %s...", $toRevision ? "r{$toRevision}" : 'latest revision')); |
|
120 | 120 | |
121 | 121 | $vault = $this->getVaultForDownload($toRevision, $fromVault); |
122 | 122 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | |
133 | 133 | public function dump(string $targetPath, int $revision = null, string $fromVault = null, SynchronizationProgressListenerInterface $progressListener = null): OperationResultList |
134 | 134 | { |
135 | - $this->getLogger()->notice(sprintf("Dumping from %s to {$targetPath}...", $revision ? "r{$revision}": 'latest revision')); |
|
135 | + $this->getLogger()->notice(sprintf("Dumping from %s to {$targetPath}...", $revision ? "r{$revision}" : 'latest revision')); |
|
136 | 136 | |
137 | 137 | $vault = $this->getVaultForDownload($revision, $fromVault); |
138 | 138 |