From d9015a8c94bfd71fe484618a06d276701d3bf9ff Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Mon, 5 Oct 2020 15:12:57 +0200 Subject: Format code to a single space around binary operators Signed-off-by: Christoph Wurst --- apps/files_versions/lib/Storage.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/files_versions/lib/Storage.php') diff --git a/apps/files_versions/lib/Storage.php b/apps/files_versions/lib/Storage.php index a83ec348827..3f4ccf7f0a2 100644 --- a/apps/files_versions/lib/Storage.php +++ b/apps/files_versions/lib/Storage.php @@ -58,8 +58,8 @@ use OCP\Lock\ILockingProvider; use OCP\User; class Storage { - public const DEFAULTENABLED=true; - public const DEFAULTMAXSIZE=50; // unit: percentage; 50% of available disk space/quota + public const DEFAULTENABLED = true; + public const DEFAULTMAXSIZE = 50; // unit: percentage; 50% of available disk space/quota public const VERSIONS_ROOT = 'files_versions/'; public const DELETE_TRIGGER_MASTER_REMOVED = 0; @@ -351,7 +351,7 @@ class Storage { $versionCreated = true; } - $fileToRestore = 'files_versions' . $filename . '.v' . $revision; + $fileToRestore = 'files_versions' . $filename . '.v' . $revision; // Restore encrypted version of the old file for the newly restored file // This has to happen manually here since the file is manually copied below @@ -502,7 +502,7 @@ class Storage { $toDelete = []; foreach (array_reverse($versions['all']) as $key => $version) { - if ((int)$version['version'] <$threshold) { + if ((int)$version['version'] < $threshold) { $toDelete[$key] = $version; } else { //Versions are sorted by time - nothing mo to iterate. @@ -799,7 +799,7 @@ class Storage { // Check if enough space is available after versions are rearranged. // If not we delete the oldest versions until we meet the size limit for versions, // but always keep the two latest versions - $numOfVersions = count($allVersions) -2 ; + $numOfVersions = count($allVersions) - 2 ; $i = 0; // sort oldest first and make sure that we start at the first element ksort($allVersions); -- cgit v1.2.3