aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/lib/Sections/Personal
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/lib/Sections/Personal')
-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
5 files changed, 20 insertions, 42 deletions
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() {