Add rule for namespaces

[MAILPOET-2090]
This commit is contained in:
Pavel Dohnal
2019-05-20 14:19:32 +02:00
committed by M. Shull
parent 39cb25d576
commit 406b8fdb74
2 changed files with 3 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ use MailPoet\Settings\SettingsController;
use MailPoet\WooCommerce\Helper as WooCommerceHelper;
use MailPoetVendor\Twig\Extension\AbstractExtension;
use MailPoetVendor\Twig\TwigFunction;
use \MailPoet\WP\Functions as WPFunctions;
use MailPoet\WP\Functions as WPFunctions;
if (!defined('ABSPATH')) exit;

View File

@@ -5,6 +5,8 @@
<!-- checks for unused methods, unused or write-only properties in a class and unused private constants -->
<rule ref="SlevomatCodingStandard.Classes.UnusedPrivateElements"/>
<rule ref="SlevomatCodingStandard.Namespaces.UseDoesNotStartWithBackslash"/>
<rule ref="SlevomatCodingStandard.Namespaces.MultipleUsesPerLine"/>
<!-- Reports empty comments -->
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment"/>
<!-- This sniff enforces trailing commas in multi-line arrays -->