1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-03-12 04:15:00 +01:00
phorge-phorge/src/applications/nuance
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 Mark "Settings" and "Nuance" as launchable applications 2017-06-01 12:40:25 -07:00
capability Simplify the implementation of PhabricatorPolicyCapability subclasses 2014-07-25 08:25:42 +10:00
command Allow Nuance commands to try to apply immediately 2017-05-26 08:36:21 -07:00
conduit Import raw GitHub event data into Nuance 2016-03-08 12:03:11 -08:00
contentsource Add a Nuance content source, and make use of it 2016-03-28 12:47:05 -07:00
controller Allow Nuance commands to try to apply immediately 2017-05-26 08:36:21 -07:00
cursor Fix a handful of Nuance fatals 2017-05-24 11:02:55 -07:00
editor Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
github Fix some test suite stragglers with PHP 8.1 compatibility 2022-05-19 12:04:09 -07:00
item Explicitly add rel="noreferrer" to all external links 2018-02-17 17:46:11 -08:00
management Split the GitHub import cursor into separate repository and issues event importers 2016-03-09 09:27:19 -08: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
source Remove product literal strings in "pht()", part 7 2022-04-25 12:22:28 -07:00
storage Remove "getApplicationTransactionObject()" from ApplicationTransactionInterface 2018-12-20 15:16:19 -08:00
typeahead Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
worker Allow Nuance commands to try to apply immediately 2017-05-26 08:36:21 -07:00
xaction Make throwing things into the trash actually work in Nuance 2017-05-24 11:05:30 -07:00