fix some var names according to our style guide

This commit is contained in:
Björn Schießle 2013-06-28 17:06:02 +02:00
parent 2f0d88cae4
commit fbf34f3bf6
1 changed files with 7 additions and 7 deletions

View File

@ -484,18 +484,18 @@ class Storage {
/**
* @brief delete old version from a given list of versions
*
* @param array $versions_by_file list of versions ordered by files
* @param array $all_versions all versions accross multiple files
* @param $versions_fileview OC\Files\View on data/user/files_versions
* @param array $versionsByFile list of versions ordered by files
* @param array $allVversions all versions accross multiple files
* @param $versionsFileview OC\Files\View on data/user/files_versions
* @return size of releted versions
*/
private static function delOldVersions($versions_by_file, &$all_versions, $versions_fileview) {
private static function delOldVersions($versionsByFile, &$allVersions, $versionsFileview) {
$time = time();
$size = 0;
// delete old versions for every given file
foreach ($versions_by_file as $versions) {
foreach ($versionsByFile as $versions) {
$versions = array_reverse($versions); // newest version first
$interval = 1;
@ -518,9 +518,9 @@ class Storage {
if ($nextInterval == -1 || $version['version'] >= $nextInterval) {
if ($version['version'] > $nextVersion) {
//distance between two version too small, delete version
$versions_fileview->unlink($version['path'] . '.v' . $version['version']);
$versionsFileview->unlink($version['path'] . '.v' . $version['version']);
$size += $version['size'];
unset($all_versions[$key]); // update array with all versions
unset($allVersions[$key]); // update array with all versions
} else {
$nextVersion = $version['version'] - $step;
}