1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-08 21:08:29 +01:00
phorge-phorge/src/applications/owners
Andre Klapper 25aebab655 Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string
Summary:
`::class` is available since PHP 5.5 (5.5 is a minimal requirement by Phorge): https://www.php.net/manual/en/language.oop5.basic.php#language.oop5.basic.class.class
It makes finding code using IDEs easier; see discussion in D25500.

Thus replace all string return values with returning the `::class` constant instead, with one exception: 'PhabricatorSettingApplication' in `PhabricatorUserPreferencesSearchEngine.php` does not exist and makes arc lint fail so this string remained unchanged.

Also note that two occurrences were wrapped in `pht()` for reasons I do not know.

List of functions whose return value get updated in this code change:
* getApplicationClassName()
* getAdapterApplicationClass()
* getDatasourceApplicationClass()
* getEditorApplicationClass()
* getEngineApplicationClass()
* getPHIDTypeApplicationClass()
* getQueryApplicationClass()

cf. T15158

Test Plan: Too broad - click around, basically.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15158

Differential Revision: https://we.phorge.it/D25524
2024-02-05 14:11:36 +01:00
..
application Show more in Application Detail and List view 2023-11-21 11:22:23 -07:00
capability Give Owners real view and edit policies 2016-02-15 11:56:35 -08:00
conduit Remove obsolete, policy-violating "owners.query" API method 2022-05-31 10:44:45 -07:00
config Remove "metamta.*.subject-prefix" options 2019-01-17 19:18:50 -08:00
constants Support a wider range of "Audit" rules for Owners packages 2019-02-07 15:39:39 -08:00
controller Add an "Authority" control to Packages to support "Watcher" packages 2021-06-25 13:48:46 -07:00
customfield Fix errors found by PHPStan 2017-02-17 10:10:15 +00:00
editor Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
engineextension Treat Owners paths like "/src/backend" and "/src/backend/" identically 2018-03-06 20:31:46 -08:00
lipsum Add an owners package generator for Lipsum 2017-02-27 09:11:04 -08:00
mail Build separate mail for each recipient, honoring recipient access levels 2015-06-03 18:59:31 -07:00
phid Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
query Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
remarkup Give Owners packages the "O" monogram 2016-05-13 17:18:15 -07:00
search Support Ferret engine in Owners 2017-09-07 13:23:46 -07:00
searchfield Flesh out Conduit parmeter types for maniphest.search 2015-12-14 04:24:01 -08:00
storage Remove the "Releeph" application 2022-04-25 16:46:27 -07:00
typeahead Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
xaction Add an "Authority" control to Packages to support "Watcher" packages 2021-06-25 13:48:46 -07:00