Skip to content
Snippets Groups Projects
Commit f8d19965 authored by Nikita Hovratov's avatar Nikita Hovratov Committed by Christian Kuhn
Browse files

[TASK] Streamline LinkBrowser controller

- Use native typehints instead of doctype
- Add return types
- Use strict types
- Use DI: abstract class uses inject* methods,
  inheriting classes use constructor DI
- Improve array annotations for phpstan level 6
  (not yet detected)
- Remove method comments with no added value
- Use str_starts_with
- Move abstract and public methods to the top

Some minor refactorings along the way:
Get "richtextConfiguration" directly from parameters
array in BrowseLinksController.

Resolves: #96763
Releases: main
Change-Id: I547b50617a080e988b2b69417f0d5bce5ed98c62
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73323


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 8114a5ed
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment