mirror of
https://gitnet.fr/deblan/side_menu.git
synced 2025-12-17 21:02:25 +01:00
format code
This commit is contained in:
parent
0bf7eada4c
commit
6c4f9120ff
11 changed files with 23 additions and 18 deletions
|
|
@ -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' => [
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,8 +20,9 @@ class CategoryRepository
|
|||
protected ConfigProxy $config,
|
||||
protected IConfig $iConfig,
|
||||
protected IFactory $l10nFactory,
|
||||
protected IUserSession $userSession
|
||||
) {}
|
||||
protected IUserSession $userSession,
|
||||
) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves categories.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -28,8 +28,9 @@ class AdminSection implements IIconSection
|
|||
{
|
||||
public function __construct(
|
||||
protected IURLGenerator $url,
|
||||
protected IL10N $l
|
||||
) {}
|
||||
protected IL10N $l,
|
||||
) {
|
||||
}
|
||||
|
||||
public function getID()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue