Skip to content

Commit

Permalink
Merge pull request #12 from MatthiasDeWinter/master
Browse files Browse the repository at this point in the history
Add docblocks
  • Loading branch information
freekmurze committed Mar 5, 2015
2 parents 21c6888 + 6bc7b35 commit 5b37bc0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/BackupHandlers/Files/FilesBackupHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand All @@ -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())
Expand Down

0 comments on commit 5b37bc0

Please sign in to comment.