nextcloud/apps/files_external/lib/Config/UserPlaceholderHandler.php
Ferdinand Thiessen d8e8703796
chore: add missing Override attribute to app code
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:28 +02:00

28 lines
633 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Files_External\Config;
class UserPlaceholderHandler extends UserContext implements IConfigHandler {
use SimpleSubstitutionTrait;
/**
* @param mixed $optionValue
* @return mixed the same type as $optionValue
* @since 16.0.0
*/
#[\Override]
public function handle($optionValue) {
$this->placeholder = 'user';
$uid = $this->getUserId();
if ($uid === null) {
return $optionValue;
}
return $this->processInput($optionValue, $uid);
}
}