Remove leading slashes in imports [MAILPOET-764]
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API;
|
namespace MailPoet\API;
|
||||||
use \MailPoet\Util\Security;
|
use MailPoet\Util\Security;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
use \MailPoet\API\Error as APIError;
|
use MailPoet\API\Error as APIError;
|
||||||
use \MailPoet\Models\CustomField;
|
use MailPoet\Models\CustomField;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -3,11 +3,11 @@ namespace MailPoet\API\Endpoints;
|
|||||||
use MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
use MailPoet\API\Error as APIError;
|
use MailPoet\API\Error as APIError;
|
||||||
|
|
||||||
use \MailPoet\Models\Form;
|
use MailPoet\Models\Form;
|
||||||
use \MailPoet\Models\StatisticsForms;
|
use MailPoet\Models\StatisticsForms;
|
||||||
use \MailPoet\Form\Renderer as FormRenderer;
|
use MailPoet\Form\Renderer as FormRenderer;
|
||||||
use \MailPoet\Listing;
|
use MailPoet\Listing;
|
||||||
use \MailPoet\Form\Util;
|
use MailPoet\Form\Util;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
|
|
||||||
use MailPoet\Subscribers\ImportExport\Import\MailChimp;
|
use MailPoet\Subscribers\ImportExport\Import\MailChimp;
|
||||||
use MailPoet\Models\Segment;
|
use MailPoet\Models\Segment;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
use \MailPoet\API\Error as APIError;
|
use MailPoet\API\Error as APIError;
|
||||||
|
|
||||||
use MailPoet\Models\NewsletterTemplate;
|
use MailPoet\Models\NewsletterTemplate;
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
use \MailPoet\API\Error as APIError;
|
use MailPoet\API\Error as APIError;
|
||||||
|
|
||||||
use \MailPoet\Models\Segment;
|
use MailPoet\Models\Segment;
|
||||||
use \MailPoet\Listing;
|
use MailPoet\Listing;
|
||||||
use \MailPoet\Segments\WP;
|
use MailPoet\Segments\WP;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
use \MailPoet\API\Error as APIError;
|
use MailPoet\API\Error as APIError;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
use \MailPoet\Config\Activator;
|
use MailPoet\Config\Activator;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\API\Endpoints;
|
namespace MailPoet\API\Endpoints;
|
||||||
use \MailPoet\API\Endpoint as APIEndpoint;
|
use MailPoet\API\Endpoint as APIEndpoint;
|
||||||
use \MailPoet\API\Error as APIError;
|
use MailPoet\API\Error as APIError;
|
||||||
use \MailPoet\API\Access as APIAccess;
|
use MailPoet\API\Access as APIAccess;
|
||||||
|
|
||||||
use MailPoet\Listing;
|
use MailPoet\Listing;
|
||||||
use MailPoet\Models\Subscriber;
|
use MailPoet\Models\Subscriber;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Config;
|
namespace MailPoet\Config;
|
||||||
use \MailPoet\Analytics\Reporter;
|
use MailPoet\Analytics\Reporter;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Config;
|
namespace MailPoet\Config;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
use \MailPoet\Util\Url;
|
use MailPoet\Util\Url;
|
||||||
|
|
||||||
class Changelog {
|
class Changelog {
|
||||||
function __construct() {
|
function __construct() {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Config;
|
namespace MailPoet\Config;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
|
|
||||||
class Hooks {
|
class Hooks {
|
||||||
function __construct() {
|
function __construct() {
|
||||||
|
@ -3,11 +3,11 @@ namespace MailPoet\Config;
|
|||||||
|
|
||||||
use MailPoet\Cron\CronTrigger;
|
use MailPoet\Cron\CronTrigger;
|
||||||
use MailPoet\Mailer\MailerLog;
|
use MailPoet\Mailer\MailerLog;
|
||||||
use \MailPoet\Models\Segment;
|
use MailPoet\Models\Segment;
|
||||||
use \MailPoet\Segments\WP;
|
use MailPoet\Segments\WP;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
use \MailPoet\Settings\Pages;
|
use MailPoet\Settings\Pages;
|
||||||
use \MailPoet\Util\Helpers;
|
use MailPoet\Util\Helpers;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Config;
|
namespace MailPoet\Config;
|
||||||
use \Twig_Loader_Filesystem as TwigFileSystem;
|
use Twig_Loader_Filesystem as TwigFileSystem;
|
||||||
use \Twig_Environment as TwigEnv;
|
use Twig_Environment as TwigEnv;
|
||||||
use \Twig_Lexer as TwigLexer;
|
use Twig_Lexer as TwigLexer;
|
||||||
use \MailPoet\Twig;
|
use MailPoet\Twig;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Config;
|
namespace MailPoet\Config;
|
||||||
use \MailPoet\Models\Newsletter;
|
use MailPoet\Models\Newsletter;
|
||||||
use \MailPoet\Models\Subscriber;
|
use MailPoet\Models\Subscriber;
|
||||||
use \MailPoet\Models\SubscriberSegment;
|
use MailPoet\Models\SubscriberSegment;
|
||||||
use MailPoet\Newsletter\Url as NewsletterUrl;
|
use MailPoet\Newsletter\Url as NewsletterUrl;
|
||||||
|
|
||||||
class Shortcodes {
|
class Shortcodes {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Config;
|
namespace MailPoet\Config;
|
||||||
use \MailPoet\Models\Form;
|
use MailPoet\Models\Form;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Form;
|
namespace MailPoet\Form;
|
||||||
use \MailPoet\Config\Renderer;
|
use MailPoet\Config\Renderer;
|
||||||
use \MailPoet\Models\Form;
|
use MailPoet\Models\Form;
|
||||||
use \MailPoet\Form\Renderer as FormRenderer;
|
use MailPoet\Form\Renderer as FormRenderer;
|
||||||
use \MailPoet\Util\Security;
|
use MailPoet\Util\Security;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Newsletter\Editor;
|
namespace MailPoet\Newsletter\Editor;
|
||||||
|
|
||||||
use \MailPoet\Newsletter\Editor\PostTransformer;
|
use MailPoet\Newsletter\Editor\PostTransformer;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Newsletter\Editor;
|
namespace MailPoet\Newsletter\Editor;
|
||||||
|
|
||||||
use \MailPoet\Newsletter\Editor\PostContentManager;
|
use MailPoet\Newsletter\Editor\PostContentManager;
|
||||||
use \MailPoet\Newsletter\Editor\MetaInformationManager;
|
use MailPoet\Newsletter\Editor\MetaInformationManager;
|
||||||
use \MailPoet\Newsletter\Editor\StructureTransformer;
|
use MailPoet\Newsletter\Editor\StructureTransformer;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Newsletter\Editor;
|
namespace MailPoet\Newsletter\Editor;
|
||||||
|
|
||||||
use \pQuery;
|
use pQuery;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Newsletter\Editor;
|
namespace MailPoet\Newsletter\Editor;
|
||||||
|
|
||||||
use \MailPoet\Newsletter\Editor\TitleListTransformer;
|
use MailPoet\Newsletter\Editor\TitleListTransformer;
|
||||||
use \MailPoet\Newsletter\Editor\PostListTransformer;
|
use MailPoet\Newsletter\Editor\PostListTransformer;
|
||||||
|
|
||||||
if(!defined('ABSPATH')) exit;
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Settings;
|
namespace MailPoet\Settings;
|
||||||
use \MailPoet\Subscription;
|
use MailPoet\Subscription;
|
||||||
|
|
||||||
class Pages {
|
class Pages {
|
||||||
function __construct() {
|
function __construct() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Subscription;
|
namespace MailPoet\Subscription;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
use \MailPoet\Models\Subscriber;
|
use MailPoet\Models\Subscriber;
|
||||||
|
|
||||||
class Comment {
|
class Comment {
|
||||||
const SPAM = 'spam';
|
const SPAM = 'spam';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Subscription;
|
namespace MailPoet\Subscription;
|
||||||
use \MailPoet\API\Endpoints\Subscribers;
|
use MailPoet\API\Endpoints\Subscribers;
|
||||||
use \MailPoet\API\Response as APIResponse;
|
use MailPoet\API\Response as APIResponse;
|
||||||
use \MailPoet\Util\Url;
|
use MailPoet\Util\Url;
|
||||||
|
|
||||||
class Form {
|
class Form {
|
||||||
static function onSubmit() {
|
static function onSubmit() {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Subscription;
|
namespace MailPoet\Subscription;
|
||||||
use \MailPoet\Models\Subscriber;
|
use MailPoet\Models\Subscriber;
|
||||||
use \MailPoet\Util\Url;
|
use MailPoet\Util\Url;
|
||||||
|
|
||||||
class Manage {
|
class Manage {
|
||||||
|
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Subscription;
|
namespace MailPoet\Subscription;
|
||||||
|
|
||||||
use \MailPoet\Models\Subscriber;
|
use MailPoet\Models\Subscriber;
|
||||||
use \MailPoet\Models\SubscriberSegment;
|
use MailPoet\Models\SubscriberSegment;
|
||||||
use \MailPoet\Models\CustomField;
|
use MailPoet\Models\CustomField;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
use \MailPoet\Models\Segment;
|
use MailPoet\Models\Segment;
|
||||||
use \MailPoet\Util\Url;
|
use MailPoet\Util\Url;
|
||||||
use \MailPoet\Subscription;
|
use MailPoet\Subscription;
|
||||||
use \MailPoet\Form\Renderer as FormRenderer;
|
use MailPoet\Form\Renderer as FormRenderer;
|
||||||
use \MailPoet\Form\Block\Date as FormBlockDate;
|
use MailPoet\Form\Block\Date as FormBlockDate;
|
||||||
|
|
||||||
class Pages {
|
class Pages {
|
||||||
const DEMO_EMAIL = 'demo@mailpoet.com';
|
const DEMO_EMAIL = 'demo@mailpoet.com';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Subscription;
|
namespace MailPoet\Subscription;
|
||||||
use \MailPoet\Models\Setting;
|
use MailPoet\Models\Setting;
|
||||||
use \MailPoet\Models\Subscriber;
|
use MailPoet\Models\Subscriber;
|
||||||
|
|
||||||
class Registration {
|
class Registration {
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user