Fix "misplaced variables" warning of Psalm in PHPDoc statements
Ref #21787 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
00cb8e6c54
commit
d7f66c36ac
|
@ -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();
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
/** @var \OCP\IL10N $_ */
|
||||
/** @var \OCP\IL10N $l */
|
||||
/** @var array $_ */
|
||||
?>
|
||||
<div id="app-content">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /** @var $l \OCP\IL10N */ ?>
|
||||
<?php /** @var \OCP\IL10N $l */ ?>
|
||||
<div id="controls">
|
||||
<div id="file_action_panel"></div>
|
||||
</div>
|
||||
|
|
|
@ -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 = [];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /** @var $l OC_L10N */ ?>
|
||||
<?php /** @var \OCP\IL10N $l */ ?>
|
||||
<?php
|
||||
script('user_ldap', [
|
||||
'renewPassword',
|
||||
|
|
|
@ -70,7 +70,6 @@ class ResetPassword extends Command {
|
|||
protected function execute(InputInterface $input, OutputInterface $output): int {
|
||||
$username = $input->getArgument('user');
|
||||
|
||||
/** @var $user \OCP\IUser */
|
||||
$user = $this->userManager->get($username);
|
||||
if (is_null($user)) {
|
||||
$output->writeln('<error>User does not exist</error>');
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
*
|
||||
*/
|
||||
|
||||
/** @var $application Symfony\Component\Console\Application */
|
||||
/** @var Symfony\Component\Console\Application $application */
|
||||
$application->add(new \Stecman\Component\Symfony\Console\BashCompletion\CompletionCommand());
|
||||
$application->add(new OC\Core\Command\Status);
|
||||
$application->add(new OC\Core\Command\Check(\OC::$server->getSystemConfig()));
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /** @var $l \OCP\IL10N */ ?>
|
||||
<?php /** @var \OCP\IL10N $l */ ?>
|
||||
<?php
|
||||
script('core', 'dist/login');
|
||||
?>
|
||||
|
|
|
@ -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');
|
||||
|
|
|
@ -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'];
|
||||
?>
|
||||
|
||||
|
|
|
@ -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'];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<?php /** @var $_ array */ ?>
|
||||
<?php /** @var array $_ */ ?>
|
||||
|
||||
<div class="error">
|
||||
<h2><?php p($l->t('Access through untrusted domain')); ?></h2>
|
||||
|
|
|
@ -145,7 +145,6 @@ class MDB2SchemaManager {
|
|||
$toSchema = new Schema([], [], $this->conn->getSchemaManager()->createSchemaConfig());
|
||||
$fromSchema = $schemaReader->loadSchemaFromFile($file, $toSchema);
|
||||
$toSchema = clone $fromSchema;
|
||||
/** @var $table \Doctrine\DBAL\Schema\Table */
|
||||
foreach ($toSchema->getTables() as $table) {
|
||||
$toSchema->dropTable($table->getName());
|
||||
}
|
||||
|
|
|
@ -226,7 +226,6 @@ class Migrator {
|
|||
$sourceSchema = $connection->getSchemaManager()->createSchema();
|
||||
|
||||
// remove tables we don't know about
|
||||
/** @var $table \Doctrine\DBAL\Schema\Table */
|
||||
foreach ($sourceSchema->getTables() as $table) {
|
||||
if (!$targetSchema->hasTable($table->getName())) {
|
||||
$sourceSchema->dropTable($table->getName());
|
||||
|
|
|
@ -261,7 +261,6 @@ class PreviewManager implements IPreview {
|
|||
continue;
|
||||
}
|
||||
|
||||
/** @var $provider IProvider */
|
||||
if ($provider->isAvailable($file)) {
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -36,6 +36,7 @@ use OCP\Search\Provider;
|
|||
* Provide an interface to all search providers
|
||||
*/
|
||||
class Search implements ISearch {
|
||||
/** @var Provider[] */
|
||||
private $providers = [];
|
||||
private $registeredProviders = [];
|
||||
|
||||
|
@ -51,7 +52,6 @@ class Search implements ISearch {
|
|||
$this->initProviders();
|
||||
$results = [];
|
||||
foreach ($this->providers as $provider) {
|
||||
/** @var $provider Provider */
|
||||
if (! $provider->providesResultsFor($inApps)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -580,7 +580,7 @@ class Server extends ServerContainer implements IServerContainer {
|
|||
$dispatcher->dispatchTyped(new BeforeUserLoggedInWithCookieEvent($uid));
|
||||
});
|
||||
$userSession->listen('\OC\User', 'postRememberedLogin', function ($user, $password) {
|
||||
/** @var $user \OC\User\User */
|
||||
/** @var \OC\User\User $user */
|
||||
\OC_Hook::emit('OC_User', 'post_login', ['run' => true, 'uid' => $user->getUID(), 'password' => $password]);
|
||||
|
||||
/** @var IEventDispatcher $dispatcher */
|
||||
|
|
|
@ -555,16 +555,16 @@ class OC_Util {
|
|||
|
||||
$timestamp = filemtime(OC::$SERVERROOT . '/version.php');
|
||||
require OC::$SERVERROOT . '/version.php';
|
||||
/** @var $timestamp int */
|
||||
/** @var int $timestamp */
|
||||
self::$versionCache['OC_Version_Timestamp'] = $timestamp;
|
||||
/** @var $OC_Version string */
|
||||
/** @var string $OC_Version */
|
||||
self::$versionCache['OC_Version'] = $OC_Version;
|
||||
/** @var $OC_VersionString string */
|
||||
/** @var string $OC_VersionString */
|
||||
self::$versionCache['OC_VersionString'] = $OC_VersionString;
|
||||
/** @var $OC_Build string */
|
||||
/** @var string $OC_Build */
|
||||
self::$versionCache['OC_Build'] = $OC_Build;
|
||||
|
||||
/** @var $OC_Channel string */
|
||||
/** @var string $OC_Channel */
|
||||
self::$versionCache['OC_Channel'] = $OC_Channel;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue