Commit 02a8ccbd authored by catch's avatar catch

Issue #2902406 by mfernea: Fix 'Drupal.Classes.UseLeadingBackslash' coding standard

parent 08bf5f7a
......@@ -2,7 +2,7 @@
namespace Drupal\Component\HttpFoundation;
use \Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\RedirectResponse;
/**
* Provides a common base class for safe redirects.
......
......@@ -2,7 +2,7 @@
namespace Drupal\Component\Plugin;
use \Drupal\Component\Plugin\Context\ContextInterface;
use Drupal\Component\Plugin\Context\ContextInterface;
/**
* Interface for defining context aware plugins.
......
......@@ -2,7 +2,7 @@
namespace Drupal\Component\Plugin\Exception;
use \BadMethodCallException;
use BadMethodCallException;
/**
* Exception thrown when a decorator's _call() method is triggered, but the
......
......@@ -7,7 +7,7 @@
use Drupal\Core\Cache\Cache;
use Drupal\Core\Cache\RefinableCacheableDependencyInterface;
use Drupal\Core\Cache\RefinableCacheableDependencyTrait;
use \Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
/**
* Provides a base class for configuration objects with get/set support.
......
......@@ -15,7 +15,7 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Exception\RouteNotFoundException;
use Symfony\Component\Routing\RouteCollection;
use \Drupal\Core\Database\Connection;
use Drupal\Core\Database\Connection;
/**
* A Route Provider front-end for all Drupal-stored routes.
......
......@@ -2,7 +2,7 @@
namespace Drupal\Core\StreamWrapper;
use \Drupal\Core\Url;
use Drupal\Core\Url;
/**
* Defines a Drupal temporary (temporary://) stream wrapper class.
......
......@@ -5,9 +5,9 @@
* Installation functions for Content Translation module.
*/
use \Drupal\Core\Entity\Sql\SqlEntityStorageInterface;
use \Drupal\Core\Language\LanguageInterface;
use \Drupal\Core\Url;
use Drupal\Core\Entity\Sql\SqlEntityStorageInterface;
use Drupal\Core\Language\LanguageInterface;
use Drupal\Core\Url;
/**
* Implements hook_install().
......
......@@ -5,7 +5,7 @@
* Helper module for the Content Translation tests.
*/
use \Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Form\FormStateInterface;
/**
* Implements hook_form_BASE_FORM_ID_alter().
......
......@@ -5,7 +5,7 @@
* Help Page Test module to test the help page.
*/
use \Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
......
......@@ -5,7 +5,7 @@
* Test Help module.
*/
use \Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
......
......@@ -5,7 +5,7 @@
* More Help Page Test module to test the help blocks.
*/
use \Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
......
......@@ -5,7 +5,7 @@
* Install, uninstall and update hooks for Media module.
*/
use \Drupal\user\RoleInterface;
use Drupal\user\RoleInterface;
/**
* Implements hook_install().
......
......@@ -2,7 +2,7 @@
namespace Drupal\menu_link_content\Plugin\migrate\process\d6;
use \Drupal\menu_link_content\Plugin\migrate\process\LinkUri as RealLinkUri;
use Drupal\menu_link_content\Plugin\migrate\process\LinkUri as RealLinkUri;
/**
* Processes a link path into an 'internal:' or 'entity:' URI.
......
......@@ -2,7 +2,7 @@
namespace Drupal\rest\Annotation;
use \Drupal\Component\Annotation\Plugin;
use Drupal\Component\Annotation\Plugin;
/**
* Defines a REST resource annotation object.
......
......@@ -5,7 +5,7 @@
* Helper module for the Common tests.
*/
use \Drupal\Core\Asset\AttachedAssetsInterface;
use Drupal\Core\Asset\AttachedAssetsInterface;
/**
* Applies #printed to an element to help test #pre_render.
......
......@@ -5,7 +5,7 @@
* Post update functions for entity_test_schema_converter.
*/
use \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchemaConverter;
use Drupal\Core\Entity\Sql\SqlContentEntityStorageSchemaConverter;
/**
* @addtogroup updates-8.4.x
......
......@@ -5,7 +5,7 @@
* Experimental Test module to test the Core (Experimental) package.
*/
use \Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
......
......@@ -3,7 +3,7 @@
namespace Drupal\Tests\system\Kernel\Extension;
use Drupal\Core\Extension\MissingDependencyException;
use \Drupal\Core\Extension\ModuleUninstallValidatorException;
use Drupal\Core\Extension\ModuleUninstallValidatorException;
use Drupal\entity_test\Entity\EntityTest;
use Drupal\KernelTests\KernelTestBase;
......
......@@ -4,7 +4,7 @@
use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use \Drupal\taxonomy\Entity\Vocabulary;
use Drupal\taxonomy\Entity\Vocabulary;
/**
* Posts an article with a taxonomy term and a date prior to 1970.
......
......@@ -16,6 +16,7 @@
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Classes/ClassDeclarationSniff.php"/>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Classes/FullyQualifiedNamespaceSniff.php"/>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Classes/UnusedUseStatementSniff.php"/>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Classes/UseLeadingBackslashSniff.php"/>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/CSS/ClassDefinitionNameSpacingSniff.php"/>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/CSS/ColourDefinitionSniff.php"/>
<rule ref="../vendor/drupal/coder/coder_sniffer/Drupal/Sniffs/Commenting/ClassCommentSniff.php">
......
......@@ -52,7 +52,7 @@ public function testRandomBytesFallback() {
namespace Drupal\Component\Utility;
use \Drupal\Tests\Component\Utility\CryptRandomFallbackTest;
use Drupal\Tests\Component\Utility\CryptRandomFallbackTest;
/**
* Defines a function in same namespace as Drupal\Component\Utility\Crypt.
......
......@@ -3,7 +3,7 @@
namespace Drupal\Tests\Core\EventSubscriber;
use Drupal\Tests\UnitTestCase;
use \Drupal\Core\EventSubscriber\PsrResponseSubscriber;
use Drupal\Core\EventSubscriber\PsrResponseSubscriber;
/**
* @coversDefaultClass \Drupal\Core\EventSubscriber\PsrResponseSubscriber
......
......@@ -2,7 +2,7 @@
namespace Drupal\Tests\Traits\Core\Config;
use \Drupal\Core\Config\Schema\SchemaIncompleteException;
use Drupal\Core\Config\Schema\SchemaIncompleteException;
/**
* Adds a test for the configuration schema checker use in tests.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment