/**
* 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();
<?php
-/** @var \OCP\IL10N $_ */
+/** @var \OCP\IL10N $l */
/** @var array $_ */
?>
<div id="app-content">
-<?php /** @var $l \OCP\IL10N */ ?>
+<?php /** @var \OCP\IL10N $l */ ?>
<div id="controls">
<div id="file_action_panel"></div>
</div>
* @inheritDoc
*/
public function search(IUser $user, ISearchQuery $query): SearchResult {
- /** @var $entries */
$entries = $this->navigationManager->getAll('all');
$result = [];
-<?php /** @var $l OC_L10N */ ?>
+<?php /** @var \OCP\IL10N $l */ ?>
<?php
script('user_ldap', [
'renewPassword',
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>');
*
*/
-/** @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()));
<?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';
-<?php /** @var $l \OCP\IL10N */ ?>
+<?php /** @var \OCP\IL10N $l */ ?>
<?php
script('core', 'dist/login');
?>
<?php
- /** @var $_ array */
- /** @var $l \OCP\IL10N */
+ /** @var array $_ */
+ /** @var \OCP\IL10N $l */
style('core', 'guest');
style('core', 'publicshareauth');
script('core', 'publicshareauth');
<?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'];
?>
<?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'];
-<?php /** @var $_ array */ ?>
+<?php /** @var array $_ */ ?>
<div class="error">
<h2><?php p($l->t('Access through untrusted domain')); ?></h2>
$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());
}
$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());
continue;
}
- /** @var $provider IProvider */
if ($provider->isAvailable($file)) {
return true;
}
* Provide an interface to all search providers
*/
class Search implements ISearch {
+ /** @var Provider[] */
private $providers = [];
private $registeredProviders = [];
$this->initProviders();
$results = [];
foreach ($this->providers as $provider) {
- /** @var $provider Provider */
if (! $provider->providesResultsFor($inApps)) {
continue;
}
$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 */
$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;
}