format code

This commit is contained in:
Simon Vieille
2025-04-13 15:23:43 +02:00
parent 0bf7eada4c
commit 6c4f9120ff
11 changed files with 23 additions and 18 deletions
+3 -3
View File
@@ -8,12 +8,13 @@ use OC\Security\CSP\ContentSecurityPolicyNonceManager;
use OC\User\User;
use OCA\SideMenu\Service\AppRepository;
use OCA\SideMenu\Service\CategoryRepository;
use OCA\SideMenu\Service\Color;
use OCA\SideMenu\Service\ConfigProxy;
use OCA\Theming\ThemingDefaults;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCA\Theming\ThemingDefaults;
use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig;
use OCP\INavigationManager;
@@ -21,7 +22,6 @@ use OCP\IUserSession;
use OCP\L10N\IFactory;
use OCP\Util;
use Psr\Container\ContainerInterface;
use OCA\SideMenu\Service\Color;
/**
* class Application.
@@ -128,7 +128,7 @@ class Application extends App implements IBootstrap
protected function addAssets()
{
Util::addScript(self::APP_ID, 'side_menu-menu');
//Util::addStyle(self::APP_ID, 'sideMenu');
// Util::addStyle(self::APP_ID, 'sideMenu');
$assets = [
'stylesheet' => [
+1 -1
View File
@@ -37,7 +37,7 @@ class AppController extends Controller
IRequest $request,
protected AppRepository $appRepository,
protected IURLGenerator $urlGenerator,
protected ConfigProxy $config
protected ConfigProxy $config,
) {
parent::__construct($appName, $request);
}
+1 -1
View File
@@ -41,7 +41,7 @@ class CssController extends Controller
IRequest $request,
protected ConfigProxy $config,
protected ThemingDefaults $theming,
protected Color $color
protected Color $color,
) {
parent::__construct($appName, $request);
+1 -1
View File
@@ -43,7 +43,7 @@ class JsController extends Controller
IRequest $request,
protected ConfigProxy $config,
protected ThemingDefaults $themingDefaults,
protected IFactory $l10nFactory
protected IFactory $l10nFactory,
) {
parent::__construct($appName, $request);
+1 -1
View File
@@ -42,7 +42,7 @@ class NavController extends Controller
protected AppRepository $appRepository,
protected CategoryRepository $categoryRepository,
protected URLGenerator $router,
protected IFactory $l10nFactory
protected IFactory $l10nFactory,
) {
parent::__construct($appName, $request);
}
+1 -1
View File
@@ -36,7 +36,7 @@ class PersonalSettingController extends Controller
IRequest $request,
protected IConfig $config,
protected ConfigProxy $configProxy,
protected IUserSession $userSession
protected IUserSession $userSession,
) {
parent::__construct($appName, $request);
}
+3 -2
View File
@@ -20,8 +20,9 @@ class CategoryRepository
protected ConfigProxy $config,
protected IConfig $iConfig,
protected IFactory $l10nFactory,
protected IUserSession $userSession
) {}
protected IUserSession $userSession,
) {
}
/**
* Retrieves categories.
+3 -2
View File
@@ -39,8 +39,9 @@ class Admin implements ISettings
protected CategoryRepository $categoryRepository,
protected ThemingDefaults $theming,
protected Color $color,
protected LangRepository $langRepository
) {}
protected LangRepository $langRepository,
) {
}
/**
* @return TemplateResponse
+3 -2
View File
@@ -28,8 +28,9 @@ class AdminSection implements IIconSection
{
public function __construct(
protected IURLGenerator $url,
protected IL10N $l
) {}
protected IL10N $l,
) {
}
public function getID()
{
+3 -2
View File
@@ -33,8 +33,9 @@ class Personal implements ISettings
protected IL10N $l,
protected ConfigProxy $config,
protected IUserSession $userSession,
protected AppRepository $appRepository
) {}
protected AppRepository $appRepository,
) {
}
/**
* @return TemplateResponse
+3 -2
View File
@@ -30,8 +30,9 @@ class PersonalSection implements IIconSection
public function __construct(
protected IURLGenerator $url,
protected IL10N $l,
protected ConfigProxy $configProxy
) {}
protected ConfigProxy $configProxy,
) {
}
public function getID()
{