whitespace fixes

This commit is contained in:
ruru4143 2023-12-11 19:47:24 +01:00
parent f61ccd7a18
commit 38caa8d2b0

View file

@ -16,7 +16,8 @@ require_once __DIR__ . '/class-place.php';
*
* @see https://www.w3.org/TR/activitystreams-vocabulary/#dfn-event
*/
class Event extends \Activitypub\Activity\Base_Object { // todo maybe rename to mobilizon event?
class Event extends \Activitypub\Activity\Base_Object {
// todo maybe rename to mobilizon event?
const REPLIES_MODERATION_OPTION_TYPES = [ 'allow_all', 'closed' ];
const JOIN_MODE_TYPES = [ 'free', 'restricted', 'external' ]; // amd 'invite', but not used by mobilizon atm
@ -128,7 +129,7 @@ class Event extends \Activitypub\Activity\Base_Object { // todo maybe rename to
// Extract context information from the doc comment.
preg_match( '/@context\s+([^\s]+)/', $doc_omment, $matches );
if ( !empty( $matches[1] ) ) {
if ( ! empty( $matches[1] ) ) {
return $matches[1];
} else {
return 'https://www.w3.org/ns/activitystreams';