aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Sections
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/lib/Sections')
-rw-r--r--apps/settings/lib/Sections/Admin/Additional.php13
-rw-r--r--apps/settings/lib/Sections/Admin/ArtificialIntelligence.php13
-rw-r--r--apps/settings/lib/Sections/Admin/Delegation.php12
-rw-r--r--apps/settings/lib/Sections/Admin/Groupware.php13
-rw-r--r--apps/settings/lib/Sections/Admin/Overview.php13
-rw-r--r--apps/settings/lib/Sections/Admin/Security.php13
-rw-r--r--apps/settings/lib/Sections/Admin/Server.php13
-rw-r--r--apps/settings/lib/Sections/Admin/Sharing.php13
-rw-r--r--apps/settings/lib/Sections/Personal/Availability.php13
-rw-r--r--apps/settings/lib/Sections/Personal/Calendar.php10
-rw-r--r--apps/settings/lib/Sections/Personal/PersonalInfo.php13
-rw-r--r--apps/settings/lib/Sections/Personal/Security.php13
-rw-r--r--apps/settings/lib/Sections/Personal/SyncClients.php13
13 files changed, 52 insertions, 113 deletions
diff --git a/apps/settings/lib/Sections/Admin/Additional.php b/apps/settings/lib/Sections/Admin/Additional.php
index 19ae2b43f95..0d83a98bbe5 100644
--- a/apps/settings/lib/Sections/Admin/Additional.php
+++ b/apps/settings/lib/Sections/Admin/Additional.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class Additional implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Admin/ArtificialIntelligence.php b/apps/settings/lib/Sections/Admin/ArtificialIntelligence.php
index adfcc08c4d4..ab43dfd2eef 100644
--- a/apps/settings/lib/Sections/Admin/ArtificialIntelligence.php
+++ b/apps/settings/lib/Sections/Admin/ArtificialIntelligence.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class ArtificialIntelligence implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Admin/Delegation.php b/apps/settings/lib/Sections/Admin/Delegation.php
index cc8aa3e3e84..2a455f1e549 100644
--- a/apps/settings/lib/Sections/Admin/Delegation.php
+++ b/apps/settings/lib/Sections/Admin/Delegation.php
@@ -11,18 +11,14 @@ use OCP\IURLGenerator;
use OCP\Settings\IIconSection;
class Delegation 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,
+ ) {
}
/**
diff --git a/apps/settings/lib/Sections/Admin/Groupware.php b/apps/settings/lib/Sections/Admin/Groupware.php
index ed790f00fe5..57d92b9cc72 100644
--- a/apps/settings/lib/Sections/Admin/Groupware.php
+++ b/apps/settings/lib/Sections/Admin/Groupware.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class Groupware implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Admin/Overview.php b/apps/settings/lib/Sections/Admin/Overview.php
index 518042b4380..0145a2eca93 100644
--- a/apps/settings/lib/Sections/Admin/Overview.php
+++ b/apps/settings/lib/Sections/Admin/Overview.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class Overview implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Admin/Security.php b/apps/settings/lib/Sections/Admin/Security.php
index 2eb1dd73715..10027be32fb 100644
--- a/apps/settings/lib/Sections/Admin/Security.php
+++ b/apps/settings/lib/Sections/Admin/Security.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class Security implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Admin/Server.php b/apps/settings/lib/Sections/Admin/Server.php
index 9eb3d103b74..c6a02efa4e3 100644
--- a/apps/settings/lib/Sections/Admin/Server.php
+++ b/apps/settings/lib/Sections/Admin/Server.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class Server implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Admin/Sharing.php b/apps/settings/lib/Sections/Admin/Sharing.php
index c15a0ff43a3..c7598bb1157 100644
--- a/apps/settings/lib/Sections/Admin/Sharing.php
+++ b/apps/settings/lib/Sections/Admin/Sharing.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class Sharing implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Personal/Availability.php b/apps/settings/lib/Sections/Personal/Availability.php
index a6b8878733e..e12e41ea800 100644
--- a/apps/settings/lib/Sections/Personal/Availability.php
+++ b/apps/settings/lib/Sections/Personal/Availability.php
@@ -15,15 +15,10 @@ use OCP\Settings\IIconSection;
class Availability implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Personal/Calendar.php b/apps/settings/lib/Sections/Personal/Calendar.php
index 32c99ad9c7b..602b7598f15 100644
--- a/apps/settings/lib/Sections/Personal/Calendar.php
+++ b/apps/settings/lib/Sections/Personal/Calendar.php
@@ -15,12 +15,10 @@ use OCP\Settings\IIconSection;
class Calendar implements IIconSection {
- private IL10N $l;
- private IURLGenerator $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon(): string {
diff --git a/apps/settings/lib/Sections/Personal/PersonalInfo.php b/apps/settings/lib/Sections/Personal/PersonalInfo.php
index 9729e1ffa38..35c3e6d2926 100644
--- a/apps/settings/lib/Sections/Personal/PersonalInfo.php
+++ b/apps/settings/lib/Sections/Personal/PersonalInfo.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class PersonalInfo implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon() {
diff --git a/apps/settings/lib/Sections/Personal/Security.php b/apps/settings/lib/Sections/Personal/Security.php
index 7b9423c5602..d7eb65724ec 100644
--- a/apps/settings/lib/Sections/Personal/Security.php
+++ b/apps/settings/lib/Sections/Personal/Security.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class Security implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon() {
diff --git a/apps/settings/lib/Sections/Personal/SyncClients.php b/apps/settings/lib/Sections/Personal/SyncClients.php
index 5e55c6a3b6b..3f221956f0c 100644
--- a/apps/settings/lib/Sections/Personal/SyncClients.php
+++ b/apps/settings/lib/Sections/Personal/SyncClients.php
@@ -14,15 +14,10 @@ use OCP\Settings\IIconSection;
class SyncClients implements IIconSection {
- /** @var IL10N */
- private $l;
-
- /** @var IURLGenerator */
- private $urlGenerator;
-
- public function __construct(IL10N $l, IURLGenerator $urlGenerator) {
- $this->l = $l;
- $this->urlGenerator = $urlGenerator;
+ public function __construct(
+ private IL10N $l,
+ private IURLGenerator $urlGenerator,
+ ) {
}
public function getIcon() {