aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-07-10 14:13:29 +0200
committerJulius Härtl <jus@bitgrid.net>2020-07-15 09:28:12 +0200
commit35bdb998ef7bc1a52c8cd3a28ee727f874dde557 (patch)
treedd03c4d07746d4b52e466bc5a2e006d573f78cf4
parente6fb1b9878c2981c5bf5526a4d4e83aae77f436d (diff)
downloadnextcloud-server-35bdb998ef7bc1a52c8cd3a28ee727f874dde557.tar.gz
nextcloud-server-35bdb998ef7bc1a52c8cd3a28ee727f874dde557.zip
Dashboard strict typing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-rw-r--r--apps/dashboard/appinfo/routes.php3
-rw-r--r--apps/dashboard/lib/Controller/DashboardController.php5
-rw-r--r--lib/private/Dashboard/Manager.php3
-rw-r--r--lib/public/Dashboard/IManager.php3
-rw-r--r--lib/public/Dashboard/IPanel.php3
-rw-r--r--lib/public/Dashboard/RegisterPanelEvent.php3
6 files changed, 19 insertions, 1 deletions
diff --git a/apps/dashboard/appinfo/routes.php b/apps/dashboard/appinfo/routes.php
index 5ad8e9073d0..34792a9d47d 100644
--- a/apps/dashboard/appinfo/routes.php
+++ b/apps/dashboard/appinfo/routes.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
diff --git a/apps/dashboard/lib/Controller/DashboardController.php b/apps/dashboard/lib/Controller/DashboardController.php
index f753ad06f82..687fbace380 100644
--- a/apps/dashboard/lib/Controller/DashboardController.php
+++ b/apps/dashboard/lib/Controller/DashboardController.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
@@ -43,7 +46,7 @@ class DashboardController extends Controller {
private $dashboardManager;
public function __construct(
- $appName,
+ string $appName,
IRequest $request,
IInitialStateService $initialStateService,
IEventDispatcher $eventDispatcher,
diff --git a/lib/private/Dashboard/Manager.php b/lib/private/Dashboard/Manager.php
index c9185e0b832..0c285a8b53d 100644
--- a/lib/private/Dashboard/Manager.php
+++ b/lib/private/Dashboard/Manager.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
diff --git a/lib/public/Dashboard/IManager.php b/lib/public/Dashboard/IManager.php
index 51ee7d2fbe5..985c8c7838f 100644
--- a/lib/public/Dashboard/IManager.php
+++ b/lib/public/Dashboard/IManager.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
diff --git a/lib/public/Dashboard/IPanel.php b/lib/public/Dashboard/IPanel.php
index 78c7d09c009..59d88f7a7e9 100644
--- a/lib/public/Dashboard/IPanel.php
+++ b/lib/public/Dashboard/IPanel.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*
diff --git a/lib/public/Dashboard/RegisterPanelEvent.php b/lib/public/Dashboard/RegisterPanelEvent.php
index bc0028d5c0c..2bd157127fd 100644
--- a/lib/public/Dashboard/RegisterPanelEvent.php
+++ b/lib/public/Dashboard/RegisterPanelEvent.php
@@ -1,4 +1,7 @@
<?php
+
+declare(strict_types=1);
+
/**
* @copyright Copyright (c) 2020 Julius Härtl <jus@bitgrid.net>
*