diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-04 23:20:35 +0330 |
---|---|---|
committer | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-04 23:20:35 +0330 |
commit | 450bf5c99e633ab164ecb420d6f5b8660b150238 (patch) | |
tree | fef869df8664164c6123c9f3b1e85543ef8d6faf /core/Controller/CssController.php | |
parent | cf75c2eaae82b58f5d1bd2cc765b31d5106eeafb (diff) | |
download | nextcloud-server-450bf5c99e633ab164ecb420d6f5b8660b150238.tar.gz nextcloud-server-450bf5c99e633ab164ecb420d6f5b8660b150238.zip |
Refactors controllers by using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'core/Controller/CssController.php')
-rw-r--r-- | core/Controller/CssController.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/Controller/CssController.php b/core/Controller/CssController.php index 792be71f9e1..c992009f497 100644 --- a/core/Controller/CssController.php +++ b/core/Controller/CssController.php @@ -45,16 +45,14 @@ use OCP\IRequest; class CssController extends Controller { protected IAppData $appData; - protected ITimeFactory $timeFactory; public function __construct(string $appName, IRequest $request, Factory $appDataFactory, - ITimeFactory $timeFactory) { + protected ITimeFactory $timeFactory) { parent::__construct($appName, $request); $this->appData = $appDataFactory->get('css'); - $this->timeFactory = $timeFactory; } /** |