mirror of
https://github.com/friendica/friendica
synced 2025-04-27 02:30:10 +00:00
Rename method names in AddonHelper
This commit is contained in:
parent
bc6145c684
commit
04df082d4e
5 changed files with 11 additions and 11 deletions
|
@ -17,19 +17,19 @@ interface AddonHelper
|
|||
/**
|
||||
* Checks if the provided addon is enabled
|
||||
*/
|
||||
public function isEnabled(string $addonId): bool;
|
||||
public function isAddonEnabled(string $addonId): bool;
|
||||
|
||||
/**
|
||||
* Returns a list with the IDs of the enabled addons
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getEnabledList(): array;
|
||||
public function getEnabledAddons(): array;
|
||||
|
||||
/**
|
||||
* Returns the list of the IDs of the non-hidden enabled addons
|
||||
* Returns a list with the IDs of the non-hidden enabled addons
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public static function getVisibleList(): array;
|
||||
public static function getVisibleEnabledAddons(): array;
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ final class AddonProxy implements AddonHelper
|
|||
/**
|
||||
* Checks if the provided addon is enabled
|
||||
*/
|
||||
public function isEnabled(string $addonId): bool
|
||||
public function isAddonEnabled(string $addonId): bool
|
||||
{
|
||||
return Addon::isEnabled($addonId);
|
||||
}
|
||||
|
@ -31,17 +31,17 @@ final class AddonProxy implements AddonHelper
|
|||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public function getEnabledList(): array
|
||||
public function getEnabledAddons(): array
|
||||
{
|
||||
return Addon::getEnabledList();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the list of the IDs of the non-hidden enabled addons
|
||||
* Returns a list with the IDs of the non-hidden enabled addons
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
public static function getVisibleList(): array
|
||||
public static function getVisibleEnabledAddons(): array
|
||||
{
|
||||
return Addon::getVisibleList();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue