|
@@ -101,7 +101,7 @@ discard block |
|
|
block discarded – undo |
|
101
|
101
|
private function repair() { |
|
102
|
102
|
$entries = $this->getInvalidEntries(); |
|
103
|
103
|
foreach ($entries as $entry) { |
|
104
|
|
- $calculatedPath = $entry['parent_path'] . '/' . $entry['name']; |
|
|
104
|
+ $calculatedPath = $entry['parent_path'].'/'.$entry['name']; |
|
105
|
105
|
if ($newId = $this->getId($entry['storage'], $calculatedPath)) { |
|
106
|
106
|
// a new entry with the correct path has already been created, reuse that one and delete the incorrect entry |
|
107
|
107
|
$this->reparent($entry['fileid'], $newId); |
|
@@ -116,6 +116,6 @@ discard block |
|
|
block discarded – undo |
|
116
|
116
|
public function run(IOutput $output) { |
|
117
|
117
|
$count = $this->repair(); |
|
118
|
118
|
|
|
119
|
|
- $output->info('Repaired ' . $count . ' paths'); |
|
|
119
|
+ $output->info('Repaired '.$count.' paths'); |
|
120
|
120
|
} |
|
121
|
121
|
} |
Please login to merge, or discard this patch.