diff --git a/src/BackupHandlers/Files/FilesBackupHandler.php b/src/BackupHandlers/Files/FilesBackupHandler.php index 929b8b06..4a03ba40 100644 --- a/src/BackupHandlers/Files/FilesBackupHandler.php +++ b/src/BackupHandlers/Files/FilesBackupHandler.php @@ -56,6 +56,12 @@ public function getFilesToBeBackedUp() }); } + /** + * Make a unique array of all filepaths from a given array of files. + * + * @param $fileArray + * @return array + */ public function getAllPathFromFileArray($fileArray) { $files = []; @@ -75,6 +81,12 @@ public function getAllPathFromFileArray($fileArray) }, $files)); } + /** + * Recursively get all the files within a given directory. + * + * @param $directory + * @return array + */ protected function getAllFilesFromDirectory($directory) { $finder = (new Finder())