cleanup top of php files, sorting use statements etc.
All checks were successful
All checks were successful
This commit is contained in:
parent
c599384006
commit
9c6db68ab0
10 changed files with 34 additions and 33 deletions
|
@ -8,6 +8,9 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
||||||
|
|
||||||
|
// Exit if accessed directly.
|
||||||
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
use Activitypub\Activity\Extended_Object\Event as Event_Object;
|
use Activitypub\Activity\Extended_Object\Event as Event_Object;
|
||||||
use Activitypub\Transformer\Post;
|
use Activitypub\Transformer\Post;
|
||||||
|
|
||||||
|
|
|
@ -8,17 +8,17 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
||||||
|
|
||||||
|
// Exit if accessed directly.
|
||||||
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
|
use Activitypub\Activity\Extended_Object\Event;
|
||||||
|
use Activitypub\Activity\Extended_Object\Place;
|
||||||
use Activitypub_Event_Extensions\Activitypub\Transformer\Event as Event_Transformer;
|
use Activitypub_Event_Extensions\Activitypub\Transformer\Event as Event_Transformer;
|
||||||
use DateTime;
|
use DateTime;
|
||||||
use DateTimeZone;
|
use DateTimeZone;
|
||||||
use EM_Event;
|
use EM_Event;
|
||||||
use Activitypub\Activity\Extended_Object\Event;
|
|
||||||
use Activitypub\Activity\Extended_Object\Place;
|
|
||||||
use function Activitypub\esc_hashtag;
|
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
use function Activitypub\esc_hashtag;
|
||||||
exit; // Exit if accessed directly.
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ActivityPub Transformer for events from the WordPress plugin 'Events Manager'
|
* ActivityPub Transformer for events from the WordPress plugin 'Events Manager'
|
||||||
|
|
|
@ -8,18 +8,15 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
||||||
|
|
||||||
use Activitypub_Event_Extensions\Activitypub\Transformer\Event;
|
// Exit if accessed directly.
|
||||||
use Activitypub\Model\Blog;
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
use Activitypub\Activity\Extended_Object\Event as Event_Object;
|
use Activitypub\Activity\Extended_Object\Event as Event_Object;
|
||||||
use Activitypub\Activity\Extended_Object\Place;
|
use Activitypub\Activity\Extended_Object\Place;
|
||||||
|
use Activitypub\Model\Blog;
|
||||||
|
use Activitypub_Event_Extensions\Activitypub\Transformer\Event;
|
||||||
use GatherPress\Core\Event as GatherPress_Event;
|
use GatherPress\Core\Event as GatherPress_Event;
|
||||||
|
|
||||||
use function Activitypub\get_rest_url_by_path;
|
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
|
||||||
exit; // Exit if accessed directly.
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ActivityPub Transformer for VS Event
|
* ActivityPub Transformer for VS Event
|
||||||
*
|
*
|
||||||
|
|
|
@ -8,9 +8,8 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
// Exit if accessed directly.
|
||||||
exit; // Exit if accessed directly.
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
}
|
|
||||||
|
|
||||||
use WP_Post;
|
use WP_Post;
|
||||||
|
|
||||||
|
|
|
@ -8,16 +8,12 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
|
||||||
|
|
||||||
use Activitypub_Event_Extensions\Activitypub\Transformer\Event as Event_Transformer;
|
// Exit if accessed directly.
|
||||||
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
use Activitypub\Activity\Extended_Object\Event;
|
use Activitypub\Activity\Extended_Object\Event;
|
||||||
use Activitypub\Activity\Extended_Object\Place;
|
use Activitypub\Activity\Extended_Object\Place;
|
||||||
|
use Activitypub_Event_Extensions\Activitypub\Transformer\Event as Event_Transformer;
|
||||||
use WP_Error;
|
|
||||||
use function Activitypub\get_rest_url_by_path;
|
|
||||||
|
|
||||||
if ( ! defined( 'ABSPATH' ) ) {
|
|
||||||
exit; // Exit if accessed directly.
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* ActivityPub Transformer for VS Event.
|
* ActivityPub Transformer for VS Event.
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Admin;
|
namespace Activitypub_Event_Extensions\Admin;
|
||||||
|
|
||||||
|
// Exit if accessed directly.
|
||||||
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
use Activitypub_Event_Extensions\Plugins\Event_Plugin;
|
use Activitypub_Event_Extensions\Plugins\Event_Plugin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -11,6 +11,9 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Admin;
|
namespace Activitypub_Event_Extensions\Admin;
|
||||||
|
|
||||||
|
// Exit if accessed directly.
|
||||||
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class responsible for general admin notices.
|
* Class responsible for general admin notices.
|
||||||
*
|
*
|
||||||
|
|
|
@ -11,12 +11,12 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions\Admin;
|
namespace Activitypub_Event_Extensions\Admin;
|
||||||
|
|
||||||
use Activitypub_Event_Extensions\Setup;
|
|
||||||
use Activitypub_Event_Extensions\Plugins\Event_Plugin;
|
|
||||||
|
|
||||||
// Exit if accessed directly.
|
// Exit if accessed directly.
|
||||||
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
|
use Activitypub_Event_Extensions\Plugins\Event_Plugin;
|
||||||
|
use Activitypub_Event_Extensions\Setup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class responsible for the ActivityPub Event Extension related Settings.
|
* Class responsible for the ActivityPub Event Extension related Settings.
|
||||||
*
|
*
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions;
|
namespace Activitypub_Event_Extensions;
|
||||||
|
|
||||||
use Activitypub\Activity\Extended_Object\Event;
|
|
||||||
|
|
||||||
// Exit if accessed directly.
|
// Exit if accessed directly.
|
||||||
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
|
use Activitypub\Activity\Extended_Object\Event;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class responsible for the ActivityPui Event Extension related Settings.
|
* Class responsible for the ActivityPui Event Extension related Settings.
|
||||||
*
|
*
|
||||||
|
|
|
@ -12,14 +12,14 @@
|
||||||
|
|
||||||
namespace Activitypub_Event_Extensions;
|
namespace Activitypub_Event_Extensions;
|
||||||
|
|
||||||
|
// Exit if accessed directly.
|
||||||
|
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
||||||
|
|
||||||
use Activitypub_Event_Extensions\Admin\Event_Plugin_Admin_Notices;
|
use Activitypub_Event_Extensions\Admin\Event_Plugin_Admin_Notices;
|
||||||
use Activitypub_Event_Extensions\Admin\General_Admin_Notices;
|
use Activitypub_Event_Extensions\Admin\General_Admin_Notices;
|
||||||
use Activitypub_Event_Extensions\Admin\Settings_Page;
|
use Activitypub_Event_Extensions\Admin\Settings_Page;
|
||||||
use Activitypub_Event_Extensions\Plugins\Event_Plugin;
|
use Activitypub_Event_Extensions\Plugins\Event_Plugin;
|
||||||
|
|
||||||
// Exit if accessed directly.
|
|
||||||
defined( 'ABSPATH' ) || exit; // @codeCoverageIgnore
|
|
||||||
|
|
||||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue