Loading src/Destination/FlysystemDestination.php +4 −5 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ class FlysystemDestination extends DirectoryDestination { * * @throws \Drupal\backup_migrate\Core\Exception\BackupMigrateException */ function saveFile(BackupFileReadableInterface $file) { function saveTheFile(BackupFileReadableInterface $file) { // Check if the directory exists. $this->checkDirectory(); Loading @@ -82,7 +82,7 @@ class FlysystemDestination extends DirectoryDestination { /** * {@inheritdoc} */ public function deleteFile($id) { public function deleteTheFile($id): bool { if ($file = $this->getFile($id)) { if ($this->flysystem->has($this->idToPath($id))) { return $this->flysystem->delete($this->idToPath($id)); Loading @@ -91,7 +91,6 @@ class FlysystemDestination extends DirectoryDestination { return FALSE; } /** * Get the entire file list from this destination. * Loading Loading @@ -295,10 +294,10 @@ class FlysystemDestination extends DirectoryDestination { } else { if ($sort == 'name') { return $a->getFullName() > $b->getFullName(); return $b->getFullName() <=> $a->getFullName(); } // @TODO: fix this in core return $a->getMeta($sort) > $b->getMeta($sort); return $b->getMeta($sort) <=> $a->getMeta($sort); } }); } Loading Loading
src/Destination/FlysystemDestination.php +4 −5 Original line number Diff line number Diff line Loading @@ -61,7 +61,7 @@ class FlysystemDestination extends DirectoryDestination { * * @throws \Drupal\backup_migrate\Core\Exception\BackupMigrateException */ function saveFile(BackupFileReadableInterface $file) { function saveTheFile(BackupFileReadableInterface $file) { // Check if the directory exists. $this->checkDirectory(); Loading @@ -82,7 +82,7 @@ class FlysystemDestination extends DirectoryDestination { /** * {@inheritdoc} */ public function deleteFile($id) { public function deleteTheFile($id): bool { if ($file = $this->getFile($id)) { if ($this->flysystem->has($this->idToPath($id))) { return $this->flysystem->delete($this->idToPath($id)); Loading @@ -91,7 +91,6 @@ class FlysystemDestination extends DirectoryDestination { return FALSE; } /** * Get the entire file list from this destination. * Loading Loading @@ -295,10 +294,10 @@ class FlysystemDestination extends DirectoryDestination { } else { if ($sort == 'name') { return $a->getFullName() > $b->getFullName(); return $b->getFullName() <=> $a->getFullName(); } // @TODO: fix this in core return $a->getMeta($sort) > $b->getMeta($sort); return $b->getMeta($sort) <=> $a->getMeta($sort); } }); } Loading