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/harbormaster
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
..
__tests__ As Harbormaster logs are processed, build a sparse map of byte offsets to line numbers 2018-02-26 17:56:52 -08:00
application Show more in Application Detail and List view 2023-11-21 11:22:23 -07:00
artifact Remove product literal strings in "pht()", part 19 2022-04-25 16:46:25 -07:00
autoplan Give "Arcanist Client Results" a more clear name 2015-09-09 19:18:08 -07:00
capability Add spelling TODOs 2017-10-09 11:56:53 -07:00
codex Make the new Build Plan "Runnable" behavior work 2019-03-06 06:01:02 -08:00
conduit Allow "harbormaster.sendmessage" to send control command (pause, restart, abort, resume) to Builds/Buildables 2021-07-21 14:17:00 -07:00
constants Modularize almost all Harbormaster build message workflows and UI/UX 2021-07-21 14:16:56 -07:00
controller Fix PHP 8.1 "strlen(null)" exception adding a "Drydock: Run Command" build step in Harbormaster 2023-08-11 21:01:39 +02:00
customfield Remove product literal strings in "pht()", part 19 2022-04-25 16:46:25 -07:00
editor Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
engine Modularize individual Harbormaster build messages 2021-07-21 14:16:56 -07:00
engineextension Subsume 'harbormaster.querybuilds' with a modern search API method 2016-07-31 21:44:22 +00:00
event Reduce the severity of policy fatals when building the Harbormaster "build status" element 2018-03-16 13:27:57 -07:00
exception Rename "HarbormasterRestartException" to "HarbormasterMessageException" 2021-07-21 14:17:00 -07:00
future Update some Phabricator behaviors for changes to Futures 2020-04-03 12:28:16 -07:00
herald Don't present users with Herald fields/actions for uninstalled applications, unless the rule already uses them 2019-09-12 14:33:28 -07:00
integration Add HarbormasterHookController as an entry point for all Harbormaster hooks 2021-06-21 10:48:30 +00:00
interface When publishing buildables in Differential, ignore autobuilds (local lint and unit) 2018-04-03 11:02:12 -07:00
management Rename "HarbormasterRestartException" to "HarbormasterMessageException" 2021-07-21 14:17:00 -07:00
phid Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
plan Explain the relationship between "Runnable" and "Restartable" more clearly in Build Plans 2019-03-25 11:24:04 -07:00
query Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
remarkup Rename PhutilRemarkupRule subclasses 2014-08-05 00:55:43 +10:00
step Merge Phacility/master into phorge 2022-07-25 11:50:26 -07:00
stepgroup Add an "Abort Older Builds" build step to Harbormaster 2018-04-17 14:59:47 -07:00
storage Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error 2023-07-29 13:04:11 +01:00
typeahead Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
view Make "DifferentialDiff->properties" a proper "attachable" property 2021-07-27 13:39:12 -07:00
worker Stop build target start times from being overwritten on reentry 2018-04-27 12:25:45 -07:00
xaction Correct spelling mistakes 2023-05-27 22:19:06 +01:00