Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-08-17 18:16:50 +0300
committerMorris Jobke <hey@morrisjobke.de>2020-08-17 18:46:57 +0300
commitd7f66c36acef9334e3c9ecf750cae5bfc2f206d8 (patch)
tree4896ad25898411bfd2268b188743bf6bf3d5fd31 /core/templates
parent00cb8e6c54d8f2a26c5770fef5fe4ae1e366d0ce (diff)
Fix "misplaced variables" warning of Psalm in PHPDoc statements
Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core/templates')
-rw-r--r--core/templates/404.php6
-rw-r--r--core/templates/login.php2
-rw-r--r--core/templates/publicshareauth.php4
-rw-r--r--core/templates/twofactorsetupchallenge.php8
-rw-r--r--core/templates/twofactorshowchallenge.php6
-rw-r--r--core/templates/untrustedDomain.php2
6 files changed, 14 insertions, 14 deletions
diff --git a/core/templates/404.php b/core/templates/404.php
index 85ddb4c4b17..10c49f34b6c 100644
--- a/core/templates/404.php
+++ b/core/templates/404.php
@@ -1,7 +1,7 @@
<?php
-/** @var $_ array */
-/** @var $l \OCP\IL10N */
-/** @var $theme OCP\Defaults */
+/** @var array $_ */
+/** @var \OCP\IL10N $l */
+/** @var \OCP\Defaults $theme */
// @codeCoverageIgnoreStart
if (!isset($_)) {//standalone page is not supported anymore - redirect to /
require_once '../../lib/base.php';
diff --git a/core/templates/login.php b/core/templates/login.php
index 124a62f0646..4dc5e41f917 100644
--- a/core/templates/login.php
+++ b/core/templates/login.php
@@ -1,4 +1,4 @@
-<?php /** @var $l \OCP\IL10N */ ?>
+<?php /** @var \OCP\IL10N $l */ ?>
<?php
script('core', 'dist/login');
?>
diff --git a/core/templates/publicshareauth.php b/core/templates/publicshareauth.php
index 22e22622291..96c5bc89111 100644
--- a/core/templates/publicshareauth.php
+++ b/core/templates/publicshareauth.php
@@ -1,6 +1,6 @@
<?php
- /** @var $_ array */
- /** @var $l \OCP\IL10N */
+ /** @var array $_ */
+ /** @var \OCP\IL10N $l */
style('core', 'guest');
style('core', 'publicshareauth');
script('core', 'publicshareauth');
diff --git a/core/templates/twofactorsetupchallenge.php b/core/templates/twofactorsetupchallenge.php
index a5b8b44f049..ea6a1e62f6e 100644
--- a/core/templates/twofactorsetupchallenge.php
+++ b/core/templates/twofactorsetupchallenge.php
@@ -1,9 +1,9 @@
<?php
-/** @var $l \OCP\IL10N */
-/** @var $_ array */
-/* @var $provider OCP\Authentication\TwoFactorAuth\IProvider */
+/** @var \OCP\IL10N $l */
+/** @var array $_ */
+/** @var \OCP\Authentication\TwoFactorAuth\IProvider $provider */
$provider = $_['provider'];
-/* @var $template string */
+/* @var string $template */
$template = $_['template'];
?>
diff --git a/core/templates/twofactorshowchallenge.php b/core/templates/twofactorshowchallenge.php
index 481cea06eb0..9be36fe13a2 100644
--- a/core/templates/twofactorshowchallenge.php
+++ b/core/templates/twofactorshowchallenge.php
@@ -1,7 +1,7 @@
<?php
-/** @var $l \OCP\IL10N */
-/** @var $_ array */
-/* @var $error boolean */
+/** @var \OCP\IL10N $l */
+/** @var array $_*/
+/** @var boolean $error */
$error = $_['error'];
/* @var $error_message string */
$error_message = $_['error_message'];
diff --git a/core/templates/untrustedDomain.php b/core/templates/untrustedDomain.php
index 7de4ff78f30..75054106ab2 100644
--- a/core/templates/untrustedDomain.php
+++ b/core/templates/untrustedDomain.php
@@ -1,4 +1,4 @@
-<?php /** @var $_ array */ ?>
+<?php /** @var array $_ */ ?>
<div class="error">
<h2><?php p($l->t('Access through untrusted domain')); ?></h2>