diff options
author | provokateurin <kate@provokateurin.de> | 2025-05-14 15:51:42 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2025-05-15 00:16:54 +0200 |
commit | 82fb8f850828d24f551ad5ef3b8523486e5104df (patch) | |
tree | 4b7bf5bcd5e8f37b1a70a9dec1f80729b97ef6e6 /core/Command/Log | |
parent | c3ddd1da46c9f75071f61d3cf7381570297a74d6 (diff) | |
download | nextcloud-server-refactor/rector-core.tar.gz nextcloud-server-refactor/rector-core.zip |
refactor: Extend rector to core/refactor/rector-core
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'core/Command/Log')
-rw-r--r-- | core/Command/Log/File.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Command/Log/File.php b/core/Command/Log/File.php index 8b4a38db611..ba5dad956e9 100644 --- a/core/Command/Log/File.php +++ b/core/Command/Log/File.php @@ -8,6 +8,7 @@ namespace OC\Core\Command\Log; use OCP\IConfig; +use OCP\Util; use Stecman\Component\Symfony\Console\BashCompletion\Completion; use Stecman\Component\Symfony\Console\BashCompletion\Completion\ShellPathCompletion; @@ -61,7 +62,7 @@ class File extends Command implements Completion\CompletionAwareInterface { } if (($rotateSize = $input->getOption('rotate-size')) !== null) { - $rotateSize = \OCP\Util::computerFileSize($rotateSize); + $rotateSize = Util::computerFileSize($rotateSize); $this->validateRotateSize($rotateSize); $toBeSet['log_rotate_size'] = $rotateSize; } @@ -87,7 +88,7 @@ class File extends Command implements Completion\CompletionAwareInterface { $rotateSize = $this->config->getSystemValue('log_rotate_size', 100 * 1024 * 1024); if ($rotateSize) { - $rotateString = \OCP\Util::humanFileSize($rotateSize); + $rotateString = Util::humanFileSize($rotateSize); } else { $rotateString = 'disabled'; } |