From 6bc7b3561cd77b9e731b22cff462278dac3ec639 Mon Sep 17 00:00:00 2001 From: MatthiasDeWinter Date: Thu, 5 Mar 2015 12:11:10 +0000 Subject: [PATCH] Add docblocks --- src/BackupHandlers/Files/FilesBackupHandler.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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())