diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/lib/Command/Copy.php | 7 | ||||
-rw-r--r-- | apps/files/lib/Command/Move.php | 7 | ||||
-rw-r--r-- | apps/files_trashbin/tests/TrashbinTest.php | 2 | ||||
-rw-r--r-- | apps/files_versions/tests/VersioningTest.php | 2 | ||||
-rw-r--r-- | apps/settings/lib/UserMigration/AccountMigrator.php | 5 |
5 files changed, 9 insertions, 14 deletions
diff --git a/apps/files/lib/Command/Copy.php b/apps/files/lib/Command/Copy.php index e51a1689907..ad0dfa90de1 100644 --- a/apps/files/lib/Command/Copy.php +++ b/apps/files/lib/Command/Copy.php @@ -19,10 +19,9 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; class Copy extends Command { - private FileUtils $fileUtils; - - public function __construct(FileUtils $fileUtils) { - $this->fileUtils = $fileUtils; + public function __construct( + private FileUtils $fileUtils, + ) { parent::__construct(); } diff --git a/apps/files/lib/Command/Move.php b/apps/files/lib/Command/Move.php index cd9e56f8e29..29dd8860b2a 100644 --- a/apps/files/lib/Command/Move.php +++ b/apps/files/lib/Command/Move.php @@ -20,10 +20,9 @@ use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Question\ConfirmationQuestion; class Move extends Command { - private FileUtils $fileUtils; - - public function __construct(FileUtils $fileUtils) { - $this->fileUtils = $fileUtils; + public function __construct( + private FileUtils $fileUtils, + ) { parent::__construct(); } diff --git a/apps/files_trashbin/tests/TrashbinTest.php b/apps/files_trashbin/tests/TrashbinTest.php index 42054fc48a6..3d2ceee0dcd 100644 --- a/apps/files_trashbin/tests/TrashbinTest.php +++ b/apps/files_trashbin/tests/TrashbinTest.php @@ -118,7 +118,7 @@ class TrashbinTest extends \Test\TestCase { $config = Server::get(IConfig::class); $mockConfig = $this->getMockBuilder(AllConfig::class) ->onlyMethods(['getSystemValue']) - ->setConstructorArgs([Server::get(\OC\SystemConfig::class)]) + ->setConstructorArgs([Server::get(SystemConfig::class)]) ->getMock(); $mockConfig->expects($this->any()) ->method('getSystemValue') diff --git a/apps/files_versions/tests/VersioningTest.php b/apps/files_versions/tests/VersioningTest.php index 7d027ca566f..eaa0a02e261 100644 --- a/apps/files_versions/tests/VersioningTest.php +++ b/apps/files_versions/tests/VersioningTest.php @@ -85,7 +85,7 @@ class VersioningTest extends \Test\TestCase { $config = Server::get(IConfig::class); $mockConfig = $this->getMockBuilder(AllConfig::class) ->onlyMethods(['getSystemValue']) - ->setConstructorArgs([Server::get(\OC\SystemConfig::class)]) + ->setConstructorArgs([Server::get(SystemConfig::class)]) ->getMock(); $mockConfig->expects($this->any()) ->method('getSystemValue') diff --git a/apps/settings/lib/UserMigration/AccountMigrator.php b/apps/settings/lib/UserMigration/AccountMigrator.php index 15ac06687b6..1c51aec5104 100644 --- a/apps/settings/lib/UserMigration/AccountMigrator.php +++ b/apps/settings/lib/UserMigration/AccountMigrator.php @@ -35,8 +35,6 @@ class AccountMigrator implements IMigrator, ISizeEstimationMigrator { private ProfileManager $profileManager; - private ProfileConfigMapper $configMapper; - private const PATH_ROOT = Application::APP_ID . '/'; private const PATH_ACCOUNT_FILE = AccountMigrator::PATH_ROOT . 'account.json'; @@ -49,11 +47,10 @@ class AccountMigrator implements IMigrator, ISizeEstimationMigrator { private IAccountManager $accountManager, private IAvatarManager $avatarManager, ProfileManager $profileManager, - ProfileConfigMapper $configMapper, + private ProfileConfigMapper $configMapper, private IL10N $l10n, ) { $this->profileManager = $profileManager; - $this->configMapper = $configMapper; } /** |