summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-17 17:16:50 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-08-17 17:46:57 +0200
commitd7f66c36acef9334e3c9ecf750cae5bfc2f206d8 (patch)
tree4896ad25898411bfd2268b188743bf6bf3d5fd31 /apps
parent00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce (diff)
downloadnextcloud-server-d7f66c36acef9334e3c9ecf750cae5bfc2f206d8.tar.gz
nextcloud-server-d7f66c36acef9334e3c9ecf750cae5bfc2f206d8.zip
Fix "misplaced variables" warning of Psalm in PHPDoc statements
Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/lib/Service/GlobalStoragesService.php2
-rw-r--r--apps/files_sharing/templates/public.php2
-rw-r--r--apps/files_trashbin/templates/index.php2
-rw-r--r--apps/settings/lib/Search/AppSearch.php1
-rw-r--r--apps/user_ldap/templates/renewpassword.php2
5 files changed, 4 insertions, 5 deletions
diff --git a/apps/files_external/lib/Service/GlobalStoragesService.php b/apps/files_external/lib/Service/GlobalStoragesService.php
index 2905e08883e..3ef6fd798d4 100644
--- a/apps/files_external/lib/Service/GlobalStoragesService.php
+++ b/apps/files_external/lib/Service/GlobalStoragesService.php
@@ -167,7 +167,7 @@ class GlobalStoragesService extends StoragesService {
/**
* Get all configured admin and personal mounts
*
- * @return array map of storage id to storage config
+ * @return StorageConfig[] map of storage id to storage config
*/
public function getStorageForAllUsers() {
$mounts = $this->dbConfig->getAllMounts();
diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php
index bdd3e8399ea..82544385dec 100644
--- a/apps/files_sharing/templates/public.php
+++ b/apps/files_sharing/templates/public.php
@@ -1,5 +1,5 @@
<?php
-/** @var \OCP\IL10N $_ */
+/** @var \OCP\IL10N $l */
/** @var array $_ */
?>
<div id="app-content">
diff --git a/apps/files_trashbin/templates/index.php b/apps/files_trashbin/templates/index.php
index 2bf4be54f6a..6d375b699f3 100644
--- a/apps/files_trashbin/templates/index.php
+++ b/apps/files_trashbin/templates/index.php
@@ -1,4 +1,4 @@
-<?php /** @var $l \OCP\IL10N */ ?>
+<?php /** @var \OCP\IL10N $l */ ?>
<div id="controls">
<div id="file_action_panel"></div>
</div>
diff --git a/apps/settings/lib/Search/AppSearch.php b/apps/settings/lib/Search/AppSearch.php
index 393f63a9e81..849bac0f730 100644
--- a/apps/settings/lib/Search/AppSearch.php
+++ b/apps/settings/lib/Search/AppSearch.php
@@ -70,7 +70,6 @@ class AppSearch implements IProvider {
* @inheritDoc
*/
public function search(IUser $user, ISearchQuery $query): SearchResult {
- /** @var $entries */
$entries = $this->navigationManager->getAll('all');
$result = [];
diff --git a/apps/user_ldap/templates/renewpassword.php b/apps/user_ldap/templates/renewpassword.php
index c3ea94fbf02..dca7a459c83 100644
--- a/apps/user_ldap/templates/renewpassword.php
+++ b/apps/user_ldap/templates/renewpassword.php
@@ -1,4 +1,4 @@
-<?php /** @var $l OC_L10N */ ?>
+<?php /** @var \OCP\IL10N $l */ ?>
<?php
script('user_ldap', [
'renewPassword',