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/drydock
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 Add Drydock logs to the RepositoryOperation UI 2018-09-15 07:56:35 -07:00
blueprint Remove the "25% of active pool" growth rate throttle from Drydock 2022-05-09 10:40:08 -07:00
capability Give Drydock resources a proper expiry mechanism 2015-09-28 09:35:14 -07:00
conduit Implement "drydock.resource.search" 2019-08-20 13:07:07 -07:00
constants Give Drydock Resources more modern status treatment 2018-02-13 13:16:46 -08:00
controller Move existing "Console" interfaces away from "setFixed(...)" on "TwoColumnView" 2020-02-04 06:52:23 -08:00
customfield Convert DrydockBlueprints to EditEngine 2016-03-03 15:21:25 -08:00
editor Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
exception Lock resources briefly while acquiring leases on them to prevent acquiring near-death resources 2018-02-13 13:22:13 -08:00
garbagecollector Provide bin/garbage for interacting with garbage collection 2015-10-02 09:17:24 -07:00
interface Use "LogLevel=ERROR" to try to improve "ssh" hostkey behavior without doing anything extreme/hacky 2019-03-04 09:38:00 -08:00
logtype Formalize some more Drydock conditions and bookkeeping 2022-05-09 10:40:08 -07:00
management Add "--all" flags to "release-lease" and "release-resource" workflows in "bin/drydock" 2022-05-09 10:40:08 -07:00
operation Remove product literal strings in "pht()", part 19 2022-04-25 16:46:25 -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
storage Formalize some more Drydock conditions and bookkeeping 2022-05-09 10:40:08 -07:00
typeahead Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
view Write a trivial log when starting a repository operation 2018-09-15 07:57:11 -07:00
worker In Drydock, yield for reclaiming resources in the "released" state 2022-05-09 10:45:35 -07:00
xaction Allow "drydock.blueprint.edit" to create blueprints 2018-01-04 10:08:07 -08:00