mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 20:04:32 +02:00
Fix code style
This commit is contained in:
parent
f3a8bcff11
commit
82ea62ba7c
4 changed files with 154 additions and 152 deletions
|
@ -92,7 +92,7 @@ class ContactBlock
|
||||||
|
|
||||||
if (DBA::isResult($contacts_stmt)) {
|
if (DBA::isResult($contacts_stmt)) {
|
||||||
$contacts_title = DI::l10n()->tt('%d Contact', '%d Contacts', $total);
|
$contacts_title = DI::l10n()->tt('%d Contact', '%d Contacts', $total);
|
||||||
$micropro = [];
|
$micropro = [];
|
||||||
|
|
||||||
while ($contact = DBA::fetch($contacts_stmt)) {
|
while ($contact = DBA::fetch($contacts_stmt)) {
|
||||||
$contacts[] = $contact;
|
$contacts[] = $contact;
|
||||||
|
@ -105,11 +105,11 @@ class ContactBlock
|
||||||
}
|
}
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('widget/contacts.tpl');
|
$tpl = Renderer::getMarkupTemplate('widget/contacts.tpl');
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$contacts' => $contacts_title,
|
'$contacts' => $contacts_title,
|
||||||
'$nickname' => $profile['nickname'],
|
'$nickname' => $profile['nickname'],
|
||||||
'$viewcontacts' => DI::l10n()->t('View Contacts'),
|
'$viewcontacts' => DI::l10n()->t('View Contacts'),
|
||||||
'$micropro' => $micropro,
|
'$micropro' => $micropro,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$eventDispatcher = DI::eventDispatcher();
|
$eventDispatcher = DI::eventDispatcher();
|
||||||
|
|
|
@ -53,7 +53,7 @@ class ACL
|
||||||
$contacts = self::getValidMessageRecipientsForUser(DI::userSession()->getLocalUserId());
|
$contacts = self::getValidMessageRecipientsForUser(DI::userSession()->getLocalUserId());
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('acl/message_recipient.tpl');
|
$tpl = Renderer::getMarkupTemplate('acl/message_recipient.tpl');
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$contacts' => $contacts,
|
'$contacts' => $contacts,
|
||||||
'$contacts_json' => json_encode($contacts),
|
'$contacts_json' => json_encode($contacts),
|
||||||
'$selected' => $selected,
|
'$selected' => $selected,
|
||||||
|
@ -96,9 +96,9 @@ class ACL
|
||||||
$selfPublicContactId = Contact::getPublicIdByUserId($localUserId);
|
$selfPublicContactId = Contact::getPublicIdByUserId($localUserId);
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('acl/self_only.tpl');
|
$tpl = Renderer::getMarkupTemplate('acl/self_only.tpl');
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$selfPublicContactId' => $selfPublicContactId,
|
'$selfPublicContactId' => $selfPublicContactId,
|
||||||
'$explanation' => $explanation,
|
'$explanation' => $explanation,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
@ -118,8 +118,8 @@ class ACL
|
||||||
return [
|
return [
|
||||||
'allow_cid' => Contact::pruneUnavailable($aclFormatter->expand($user['allow_cid'] ?? '')),
|
'allow_cid' => Contact::pruneUnavailable($aclFormatter->expand($user['allow_cid'] ?? '')),
|
||||||
'allow_gid' => $aclFormatter->expand($user['allow_gid'] ?? ''),
|
'allow_gid' => $aclFormatter->expand($user['allow_gid'] ?? ''),
|
||||||
'deny_cid' => $aclFormatter->expand($user['deny_cid'] ?? ''),
|
'deny_cid' => $aclFormatter->expand($user['deny_cid'] ?? ''),
|
||||||
'deny_gid' => $aclFormatter->expand($user['deny_gid'] ?? ''),
|
'deny_gid' => $aclFormatter->expand($user['deny_gid'] ?? ''),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,31 +133,33 @@ class ACL
|
||||||
*/
|
*/
|
||||||
public static function getContactListByUserId(int $user_id, array $condition = [])
|
public static function getContactListByUserId(int $user_id, array $condition = [])
|
||||||
{
|
{
|
||||||
$fields = ['id', 'name', 'addr', 'micro'];
|
$fields = ['id', 'name', 'addr', 'micro'];
|
||||||
$params = ['order' => ['name']];
|
$params = ['order' => ['name']];
|
||||||
$acl_contacts = Contact::selectToArray(
|
$acl_contacts = Contact::selectToArray(
|
||||||
$fields,
|
$fields,
|
||||||
array_merge([
|
array_merge([
|
||||||
'uid' => $user_id,
|
'uid' => $user_id,
|
||||||
'self' => false,
|
'self' => false,
|
||||||
'blocked' => false,
|
'blocked' => false,
|
||||||
'archive' => false,
|
'archive' => false,
|
||||||
'deleted' => false,
|
'deleted' => false,
|
||||||
'pending' => false,
|
'pending' => false,
|
||||||
'network' => Protocol::FEDERATED,
|
'network' => Protocol::FEDERATED,
|
||||||
'rel' => [Contact::FOLLOWER, Contact::FRIEND]
|
'rel' => [Contact::FOLLOWER, Contact::FRIEND]
|
||||||
], $condition),
|
], $condition),
|
||||||
$params
|
$params
|
||||||
);
|
);
|
||||||
|
|
||||||
$acl_yourself = Contact::selectFirst($fields, ['uid' => $user_id, 'self' => true]);
|
$acl_yourself = Contact::selectFirst($fields, ['uid' => $user_id, 'self' => true]);
|
||||||
$acl_yourself['name'] = DI::l10n()->t('Yourself');
|
$acl_yourself['name'] = DI::l10n()->t('Yourself');
|
||||||
|
|
||||||
$acl_contacts[] = $acl_yourself;
|
$acl_contacts[] = $acl_yourself;
|
||||||
|
|
||||||
$acl_groups = Contact::selectToArray($fields,
|
$acl_groups = Contact::selectToArray(
|
||||||
['uid' => $user_id, 'self' => false, 'blocked' => false, 'archive' => false, 'deleted' => false,
|
$fields,
|
||||||
'network' => Protocol::FEDERATED, 'pending' => false, 'contact-type' => Contact::TYPE_COMMUNITY], $params
|
['uid' => $user_id, 'self' => false, 'blocked' => false, 'archive' => false, 'deleted' => false,
|
||||||
|
'network' => Protocol::FEDERATED, 'pending' => false, 'contact-type' => Contact::TYPE_COMMUNITY],
|
||||||
|
$params
|
||||||
);
|
);
|
||||||
|
|
||||||
$acl_contacts = array_merge($acl_groups, $acl_contacts);
|
$acl_contacts = array_merge($acl_groups, $acl_contacts);
|
||||||
|
@ -179,27 +181,27 @@ class ACL
|
||||||
{
|
{
|
||||||
$acl_circles = [
|
$acl_circles = [
|
||||||
[
|
[
|
||||||
'id' => Circle::FOLLOWERS,
|
'id' => Circle::FOLLOWERS,
|
||||||
'name' => DI::l10n()->t('Followers'),
|
'name' => DI::l10n()->t('Followers'),
|
||||||
'addr' => '',
|
'addr' => '',
|
||||||
'micro' => 'images/twopeople.png',
|
'micro' => 'images/twopeople.png',
|
||||||
'type' => 'circle',
|
'type' => 'circle',
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'id' => Circle::MUTUALS,
|
'id' => Circle::MUTUALS,
|
||||||
'name' => DI::l10n()->t('Mutuals'),
|
'name' => DI::l10n()->t('Mutuals'),
|
||||||
'addr' => '',
|
'addr' => '',
|
||||||
'micro' => 'images/twopeople.png',
|
'micro' => 'images/twopeople.png',
|
||||||
'type' => 'circle',
|
'type' => 'circle',
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
foreach (Circle::getByUserId($user_id) as $circle) {
|
foreach (Circle::getByUserId($user_id) as $circle) {
|
||||||
$acl_circles[] = [
|
$acl_circles[] = [
|
||||||
'id' => $circle['id'],
|
'id' => $circle['id'],
|
||||||
'name' => $circle['name'],
|
'name' => $circle['name'],
|
||||||
'addr' => '',
|
'addr' => '',
|
||||||
'micro' => 'images/twopeople.png',
|
'micro' => 'images/twopeople.png',
|
||||||
'type' => 'circle',
|
'type' => 'circle',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -276,7 +278,7 @@ class ACL
|
||||||
$mailacct = DBA::selectFirst('mailacct', ['pubmail'], ['`uid` = ? AND `server` != ""', $user['uid']]);
|
$mailacct = DBA::selectFirst('mailacct', ['pubmail'], ['`uid` = ? AND `server` != ""', $user['uid']]);
|
||||||
if (DBA::isResult($mailacct)) {
|
if (DBA::isResult($mailacct)) {
|
||||||
$jotnets_fields[] = [
|
$jotnets_fields[] = [
|
||||||
'type' => 'checkbox',
|
'type' => 'checkbox',
|
||||||
'field' => [
|
'field' => [
|
||||||
'pubmail_enable',
|
'pubmail_enable',
|
||||||
DI::l10n()->t('Post to Email'),
|
DI::l10n()->t('Post to Email'),
|
||||||
|
@ -310,28 +312,28 @@ class ACL
|
||||||
];
|
];
|
||||||
|
|
||||||
$tpl = Renderer::getMarkupTemplate('acl/full_selector.tpl');
|
$tpl = Renderer::getMarkupTemplate('acl/full_selector.tpl');
|
||||||
$o = Renderer::replaceMacros($tpl, [
|
$o = Renderer::replaceMacros($tpl, [
|
||||||
'$public_title' => DI::l10n()->t('Public'),
|
'$public_title' => DI::l10n()->t('Public'),
|
||||||
'$public_desc' => DI::l10n()->t('This content will be shown to all your followers and can be seen in the community pages and by anyone with its link.'),
|
'$public_desc' => DI::l10n()->t('This content will be shown to all your followers and can be seen in the community pages and by anyone with its link.'),
|
||||||
'$custom_title' => DI::l10n()->t('Limited/Private'),
|
'$custom_title' => DI::l10n()->t('Limited/Private'),
|
||||||
'$custom_desc' => DI::l10n()->t('This content will be shown only to the people in the first box, to the exception of the people mentioned in the second box. It won\'t appear anywhere public.') . DI::l10n()->t('Start typing the name of a contact or a circle to show a filtered list. You can also mention the special circles "Followers" and "Mutuals".'),
|
'$custom_desc' => DI::l10n()->t('This content will be shown only to the people in the first box, to the exception of the people mentioned in the second box. It won\'t appear anywhere public.') . DI::l10n()->t('Start typing the name of a contact or a circle to show a filtered list. You can also mention the special circles "Followers" and "Mutuals".'),
|
||||||
'$allow_label' => DI::l10n()->t('Show to:'),
|
'$allow_label' => DI::l10n()->t('Show to:'),
|
||||||
'$deny_label' => DI::l10n()->t('Except to:'),
|
'$deny_label' => DI::l10n()->t('Except to:'),
|
||||||
'$emailcc' => DI::l10n()->t('CC: email addresses'),
|
'$emailcc' => DI::l10n()->t('CC: email addresses'),
|
||||||
'$emtitle' => DI::l10n()->t('Example: bob@example.com, mary@example.com'),
|
'$emtitle' => DI::l10n()->t('Example: bob@example.com, mary@example.com'),
|
||||||
'$jotnets_summary' => DI::l10n()->t('Connectors'),
|
'$jotnets_summary' => DI::l10n()->t('Connectors'),
|
||||||
'$visibility' => $visibility,
|
'$visibility' => $visibility,
|
||||||
'$acl_contacts' => json_encode($acl_contacts),
|
'$acl_contacts' => json_encode($acl_contacts),
|
||||||
'$acl_circles' => json_encode($acl_circles),
|
'$acl_circles' => json_encode($acl_circles),
|
||||||
'$acl_list' => json_encode($acl_list),
|
'$acl_list' => json_encode($acl_list),
|
||||||
'$contact_allow' => implode(',', $default_permissions['allow_cid']),
|
'$contact_allow' => implode(',', $default_permissions['allow_cid']),
|
||||||
'$circle_allow' => implode(',', $default_permissions['allow_gid']),
|
'$circle_allow' => implode(',', $default_permissions['allow_gid']),
|
||||||
'$contact_deny' => implode(',', $default_permissions['deny_cid']),
|
'$contact_deny' => implode(',', $default_permissions['deny_cid']),
|
||||||
'$circle_deny' => implode(',', $default_permissions['deny_gid']),
|
'$circle_deny' => implode(',', $default_permissions['deny_gid']),
|
||||||
'$for_federation' => $for_federation,
|
'$for_federation' => $for_federation,
|
||||||
'$jotnets_fields' => $jotnets_fields,
|
'$jotnets_fields' => $jotnets_fields,
|
||||||
'$input_names' => $input_names,
|
'$input_names' => $input_names,
|
||||||
'$input_group_id' => $input_group_id,
|
'$input_group_id' => $input_group_id,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $o;
|
return $o;
|
||||||
|
|
|
@ -35,40 +35,40 @@ final class HookEventBridge
|
||||||
* This maps the new event names to the legacy Hook names.
|
* This maps the new event names to the legacy Hook names.
|
||||||
*/
|
*/
|
||||||
private static array $eventMapper = [
|
private static array $eventMapper = [
|
||||||
Event::INIT => 'init_1',
|
Event::INIT => 'init_1',
|
||||||
Event::HOME_INIT => 'home_init',
|
Event::HOME_INIT => 'home_init',
|
||||||
ConfigLoadedEvent::CONFIG_LOADED => 'load_config',
|
ConfigLoadedEvent::CONFIG_LOADED => 'load_config',
|
||||||
CollectRoutesEvent::COLLECT_ROUTES => 'route_collection',
|
CollectRoutesEvent::COLLECT_ROUTES => 'route_collection',
|
||||||
ArrayFilterEvent::APP_MENU => 'app_menu',
|
ArrayFilterEvent::APP_MENU => 'app_menu',
|
||||||
ArrayFilterEvent::NAV_INFO => 'nav_info',
|
ArrayFilterEvent::NAV_INFO => 'nav_info',
|
||||||
ArrayFilterEvent::FEATURE_ENABLED => 'isEnabled',
|
ArrayFilterEvent::FEATURE_ENABLED => 'isEnabled',
|
||||||
ArrayFilterEvent::FEATURE_GET => 'get',
|
ArrayFilterEvent::FEATURE_GET => 'get',
|
||||||
ArrayFilterEvent::POST_LOCAL_START => 'post_local_start',
|
ArrayFilterEvent::POST_LOCAL_START => 'post_local_start',
|
||||||
ArrayFilterEvent::POST_LOCAL => 'post_local',
|
ArrayFilterEvent::POST_LOCAL => 'post_local',
|
||||||
ArrayFilterEvent::POST_LOCAL_END => 'post_local_end',
|
ArrayFilterEvent::POST_LOCAL_END => 'post_local_end',
|
||||||
ArrayFilterEvent::PHOTO_UPLOAD_FORM => 'photo_upload_form',
|
ArrayFilterEvent::PHOTO_UPLOAD_FORM => 'photo_upload_form',
|
||||||
ArrayFilterEvent::NETWORK_TO_NAME => 'network_to_name',
|
ArrayFilterEvent::NETWORK_TO_NAME => 'network_to_name',
|
||||||
ArrayFilterEvent::CONVERSATION_START => 'conversation_start',
|
ArrayFilterEvent::CONVERSATION_START => 'conversation_start',
|
||||||
ArrayFilterEvent::DISPLAY_ITEM => 'display_item',
|
ArrayFilterEvent::DISPLAY_ITEM => 'display_item',
|
||||||
ArrayFilterEvent::RENDER_LOCATION => 'render_location',
|
ArrayFilterEvent::RENDER_LOCATION => 'render_location',
|
||||||
ArrayFilterEvent::ITEM_PHOTO_MENU => 'item_photo_menu',
|
ArrayFilterEvent::ITEM_PHOTO_MENU => 'item_photo_menu',
|
||||||
ArrayFilterEvent::OEMBED_FETCH_END => 'oembed_fetch_url',
|
ArrayFilterEvent::OEMBED_FETCH_END => 'oembed_fetch_url',
|
||||||
ArrayFilterEvent::PAGE_INFO => 'page_info_data',
|
ArrayFilterEvent::PAGE_INFO => 'page_info_data',
|
||||||
ArrayFilterEvent::SMILEY_LIST => 'smilie',
|
ArrayFilterEvent::SMILEY_LIST => 'smilie',
|
||||||
ArrayFilterEvent::BBCODE_TO_HTML_START => 'bbcode',
|
ArrayFilterEvent::BBCODE_TO_HTML_START => 'bbcode',
|
||||||
ArrayFilterEvent::HTML_TO_BBCODE_END => 'html2bbcode',
|
ArrayFilterEvent::HTML_TO_BBCODE_END => 'html2bbcode',
|
||||||
ArrayFilterEvent::BBCODE_TO_MARKDOWN_END => 'bb2diaspora',
|
ArrayFilterEvent::BBCODE_TO_MARKDOWN_END => 'bb2diaspora',
|
||||||
ArrayFilterEvent::JOT_NETWORKS => 'jot_networks',
|
ArrayFilterEvent::JOT_NETWORKS => 'jot_networks',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_FOLLOW => 'support_follow',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_FOLLOW => 'support_follow',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_REVOKE_FOLLOW => 'support_revoke_follow',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_REVOKE_FOLLOW => 'support_revoke_follow',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_PROBE => 'support_probe',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_PROBE => 'support_probe',
|
||||||
HtmlFilterEvent::HEAD => 'head',
|
HtmlFilterEvent::HEAD => 'head',
|
||||||
HtmlFilterEvent::FOOTER => 'footer',
|
HtmlFilterEvent::FOOTER => 'footer',
|
||||||
HtmlFilterEvent::PAGE_HEADER => 'page_header',
|
HtmlFilterEvent::PAGE_HEADER => 'page_header',
|
||||||
HtmlFilterEvent::PAGE_CONTENT_TOP => 'page_content_top',
|
HtmlFilterEvent::PAGE_CONTENT_TOP => 'page_content_top',
|
||||||
HtmlFilterEvent::PAGE_END => 'page_end',
|
HtmlFilterEvent::PAGE_END => 'page_end',
|
||||||
HtmlFilterEvent::JOT_TOOL => 'jot_tool',
|
HtmlFilterEvent::JOT_TOOL => 'jot_tool',
|
||||||
HtmlFilterEvent::CONTACT_BLOCK_END => 'contact_block_end',
|
HtmlFilterEvent::CONTACT_BLOCK_END => 'contact_block_end',
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -77,40 +77,40 @@ final class HookEventBridge
|
||||||
public static function getStaticSubscribedEvents(): array
|
public static function getStaticSubscribedEvents(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
Event::INIT => 'onNamedEvent',
|
Event::INIT => 'onNamedEvent',
|
||||||
Event::HOME_INIT => 'onNamedEvent',
|
Event::HOME_INIT => 'onNamedEvent',
|
||||||
ConfigLoadedEvent::CONFIG_LOADED => 'onConfigLoadedEvent',
|
ConfigLoadedEvent::CONFIG_LOADED => 'onConfigLoadedEvent',
|
||||||
CollectRoutesEvent::COLLECT_ROUTES => 'onCollectRoutesEvent',
|
CollectRoutesEvent::COLLECT_ROUTES => 'onCollectRoutesEvent',
|
||||||
ArrayFilterEvent::APP_MENU => 'onArrayFilterEvent',
|
ArrayFilterEvent::APP_MENU => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::NAV_INFO => 'onArrayFilterEvent',
|
ArrayFilterEvent::NAV_INFO => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::FEATURE_ENABLED => 'onArrayFilterEvent',
|
ArrayFilterEvent::FEATURE_ENABLED => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::FEATURE_GET => 'onArrayFilterEvent',
|
ArrayFilterEvent::FEATURE_GET => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::POST_LOCAL_START => 'onArrayFilterEvent',
|
ArrayFilterEvent::POST_LOCAL_START => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::POST_LOCAL => 'onArrayFilterEvent',
|
ArrayFilterEvent::POST_LOCAL => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::POST_LOCAL_END => 'onArrayFilterEvent',
|
ArrayFilterEvent::POST_LOCAL_END => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PHOTO_UPLOAD_FORM => 'onArrayFilterEvent',
|
ArrayFilterEvent::PHOTO_UPLOAD_FORM => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::NETWORK_TO_NAME => 'onArrayFilterEvent',
|
ArrayFilterEvent::NETWORK_TO_NAME => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::CONVERSATION_START => 'onArrayFilterEvent',
|
ArrayFilterEvent::CONVERSATION_START => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::DISPLAY_ITEM => 'onArrayFilterEvent',
|
ArrayFilterEvent::DISPLAY_ITEM => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::RENDER_LOCATION => 'onArrayFilterEvent',
|
ArrayFilterEvent::RENDER_LOCATION => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::ITEM_PHOTO_MENU => 'onArrayFilterEvent',
|
ArrayFilterEvent::ITEM_PHOTO_MENU => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::OEMBED_FETCH_END => 'onOembedFetchEndEvent',
|
ArrayFilterEvent::OEMBED_FETCH_END => 'onOembedFetchEndEvent',
|
||||||
ArrayFilterEvent::PAGE_INFO => 'onArrayFilterEvent',
|
ArrayFilterEvent::PAGE_INFO => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::SMILEY_LIST => 'onArrayFilterEvent',
|
ArrayFilterEvent::SMILEY_LIST => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::BBCODE_TO_HTML_START => 'onBbcodeToHtmlEvent',
|
ArrayFilterEvent::BBCODE_TO_HTML_START => 'onBbcodeToHtmlEvent',
|
||||||
ArrayFilterEvent::HTML_TO_BBCODE_END => 'onHtmlToBbcodeEvent',
|
ArrayFilterEvent::HTML_TO_BBCODE_END => 'onHtmlToBbcodeEvent',
|
||||||
ArrayFilterEvent::BBCODE_TO_MARKDOWN_END => 'onBbcodeToMarkdownEvent',
|
ArrayFilterEvent::BBCODE_TO_MARKDOWN_END => 'onBbcodeToMarkdownEvent',
|
||||||
ArrayFilterEvent::JOT_NETWORKS => 'onArrayFilterEvent',
|
ArrayFilterEvent::JOT_NETWORKS => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_FOLLOW => 'onArrayFilterEvent',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_FOLLOW => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_REVOKE_FOLLOW => 'onArrayFilterEvent',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_REVOKE_FOLLOW => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_PROBE => 'onArrayFilterEvent',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_PROBE => 'onArrayFilterEvent',
|
||||||
HtmlFilterEvent::HEAD => 'onHtmlFilterEvent',
|
HtmlFilterEvent::HEAD => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::FOOTER => 'onHtmlFilterEvent',
|
HtmlFilterEvent::FOOTER => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::PAGE_HEADER => 'onHtmlFilterEvent',
|
HtmlFilterEvent::PAGE_HEADER => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::PAGE_CONTENT_TOP => 'onHtmlFilterEvent',
|
HtmlFilterEvent::PAGE_CONTENT_TOP => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::PAGE_END => 'onHtmlFilterEvent',
|
HtmlFilterEvent::PAGE_END => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::JOT_TOOL => 'onHtmlFilterEvent',
|
HtmlFilterEvent::JOT_TOOL => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::CONTACT_BLOCK_END => 'onHtmlFilterEvent',
|
HtmlFilterEvent::CONTACT_BLOCK_END => 'onHtmlFilterEvent',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -24,40 +24,40 @@ class HookEventBridgeTest extends TestCase
|
||||||
public function testGetStaticSubscribedEventsReturnsStaticMethods(): void
|
public function testGetStaticSubscribedEventsReturnsStaticMethods(): void
|
||||||
{
|
{
|
||||||
$expected = [
|
$expected = [
|
||||||
Event::INIT => 'onNamedEvent',
|
Event::INIT => 'onNamedEvent',
|
||||||
Event::HOME_INIT => 'onNamedEvent',
|
Event::HOME_INIT => 'onNamedEvent',
|
||||||
ConfigLoadedEvent::CONFIG_LOADED => 'onConfigLoadedEvent',
|
ConfigLoadedEvent::CONFIG_LOADED => 'onConfigLoadedEvent',
|
||||||
CollectRoutesEvent::COLLECT_ROUTES => 'onCollectRoutesEvent',
|
CollectRoutesEvent::COLLECT_ROUTES => 'onCollectRoutesEvent',
|
||||||
ArrayFilterEvent::APP_MENU => 'onArrayFilterEvent',
|
ArrayFilterEvent::APP_MENU => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::NAV_INFO => 'onArrayFilterEvent',
|
ArrayFilterEvent::NAV_INFO => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::FEATURE_ENABLED => 'onArrayFilterEvent',
|
ArrayFilterEvent::FEATURE_ENABLED => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::FEATURE_GET => 'onArrayFilterEvent',
|
ArrayFilterEvent::FEATURE_GET => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::POST_LOCAL_START => 'onArrayFilterEvent',
|
ArrayFilterEvent::POST_LOCAL_START => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::POST_LOCAL => 'onArrayFilterEvent',
|
ArrayFilterEvent::POST_LOCAL => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::POST_LOCAL_END => 'onArrayFilterEvent',
|
ArrayFilterEvent::POST_LOCAL_END => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PHOTO_UPLOAD_FORM => 'onArrayFilterEvent',
|
ArrayFilterEvent::PHOTO_UPLOAD_FORM => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::NETWORK_TO_NAME => 'onArrayFilterEvent',
|
ArrayFilterEvent::NETWORK_TO_NAME => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::CONVERSATION_START => 'onArrayFilterEvent',
|
ArrayFilterEvent::CONVERSATION_START => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::DISPLAY_ITEM => 'onArrayFilterEvent',
|
ArrayFilterEvent::DISPLAY_ITEM => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::RENDER_LOCATION => 'onArrayFilterEvent',
|
ArrayFilterEvent::RENDER_LOCATION => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::ITEM_PHOTO_MENU => 'onArrayFilterEvent',
|
ArrayFilterEvent::ITEM_PHOTO_MENU => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::OEMBED_FETCH_END => 'onOembedFetchEndEvent',
|
ArrayFilterEvent::OEMBED_FETCH_END => 'onOembedFetchEndEvent',
|
||||||
ArrayFilterEvent::PAGE_INFO => 'onArrayFilterEvent',
|
ArrayFilterEvent::PAGE_INFO => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::SMILEY_LIST => 'onArrayFilterEvent',
|
ArrayFilterEvent::SMILEY_LIST => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::BBCODE_TO_HTML_START => 'onBbcodeToHtmlEvent',
|
ArrayFilterEvent::BBCODE_TO_HTML_START => 'onBbcodeToHtmlEvent',
|
||||||
ArrayFilterEvent::HTML_TO_BBCODE_END => 'onHtmlToBbcodeEvent',
|
ArrayFilterEvent::HTML_TO_BBCODE_END => 'onHtmlToBbcodeEvent',
|
||||||
ArrayFilterEvent::BBCODE_TO_MARKDOWN_END => 'onBbcodeToMarkdownEvent',
|
ArrayFilterEvent::BBCODE_TO_MARKDOWN_END => 'onBbcodeToMarkdownEvent',
|
||||||
ArrayFilterEvent::JOT_NETWORKS => 'onArrayFilterEvent',
|
ArrayFilterEvent::JOT_NETWORKS => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_FOLLOW => 'onArrayFilterEvent',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_FOLLOW => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_REVOKE_FOLLOW => 'onArrayFilterEvent',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_REVOKE_FOLLOW => 'onArrayFilterEvent',
|
||||||
ArrayFilterEvent::PROTOCOL_SUPPORTS_PROBE => 'onArrayFilterEvent',
|
ArrayFilterEvent::PROTOCOL_SUPPORTS_PROBE => 'onArrayFilterEvent',
|
||||||
HtmlFilterEvent::HEAD => 'onHtmlFilterEvent',
|
HtmlFilterEvent::HEAD => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::FOOTER => 'onHtmlFilterEvent',
|
HtmlFilterEvent::FOOTER => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::PAGE_HEADER => 'onHtmlFilterEvent',
|
HtmlFilterEvent::PAGE_HEADER => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::PAGE_CONTENT_TOP => 'onHtmlFilterEvent',
|
HtmlFilterEvent::PAGE_CONTENT_TOP => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::PAGE_END => 'onHtmlFilterEvent',
|
HtmlFilterEvent::PAGE_END => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::JOT_TOOL => 'onHtmlFilterEvent',
|
HtmlFilterEvent::JOT_TOOL => 'onHtmlFilterEvent',
|
||||||
HtmlFilterEvent::CONTACT_BLOCK_END => 'onHtmlFilterEvent',
|
HtmlFilterEvent::CONTACT_BLOCK_END => 'onHtmlFilterEvent',
|
||||||
];
|
];
|
||||||
|
|
||||||
$this->assertSame(
|
$this->assertSame(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue