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/dashboard
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
conduit Add skeleton for Portals, a collection of dashboards and other resources 2019-04-02 14:42:26 -07:00
constants Add skeleton for Portals, a collection of dashboards and other resources 2019-04-02 14:42:26 -07:00
controller Various PHP 8.1 strlen(null) fixes for Dashboard Panels 2023-09-05 17:33:11 +01:00
editfield Rebuild query panels on top of EditEngine 2019-04-09 14:08:41 -07:00
editor Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
engine Various PHP 8.1 strlen(null) fixes for Dashboard Panels 2023-09-05 17:33:11 +01:00
engineextension On panel pages, show where panels are used 2019-04-12 06:14:21 -07:00
icon Add some new Dashboard icons 2017-03-21 11:00:16 -07:00
install Fix PHP 8.1 "strlen(null)" exceptions which block adding Dashboard to Project Menu 2023-05-06 04:04:20 +02:00
interface On panel pages, show where panels are used 2019-04-12 06:14:21 -07:00
layoutconfig Fix the "Add Query to Dashboard..." flow from "Use Results" on search result pages 2019-04-17 12:18:52 -07:00
menuitem Update all existing ProfileMenuItems for the more-structured API 2019-04-02 15:20:39 -07:00
paneltype Dashboard Panel: fix first tab sometime not opened anymore 2023-10-16 08:44:45 +02: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 Allow users who can edit a dashboard to remove invalid / restricted panels 2017-02-04 16:33:47 -08:00
storage Remove product literal strings in "pht()", part 17 2022-04-25 16:46:25 -07:00
typeahead Make misc get*ApplicationClass[Name]() calls return ::class constant instead of string 2024-02-05 14:11:36 +01:00
xaction Surface edits to "Text" panels on dashboards as remarkup edits 2019-11-13 10:35:09 -08:00