From aa5f037af71c915424c6dcfd5ad2dc82797dc0d6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Thu, 23 Nov 2023 10:22:34 +0100 Subject: chore: apply changes from Nextcloud coding standards 1.1.1 Signed-off-by: Joas Schilling Signed-off-by: Benjamin Gaussorgues --- apps/testing/lib/AppInfo/Application.php | 2 +- apps/testing/lib/Controller/ConfigController.php | 4 ++-- apps/testing/lib/Controller/LockingController.php | 12 ++++++------ apps/testing/lib/Locking/FakeDBLockingProvider.php | 3 +-- 4 files changed, 10 insertions(+), 11 deletions(-) (limited to 'apps/testing') diff --git a/apps/testing/lib/AppInfo/Application.php b/apps/testing/lib/AppInfo/Application.php index a92caeb245a..6e9421a030e 100644 --- a/apps/testing/lib/AppInfo/Application.php +++ b/apps/testing/lib/AppInfo/Application.php @@ -26,8 +26,8 @@ namespace OCA\Testing\AppInfo; use OCA\Testing\AlternativeHomeUserBackend; use OCA\Testing\Provider\FakeText2ImageProvider; -use OCA\Testing\Provider\FakeTranslationProvider; use OCA\Testing\Provider\FakeTextProcessingProvider; +use OCA\Testing\Provider\FakeTranslationProvider; use OCP\AppFramework\App; use OCP\AppFramework\Bootstrap\IBootContext; use OCP\AppFramework\Bootstrap\IBootstrap; diff --git a/apps/testing/lib/Controller/ConfigController.php b/apps/testing/lib/Controller/ConfigController.php index 76f1e1a1ee1..bad4be7b4a1 100644 --- a/apps/testing/lib/Controller/ConfigController.php +++ b/apps/testing/lib/Controller/ConfigController.php @@ -38,8 +38,8 @@ class ConfigController extends OCSController { * @param IConfig $config */ public function __construct($appName, - IRequest $request, - IConfig $config) { + IRequest $request, + IConfig $config) { parent::__construct($appName, $request); $this->config = $config; } diff --git a/apps/testing/lib/Controller/LockingController.php b/apps/testing/lib/Controller/LockingController.php index c01ad218c84..0c084b4f9cd 100644 --- a/apps/testing/lib/Controller/LockingController.php +++ b/apps/testing/lib/Controller/LockingController.php @@ -64,12 +64,12 @@ class LockingController extends OCSController { * @param IRootFolder $rootFolder */ public function __construct($appName, - IRequest $request, - ILockingProvider $lockingProvider, - FakeDBLockingProvider $fakeDBLockingProvider, - IDBConnection $connection, - IConfig $config, - IRootFolder $rootFolder) { + IRequest $request, + ILockingProvider $lockingProvider, + FakeDBLockingProvider $fakeDBLockingProvider, + IDBConnection $connection, + IConfig $config, + IRootFolder $rootFolder) { parent::__construct($appName, $request); $this->lockingProvider = $lockingProvider; diff --git a/apps/testing/lib/Locking/FakeDBLockingProvider.php b/apps/testing/lib/Locking/FakeDBLockingProvider.php index 2556ba29a64..c5ebbc16371 100644 --- a/apps/testing/lib/Locking/FakeDBLockingProvider.php +++ b/apps/testing/lib/Locking/FakeDBLockingProvider.php @@ -23,10 +23,9 @@ */ namespace OCA\Testing\Locking; +use OC\Lock\DBLockingProvider; use OCP\AppFramework\Utility\ITimeFactory; use OCP\IDBConnection; -use Psr\Log\LoggerInterface; -use OC\Lock\DBLockingProvider; class FakeDBLockingProvider extends DBLockingProvider { // Lock for 10 hours just to be sure -- cgit v1.2.3