diff --git a/composer.lock b/composer.lock index 3f577ec6..7d6137b4 100644 --- a/composer.lock +++ b/composer.lock @@ -66,16 +66,16 @@ }, { "name": "kubawerlos/php-cs-fixer-custom-fixers", - "version": "v3.36.0", + "version": "v3.37.2", "source": { "type": "git", "url": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers.git", - "reference": "e1f97f6463f0b2a22e0dd320948a04132ff9c501" + "reference": "678df979ce743466b42ddb6eea46b3f4c9a7bade" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/e1f97f6463f0b2a22e0dd320948a04132ff9c501", - "reference": "e1f97f6463f0b2a22e0dd320948a04132ff9c501", + "url": "https://api.github.com/repos/kubawerlos/php-cs-fixer-custom-fixers/zipball/678df979ce743466b42ddb6eea46b3f4c9a7bade", + "reference": "678df979ce743466b42ddb6eea46b3f4c9a7bade", "shasum": "" }, "require": { @@ -85,7 +85,7 @@ "php": "^7.4 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^9.6.24 || ^10.5.51 || ^11.5.44" + "phpunit/phpunit": "^9.6.34 || ^10.5.63 || ^11.5.55" }, "type": "library", "autoload": { @@ -106,7 +106,7 @@ "description": "A set of custom fixers for PHP CS Fixer", "support": { "issues": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/issues", - "source": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/tree/v3.36.0" + "source": "https://github.com/kubawerlos/php-cs-fixer-custom-fixers/tree/v3.37.2" }, "funding": [ { @@ -114,20 +114,20 @@ "type": "github" } ], - "time": "2026-01-31T07:02:11+00:00" + "time": "2026-05-12T16:22:19+00:00" }, { "name": "nextcloud/coding-standard", - "version": "v1.4.0", + "version": "v1.5.0", "source": { "type": "git", "url": "https://github.com/nextcloud/coding-standard.git", - "reference": "8e06808c1423e9208d63d1bd205b9a38bd400011" + "reference": "80547a93236fbb9c783e05f0f0899043851b0dba" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/8e06808c1423e9208d63d1bd205b9a38bd400011", - "reference": "8e06808c1423e9208d63d1bd205b9a38bd400011", + "url": "https://api.github.com/repos/nextcloud/coding-standard/zipball/80547a93236fbb9c783e05f0f0899043851b0dba", + "reference": "80547a93236fbb9c783e05f0f0899043851b0dba", "shasum": "" }, "require": { @@ -157,9 +157,9 @@ ], "support": { "issues": "https://github.com/nextcloud/coding-standard/issues", - "source": "https://github.com/nextcloud/coding-standard/tree/v1.4.0" + "source": "https://github.com/nextcloud/coding-standard/tree/v1.5.0" }, - "time": "2025-06-19T12:27:27+00:00" + "time": "2026-05-19T18:30:09+00:00" }, { "name": "nextcloud/ocp", diff --git a/lib/Command/Daemon/AddRegistry.php b/lib/Command/Daemon/AddRegistry.php index 380eeb0a..b7236608 100644 --- a/lib/Command/Daemon/AddRegistry.php +++ b/lib/Command/Daemon/AddRegistry.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\Daemon; use OCA\AppAPI\Service\DaemonConfigService; - use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; diff --git a/lib/Command/Daemon/ListRegistry.php b/lib/Command/Daemon/ListRegistry.php index 89e9e6e5..20d8b34c 100644 --- a/lib/Command/Daemon/ListRegistry.php +++ b/lib/Command/Daemon/ListRegistry.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\Daemon; use OCA\AppAPI\Service\DaemonConfigService; - use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; diff --git a/lib/Command/Daemon/RegisterDaemon.php b/lib/Command/Daemon/RegisterDaemon.php index 53585fce..66a2a27a 100644 --- a/lib/Command/Daemon/RegisterDaemon.php +++ b/lib/Command/Daemon/RegisterDaemon.php @@ -11,7 +11,6 @@ use OCA\AppAPI\AppInfo\Application; use OCA\AppAPI\Service\DaemonConfigService; - use OCP\IAppConfig; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/lib/Command/Daemon/RemoveRegistry.php b/lib/Command/Daemon/RemoveRegistry.php index ffa44674..de470631 100644 --- a/lib/Command/Daemon/RemoveRegistry.php +++ b/lib/Command/Daemon/RemoveRegistry.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\Daemon; use OCA\AppAPI\Service\DaemonConfigService; - use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; diff --git a/lib/Command/Daemon/UnregisterDaemon.php b/lib/Command/Daemon/UnregisterDaemon.php index 940c06e1..a2f9a842 100644 --- a/lib/Command/Daemon/UnregisterDaemon.php +++ b/lib/Command/Daemon/UnregisterDaemon.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\Daemon; use OCA\AppAPI\Service\DaemonConfigService; - use OCA\AppAPI\Service\ExAppService; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/lib/Command/ExApp/ListExApps.php b/lib/Command/ExApp/ListExApps.php index faa82c9d..41bb7018 100644 --- a/lib/Command/ExApp/ListExApps.php +++ b/lib/Command/ExApp/ListExApps.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\ExApp; use OCA\AppAPI\Db\ExAppMapper; - use OCP\DB\Exception; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; diff --git a/lib/Command/ExApp/Register.php b/lib/Command/ExApp/Register.php index 34cbb309..7be3ed7f 100644 --- a/lib/Command/ExApp/Register.php +++ b/lib/Command/ExApp/Register.php @@ -17,7 +17,6 @@ use OCA\AppAPI\Service\AppAPIService; use OCA\AppAPI\Service\DaemonConfigService; use OCA\AppAPI\Service\ExAppService; - use OCP\IAppConfig; use OCP\Security\ISecureRandom; use Psr\Log\LoggerInterface; diff --git a/lib/Command/ExApp/Unregister.php b/lib/Command/ExApp/Unregister.php index d6ee601b..fc1bd877 100644 --- a/lib/Command/ExApp/Unregister.php +++ b/lib/Command/ExApp/Unregister.php @@ -11,7 +11,6 @@ use OCA\AppAPI\DeployActions\DockerActions; use OCA\AppAPI\DeployActions\KubernetesActions; - use OCA\AppAPI\Service\AppAPIService; use OCA\AppAPI\Service\DaemonConfigService; use OCA\AppAPI\Service\ExAppDeployOptionsService; diff --git a/lib/Command/ExApp/Update.php b/lib/Command/ExApp/Update.php index 39cb81ea..4e5cc9d9 100644 --- a/lib/Command/ExApp/Update.php +++ b/lib/Command/ExApp/Update.php @@ -16,7 +16,6 @@ use OCA\AppAPI\Fetcher\ExAppFetcher; use OCA\AppAPI\Service\AppAPIService; use OCA\AppAPI\Service\DaemonConfigService; - use OCA\AppAPI\Service\ExAppDeployOptionsService; use OCA\AppAPI\Service\ExAppService; use Psr\Log\LoggerInterface; diff --git a/lib/Command/ExAppConfig/DeleteConfig.php b/lib/Command/ExAppConfig/DeleteConfig.php index 9c1447dc..50c59795 100644 --- a/lib/Command/ExAppConfig/DeleteConfig.php +++ b/lib/Command/ExAppConfig/DeleteConfig.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\ExAppConfig; use OCA\AppAPI\Service\ExAppConfigService; - use OCA\AppAPI\Service\ExAppService; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/lib/Command/ExAppConfig/GetConfig.php b/lib/Command/ExAppConfig/GetConfig.php index 1850c837..306811fb 100644 --- a/lib/Command/ExAppConfig/GetConfig.php +++ b/lib/Command/ExAppConfig/GetConfig.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\ExAppConfig; use OCA\AppAPI\Service\ExAppConfigService; - use OCA\AppAPI\Service\ExAppService; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/lib/Command/ExAppConfig/ListConfig.php b/lib/Command/ExAppConfig/ListConfig.php index 8edf57af..1563b2ca 100644 --- a/lib/Command/ExAppConfig/ListConfig.php +++ b/lib/Command/ExAppConfig/ListConfig.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\ExAppConfig; use OCA\AppAPI\Service\ExAppConfigService; - use OCA\AppAPI\Service\ExAppService; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/lib/Command/ExAppConfig/SetConfig.php b/lib/Command/ExAppConfig/SetConfig.php index d6c4bd0e..b908bac2 100644 --- a/lib/Command/ExAppConfig/SetConfig.php +++ b/lib/Command/ExAppConfig/SetConfig.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Command\ExAppConfig; use OCA\AppAPI\Service\ExAppConfigService; - use OCA\AppAPI\Service\ExAppService; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; diff --git a/lib/Controller/AppConfigController.php b/lib/Controller/AppConfigController.php index 02c0e02b..c1cfe12d 100644 --- a/lib/Controller/AppConfigController.php +++ b/lib/Controller/AppConfigController.php @@ -13,7 +13,6 @@ use OCA\AppAPI\Attribute\AppAPIAuth; use OCA\AppAPI\Db\ExAppConfig; use OCA\AppAPI\Service\ExAppConfigService; - use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\Attribute\PublicPage; diff --git a/lib/Controller/ConfigController.php b/lib/Controller/ConfigController.php index fa8f81ad..fa447ff3 100644 --- a/lib/Controller/ConfigController.php +++ b/lib/Controller/ConfigController.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Controller; use OCA\AppAPI\AppInfo\Application; - use OCP\AppFramework\Controller; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\DataResponse; diff --git a/lib/Controller/DaemonConfigController.php b/lib/Controller/DaemonConfigController.php index aa47858d..cb738f6d 100644 --- a/lib/Controller/DaemonConfigController.php +++ b/lib/Controller/DaemonConfigController.php @@ -12,7 +12,6 @@ use OCA\AppAPI\AppInfo\Application; use OCA\AppAPI\Db\DaemonConfig; use OCA\AppAPI\DeployActions\DockerActions; - use OCA\AppAPI\Service\AppAPIService; use OCA\AppAPI\Service\DaemonConfigService; use OCA\AppAPI\Service\ExAppService; diff --git a/lib/Controller/NotificationsController.php b/lib/Controller/NotificationsController.php index 322be7e9..4656b648 100644 --- a/lib/Controller/NotificationsController.php +++ b/lib/Controller/NotificationsController.php @@ -12,7 +12,6 @@ use OCA\AppAPI\AppInfo\Application; use OCA\AppAPI\Attribute\AppAPIAuth; use OCA\AppAPI\Notifications\ExNotificationsManager; - use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\Attribute\PublicPage; diff --git a/lib/Controller/OCSApiController.php b/lib/Controller/OCSApiController.php index 6694f3c7..15470031 100644 --- a/lib/Controller/OCSApiController.php +++ b/lib/Controller/OCSApiController.php @@ -13,7 +13,6 @@ use OCA\AppAPI\Attribute\AppAPIAuth; use OCA\AppAPI\Service\AppAPIService; use OCA\AppAPI\Service\ExAppService; - use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; diff --git a/lib/Controller/OCSExAppController.php b/lib/Controller/OCSExAppController.php index 409b82a2..720a96ee 100644 --- a/lib/Controller/OCSExAppController.php +++ b/lib/Controller/OCSExAppController.php @@ -11,7 +11,6 @@ use OCA\AppAPI\AppInfo\Application; use OCA\AppAPI\Service\AppAPIService; - use OCA\AppAPI\Service\ExAppService; use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; diff --git a/lib/Controller/PreferencesController.php b/lib/Controller/PreferencesController.php index f157fcb9..6aa157a8 100644 --- a/lib/Controller/PreferencesController.php +++ b/lib/Controller/PreferencesController.php @@ -13,7 +13,6 @@ use OCA\AppAPI\Attribute\AppAPIAuth; use OCA\AppAPI\Db\ExAppPreference; use OCA\AppAPI\Service\ExAppPreferenceService; - use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; use OCP\AppFramework\Http\Attribute\PublicPage; diff --git a/lib/DavPlugin.php b/lib/DavPlugin.php index c2c99308..8294f234 100644 --- a/lib/DavPlugin.php +++ b/lib/DavPlugin.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI; use OCA\AppAPI\Service\AppAPIService; - use OCA\DAV\Connector\Sabre\Auth; use OCP\IRequest; use OCP\ISession; diff --git a/lib/DeployActions/DockerActions.php b/lib/DeployActions/DockerActions.php index 9c372430..61fc0e08 100644 --- a/lib/DeployActions/DockerActions.php +++ b/lib/DeployActions/DockerActions.php @@ -14,14 +14,12 @@ use GuzzleHttp\Exception\GuzzleException; use OCA\AppAPI\AppInfo\Application; use OCA\AppAPI\Db\DaemonConfig; - use OCA\AppAPI\Db\ExApp; use OCA\AppAPI\Service\AppAPICommonService; use OCA\AppAPI\Service\ExAppDeployOptionsService; use OCA\AppAPI\Service\ExAppService; use OCA\AppAPI\Service\HarpService; use OCP\App\IAppManager; - use OCP\IAppConfig; use OCP\ICertificateManager; use OCP\IConfig; diff --git a/lib/Fetcher/AppAPIFetcher.php b/lib/Fetcher/AppAPIFetcher.php index e41cc6af..cce3de3c 100644 --- a/lib/Fetcher/AppAPIFetcher.php +++ b/lib/Fetcher/AppAPIFetcher.php @@ -125,7 +125,6 @@ public function get(bool $allowUnstable = false): array { $file = $rootFolder->getFile($this->fileName); $jsonBlob = json_decode($file->getContent(), true); - if (is_array($jsonBlob)) { // No caching when the version has been updated if (isset($jsonBlob['ncversion']) && $jsonBlob['ncversion'] === $this->getVersion()) { diff --git a/lib/Listener/LoadMenuEntriesListener.php b/lib/Listener/LoadMenuEntriesListener.php index 6352f437..a5d2f80c 100644 --- a/lib/Listener/LoadMenuEntriesListener.php +++ b/lib/Listener/LoadMenuEntriesListener.php @@ -17,7 +17,6 @@ use OCP\INavigationManager; use OCP\IURLGenerator; use OCP\IUserSession; - use OCP\L10N\IFactory; use OCP\Navigation\Events\LoadAdditionalEntriesEvent; use OCP\Server; diff --git a/lib/Listener/SabrePluginAuthInitListener.php b/lib/Listener/SabrePluginAuthInitListener.php index f61340cc..251b5839 100644 --- a/lib/Listener/SabrePluginAuthInitListener.php +++ b/lib/Listener/SabrePluginAuthInitListener.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Listener; use OCA\AppAPI\AppAPIAuthBackend; - use OCA\DAV\Events\SabrePluginAuthInitEvent; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; diff --git a/lib/Middleware/AppAPIAuthMiddleware.php b/lib/Middleware/AppAPIAuthMiddleware.php index 82d4fab5..a3d36b9b 100644 --- a/lib/Middleware/AppAPIAuthMiddleware.php +++ b/lib/Middleware/AppAPIAuthMiddleware.php @@ -13,7 +13,6 @@ use OCA\AppAPI\Attribute\AppAPIAuth; use OCA\AppAPI\Exceptions\AppAPIAuthNotValidException; use OCA\AppAPI\Service\AppAPIService; - use OCP\AppFramework\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\JSONResponse; diff --git a/lib/Middleware/ExAppUIL10NMiddleware.php b/lib/Middleware/ExAppUIL10NMiddleware.php index 09a6a84b..50a28e9a 100644 --- a/lib/Middleware/ExAppUIL10NMiddleware.php +++ b/lib/Middleware/ExAppUIL10NMiddleware.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Middleware; use OC\Security\CSP\ContentSecurityPolicyNonceManager; - use OCA\AppAPI\Service\ExAppService; use OCP\App\AppPathNotFoundException; use OCP\App\IAppManager; diff --git a/lib/Middleware/ExAppUiMiddleware.php b/lib/Middleware/ExAppUiMiddleware.php index 158a8c0c..a0ae14a5 100644 --- a/lib/Middleware/ExAppUiMiddleware.php +++ b/lib/Middleware/ExAppUiMiddleware.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Middleware; use OCA\AppAPI\AppInfo\Application; - use OCA\AppAPI\Controller\TopMenuController; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\Response; diff --git a/lib/Migration/DataInitializationStep.php b/lib/Migration/DataInitializationStep.php index 8fc149ca..01a4bf99 100644 --- a/lib/Migration/DataInitializationStep.php +++ b/lib/Migration/DataInitializationStep.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Migration; use OCA\AppAPI\DeployActions\AIODockerActions; - use OCP\Migration\IOutput; use OCP\Migration\IRepairStep; diff --git a/lib/Migration/Version032001Date20250115164140.php b/lib/Migration/Version032001Date20250115164140.php index f4f644b9..a1347c9f 100644 --- a/lib/Migration/Version032001Date20250115164140.php +++ b/lib/Migration/Version032001Date20250115164140.php @@ -55,7 +55,6 @@ public function changeSchema(IOutput $output, Closure $schemaClosure, array $opt $table->addUniqueIndex(['appid', 'type'], 'deploy_options__idx'); } - return $schema; } } diff --git a/lib/PublicCapabilities.php b/lib/PublicCapabilities.php index 5255650b..174c790f 100644 --- a/lib/PublicCapabilities.php +++ b/lib/PublicCapabilities.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI; use OCA\AppAPI\AppInfo\Application; - use OCP\App\IAppManager; use OCP\Capabilities\IPublicCapability; diff --git a/lib/Service/DaemonConfigService.php b/lib/Service/DaemonConfigService.php index 53a11eab..c61a011d 100644 --- a/lib/Service/DaemonConfigService.php +++ b/lib/Service/DaemonConfigService.php @@ -11,7 +11,6 @@ use OCA\AppAPI\Db\DaemonConfig; use OCA\AppAPI\Db\DaemonConfigMapper; - use OCA\AppAPI\DeployActions\DockerActions; use OCA\AppAPI\DeployActions\KubernetesActions; use OCA\AppAPI\DeployActions\ManualActions; diff --git a/lib/Service/ExAppConfigService.php b/lib/Service/ExAppConfigService.php index afe9989a..a82cf79e 100644 --- a/lib/Service/ExAppConfigService.php +++ b/lib/Service/ExAppConfigService.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Service; use OCA\AppAPI\Db\ExAppConfig; - use OCP\IAppConfig; use OCP\IDBConnection; use Psr\Log\LoggerInterface; diff --git a/lib/Service/ExAppPreferenceService.php b/lib/Service/ExAppPreferenceService.php index 131b3c43..cbd86ddf 100644 --- a/lib/Service/ExAppPreferenceService.php +++ b/lib/Service/ExAppPreferenceService.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Service; use OCA\AppAPI\Db\ExAppPreference; - use OCP\Config\IUserConfig; use OCP\IDBConnection; use Psr\Log\LoggerInterface; diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 7d4356d0..676a3005 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Settings; use OCA\AppAPI\AppInfo\Application; - use OCA\AppAPI\DeployActions\DockerActions; use OCA\AppAPI\Service\DaemonConfigService; use OCP\AppFramework\Http\TemplateResponse; diff --git a/lib/Settings/AdminSection.php b/lib/Settings/AdminSection.php index 83dc0401..dee4d791 100644 --- a/lib/Settings/AdminSection.php +++ b/lib/Settings/AdminSection.php @@ -10,7 +10,6 @@ namespace OCA\AppAPI\Settings; use OCA\AppAPI\AppInfo\Application; - use OCP\IL10N; use OCP\IURLGenerator; use OCP\Settings\IIconSection;