diff options
author | Faraz Samapoor <fsa@adlas.at> | 2023-06-12 17:52:30 +0330 |
---|---|---|
committer | Louis <6653109+artonge@users.noreply.github.com> | 2023-06-20 16:24:46 +0200 |
commit | f9a9ad50c3f4cc49db42d62430331f175de13a70 (patch) | |
tree | e3aa45f7bcd1a7d33a006028115ffd70e2674b6a /core/Command/Encryption/DecryptAll.php | |
parent | 14ac281acf143606c54e59e3641c9d0d898e5f95 (diff) | |
download | nextcloud-server-f9a9ad50c3f4cc49db42d62430331f175de13a70.tar.gz nextcloud-server-f9a9ad50c3f4cc49db42d62430331f175de13a70.zip |
Uses PHP8's constructor property promotion in core/Command/Encryption classes.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'core/Command/Encryption/DecryptAll.php')
-rw-r--r-- | core/Command/Encryption/DecryptAll.php | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/core/Command/Encryption/DecryptAll.php b/core/Command/Encryption/DecryptAll.php index ce17f787abd..7569605e775 100644 --- a/core/Command/Encryption/DecryptAll.php +++ b/core/Command/Encryption/DecryptAll.php @@ -41,28 +41,17 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; class DecryptAll extends Command { - protected IManager $encryptionManager; - protected IAppManager $appManager; - protected IConfig $config; - protected QuestionHelper $questionHelper; protected bool $wasTrashbinEnabled; protected bool $wasMaintenanceModeEnabled; - protected \OC\Encryption\DecryptAll $decryptAll; public function __construct( - IManager $encryptionManager, - IAppManager $appManager, - IConfig $config, - \OC\Encryption\DecryptAll $decryptAll, - QuestionHelper $questionHelper + protected IManager $encryptionManager, + protected IAppManager $appManager, + protected IConfig $config, + protected \OC\Encryption\DecryptAll $decryptAll, + protected QuestionHelper $questionHelper, ) { parent::__construct(); - - $this->appManager = $appManager; - $this->encryptionManager = $encryptionManager; - $this->config = $config; - $this->decryptAll = $decryptAll; - $this->questionHelper = $questionHelper; } /** |