add constructor property promotion

add return type of methods
This commit is contained in:
Simon Vieille 2024-06-27 20:27:31 +02:00
commit 7c5654f3bc
Signed by untrusted user: deblan
GPG key ID: 579388D585F70417
14 changed files with 77 additions and 387 deletions

View file

@ -32,32 +32,14 @@ use OCP\L10N\IFactory;
class JsController extends Controller
{
/**
* @var ConfigProxy
*/
protected $config;
/**
* @var User
*/
protected $user;
/**
* @var ThemingDefaults
*/
protected $themingDefaults;
/**
* @var IFactory
*/
protected $l10nFactory;
protected ?User $user;
public function __construct(
string $appName,
IRequest $request,
ConfigProxy $config,
ThemingDefaults $themingDefaults,
IFactory $l10nFactory
protected ConfigProxy $config,
protected ThemingDefaults $themingDefaults,
protected IFactory $l10nFactory
) {
parent::__construct($appName, $request);