Skip to content

Commit

Permalink
chore(): Run composer cs:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zak39 committed Aug 2, 2024
1 parent 4ea0b93 commit 690501b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 19 deletions.
3 changes: 1 addition & 2 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public function register(IRegistrationContext $context): void {
$context->registerCapability(Capabilities::class);
}

public function boot(IBootContext $context): void
{
public function boot(IBootContext $context): void {
}

}
32 changes: 15 additions & 17 deletions lib/AppInfo/Capabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,20 @@
use OCP\Capabilities\ICapability;
use OCP\IAppConfig;

class Capabilities implements ICapability
{
public function __construct(
private IAppManager $appManager,
private IAppConfig $appConfigManager
) {
}
class Capabilities implements ICapability {
public function __construct(
private IAppManager $appManager,
private IAppConfig $appConfigManager
) {
}

public function getCapabilities(): array
{
return [
Application::APP_ID => [
'version' => $this->appManager->getAppVersion(Application::APP_ID),
'is_enabled' => $this->appManager->isEnabledForUser(Application::APP_ID),
'groupfolders_version' => $this->appManager->getAppVersion('groupfolders'),
]
];
}
public function getCapabilities(): array {
return [
Application::APP_ID => [
'version' => $this->appManager->getAppVersion(Application::APP_ID),
'is_enabled' => $this->appManager->isEnabledForUser(Application::APP_ID),
'groupfolders_version' => $this->appManager->getAppVersion('groupfolders'),
]
];
}
}

0 comments on commit 690501b

Please sign in to comment.