diff options
author | Björn Schießle <schiessle@owncloud.com> | 2013-06-28 17:06:02 +0200 |
---|---|---|
committer | Björn Schießle <schiessle@owncloud.com> | 2013-07-12 11:25:23 +0200 |
commit | fbf34f3bf697bf3c9e15742489d7d6fe4a338251 (patch) | |
tree | 2fc690abda92a08d378744e72f7a8ec92f80f159 /apps/files_versions | |
parent | 2f0d88cae4cdb9e4478db3d417ff0045fa72400a (diff) | |
download | nextcloud-server-fbf34f3bf697bf3c9e15742489d7d6fe4a338251.tar.gz nextcloud-server-fbf34f3bf697bf3c9e15742489d7d6fe4a338251.zip |
fix some var names according to our style guide
Diffstat (limited to 'apps/files_versions')
-rw-r--r-- | apps/files_versions/lib/versions.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/files_versions/lib/versions.php b/apps/files_versions/lib/versions.php index b526c9a18db..a66e8279f6c 100644 --- a/apps/files_versions/lib/versions.php +++ b/apps/files_versions/lib/versions.php @@ -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; } |