Skip to content

Commit 5b37bc0

Browse files
committed
Merge pull request #12 from MatthiasDeWinter/master
Add docblocks
2 parents 21c6888 + 6bc7b35 commit 5b37bc0

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/BackupHandlers/Files/FilesBackupHandler.php

+12
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public function getFilesToBeBackedUp()
5656
});
5757
}
5858

59+
/**
60+
* Make a unique array of all filepaths from a given array of files.
61+
*
62+
* @param $fileArray
63+
* @return array
64+
*/
5965
public function getAllPathFromFileArray($fileArray)
6066
{
6167
$files = [];
@@ -75,6 +81,12 @@ public function getAllPathFromFileArray($fileArray)
7581
}, $files));
7682
}
7783

84+
/**
85+
* Recursively get all the files within a given directory.
86+
*
87+
* @param $directory
88+
* @return array
89+
*/
7890
protected function getAllFilesFromDirectory($directory)
7991
{
8092
$finder = (new Finder())

0 commit comments

Comments
 (0)