aboutsummaryrefslogtreecommitdiffstats
path: root/apps/workflowengine/lib/Settings
diff options
context:
space:
mode:
Diffstat (limited to 'apps/workflowengine/lib/Settings')
-rw-r--r--apps/workflowengine/lib/Settings/ASettings.php33
-rw-r--r--apps/workflowengine/lib/Settings/Section.php13
2 files changed, 14 insertions, 32 deletions
diff --git a/apps/workflowengine/lib/Settings/ASettings.php b/apps/workflowengine/lib/Settings/ASettings.php
index 1cf03376e9f..23e958755de 100644
--- a/apps/workflowengine/lib/Settings/ASettings.php
+++ b/apps/workflowengine/lib/Settings/ASettings.php
@@ -26,30 +26,15 @@ use OCP\WorkflowEngine\IOperation;
use OCP\WorkflowEngine\ISpecificOperation;
abstract class ASettings implements ISettings {
- private IL10N $l10n;
- private string $appName;
- private IEventDispatcher $eventDispatcher;
- protected Manager $manager;
- private IInitialState $initialStateService;
- private IConfig $config;
- private IURLGenerator $urlGenerator;
-
public function __construct(
- string $appName,
- IL10N $l,
- IEventDispatcher $eventDispatcher,
- Manager $manager,
- IInitialState $initialStateService,
- IConfig $config,
- IURLGenerator $urlGenerator
+ private string $appName,
+ private IL10N $l10n,
+ private IEventDispatcher $eventDispatcher,
+ protected Manager $manager,
+ private IInitialState $initialStateService,
+ private IConfig $config,
+ private IURLGenerator $urlGenerator,
) {
- $this->appName = $appName;
- $this->l10n = $l;
- $this->eventDispatcher = $eventDispatcher;
- $this->manager = $manager;
- $this->initialStateService = $initialStateService;
- $this->config = $config;
- $this->urlGenerator = $urlGenerator;
}
abstract public function getScope(): int;
@@ -110,8 +95,8 @@ abstract class ASettings implements ISettings {
/**
* @return int whether the form should be rather on the top or bottom of
- * the admin section. The forms are arranged in ascending order of the
- * priority values. It is required to return a value between 0 and 100.
+ * the admin section. The forms are arranged in ascending order of the
+ * priority values. It is required to return a value between 0 and 100.
*
* E.g.: 70
*/
diff --git a/apps/workflowengine/lib/Settings/Section.php b/apps/workflowengine/lib/Settings/Section.php
index 1e23eee64ee..aa790c9ddcc 100644
--- a/apps/workflowengine/lib/Settings/Section.php
+++ b/apps/workflowengine/lib/Settings/Section.php
@@ -1,4 +1,5 @@
<?php
+
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
@@ -11,18 +12,14 @@ use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class Section implements IIconSection {
- /** @var IL10N */
- private $l;
- /** @var IURLGenerator */
- private $url;
-
/**
* @param IURLGenerator $url
* @param IL10N $l
*/
- public function __construct(IURLGenerator $url, IL10N $l) {
- $this->url = $url;
- $this->l = $l;
+ public function __construct(
+ private IURLGenerator $url,
+ private IL10N $l,
+ ) {
}
/**