Make transformer phpdoc comment name more verbose
Some checks failed
Deploy to https://wordpress-test.event-federation.eu/ / deploy (push) Has been cancelled

This commit is contained in:
André Menrath 2023-12-22 20:28:43 +01:00
parent f70bcec1fb
commit 2e199b813d

View file

@ -1,6 +1,6 @@
<?php <?php
/** /**
* ActivityPub Transformer for VS Event. * ActivityPub Transformer for the plugin Very Simple Event List.
* *
* @package activity-event-transformers * @package activity-event-transformers
* @license AGPL-3.0-or-later * @license AGPL-3.0-or-later
@ -53,7 +53,7 @@ class VS_Event extends Post {
* @since 1.0.0 * @since 1.0.0
* @return string The Event Object-Type. * @return string The Event Object-Type.
*/ */
protected function get_object_type() { protected function get_type() {
return 'Event'; return 'Event';
} }
@ -171,7 +171,7 @@ class VS_Event extends Post {
->set_timezone( 'Europe/Vienna' ) ->set_timezone( 'Europe/Vienna' )
->set_is_online( false ) ->set_is_online( false )
->set_in_language( 'de ' ) ->set_in_language( 'de ' )
->set_actor ('http://wp.lan/@blog') ->set_actor ('http://wp.lan/@blog' )
->set_to ( [ ->set_to ( [
"https://www.w3.org/ns/activitystreams#Public" "https://www.w3.org/ns/activitystreams#Public"
]); ]);