Commit 64fa6ad7 authored by catch's avatar catch

Issue #2901744 by mfernea: Fix 'PSR2.Namespaces' coding standard

parent f659d6ca
......@@ -13,7 +13,6 @@
use Drupal\Component\Utility\SafeMarkup;
use Drupal\Core\Render\Element;
/**
* Prepares variables for single local task link templates.
*
......
<?php
namespace Drupal\Component\Datetime;
use Drupal\Component\Utility\ToStringTrait;
/**
......
......@@ -4,7 +4,6 @@
use Drupal\Core\State\StateInterface;
/**
* Optimizes JavaScript assets.
*/
......
<?php
namespace Drupal\Core\Cache;
/**
* Defines a chained cache implementation for combining multiple cache backends.
*
......
<?php
namespace Drupal\Core\Cache;
use Drupal\Core\Site\Settings;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
......
......@@ -5,7 +5,6 @@
use Drupal\Core\Database\Database;
use Drupal\Core\Database\Connection;
/**
* General class for an abstracted TRUNCATE operation.
*/
......
......@@ -2,7 +2,6 @@
namespace Drupal\Core\Database;
/**
* Empty implementation of a database statement.
*
......
<?php
namespace Drupal\Core\Entity\Annotation;
use Drupal\Core\StringTranslation\TranslatableMarkup;
/**
......
<?php
namespace Drupal\Core\Entity\Query;
use Drupal\Core\Entity\EntityTypeInterface;
/**
......
<?php
namespace Drupal\Core\EventSubscriber;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
......
......@@ -9,7 +9,6 @@
use Drupal\Core\Url;
use Drupal\Core\Utility\UpdateException;
/**
* @defgroup update_api Update API
* @{
......
......@@ -2,7 +2,6 @@
namespace Drupal\Core\Field\Plugin\DataType;
/**
* Defines the base plugin for deriving data types for field types.
*
......
......@@ -10,7 +10,6 @@
use Drupal\Core\Plugin\Discovery\YamlDiscovery;
use Drupal\Core\Plugin\Factory\ContainerFactory;
/**
* Manages discovery, instantiation, and tree building of menu link plugins.
*
......
......@@ -2,7 +2,6 @@
namespace Drupal\Core\Routing;
use Drupal\Core\Url;
use Drupal\Core\Utility\LinkGeneratorInterface;
......
<?php
namespace Drupal\Core\Template;
use Drupal\Component\Utility\Html;
/**
......
<?php
namespace Drupal\Core\Theme;
use Drupal\Core\Extension\Extension;
/**
......
<?php
namespace Drupal\Tests\aggregator\Functional;
use Drupal\aggregator\Entity\Feed;
/**
......
......@@ -6,7 +6,6 @@
use Drupal\aggregator\Entity\Item;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests the aggregator_title formatter.
*
......
......@@ -5,7 +5,6 @@
use Drupal\Component\Utility\Crypt;
use Drupal\Tests\BrowserTestBase;
/**
* Tests form in block caching.
*
......
......@@ -6,7 +6,6 @@
use Drupal\Core\Session\AccountInterface;
use Drupal\node\NodeInterface;
/**
* Provides an interface defining a book manager.
*/
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\ckeditor\Functional;
use Drupal\filter\Entity\FilterFormat;
use Drupal\editor\Entity\Editor;
use Drupal\Tests\BrowserTestBase;
......
......@@ -2,7 +2,6 @@
namespace Drupal\comment;
use Drupal\Core\Database\Connection;
use Drupal\Core\Entity\FieldableEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\comment\Functional;
use Drupal\comment\Tests\CommentTestTrait;
use Drupal\node\Entity\NodeType;
use Drupal\Tests\BrowserTestBase;
......
<?php
namespace Drupal\Tests\comment\Functional;
use Drupal\comment\Entity\Comment;
use Drupal\comment\Entity\CommentType;
use Drupal\comment\Plugin\Field\FieldType\CommentItemInterface;
......
......@@ -6,7 +6,6 @@
use Drupal\Core\Config\ConfigImporterEvent;
use Drupal\Core\Config\ConfigImportValidateEventSubscriberBase;
/**
* Config subscriber.
*/
......
......@@ -2,7 +2,6 @@
namespace Drupal\config_events_test;
use Drupal\Core\Config\ConfigCrudEvent;
use Drupal\Core\Config\ConfigEvents;
use Drupal\Core\State\StateInterface;
......
......@@ -7,7 +7,6 @@
use Drupal\contact\Entity\ContactForm;
/**
* Initialize 'message' and 'redirect' field values to 'contact_form' entities.
*/
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\content_moderation\Kernel;
use Drupal\KernelTests\KernelTestBase;
use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
......
......@@ -13,7 +13,6 @@
use Drupal\datetime\Plugin\Field\FieldType\DateTimeItem;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* Base class for 'DateTime Field formatter' plugin implementations.
*/
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\dblog\Kernel;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\Form\FormInterface;
use Drupal\Core\Form\FormState;
......
<?php
namespace Drupal\field\Tests;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
......
<?php
namespace Drupal\field_test\Plugin\Field\FieldFormatter;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FormatterBase;
/**
* Plugin implementation of the 'field_test_applicable' formatter.
*
......
......@@ -4,7 +4,6 @@
use Drupal\Core\Field\FieldDefinitionInterface;
/**
* Defines the 'test_field_with_dependencies' entity field item.
*
......
......@@ -23,7 +23,6 @@
use Drupal\taxonomy\Entity\Vocabulary;
use Drupal\user\Entity\User;
/**
* Tests the new entity API for the entity reference field type.
*
......
<?php
namespace Drupal\Tests\field\Kernel;
use Drupal\Component\Utility\Unicode;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
......
<?php
namespace Drupal\Tests\field\Kernel;
use Drupal\Core\Field\BaseFieldDefinition;
/**
......
......@@ -2,7 +2,6 @@
namespace Drupal\file\Tests;
/**
* Tests file formatter access.
* @group file
......
<?php
namespace Drupal\Tests\file\Kernel\Migrate\d6;
use Drupal\migrate\Plugin\MigrationInterface;
/**
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\file\Kernel\Migrate\d7;
use Drupal\Core\StreamWrapper\PublicStream;
use Drupal\Core\StreamWrapper\StreamWrapperInterface;
......
<?php
namespace Drupal\Tests\file\Kernel;
use Drupal\file\Entity\File;
/**
......
......@@ -2,7 +2,6 @@
namespace Drupal\Tests\file\Kernel;
/**
* Tests the file_validate() function.
*
......
<?php
namespace Drupal\forum;
use Drupal\comment\CommentInterface;
use Drupal\Core\Database\Connection;
use Drupal\node\NodeInterface;
......
......@@ -4,7 +4,6 @@
use Drupal\node\NodeInterface;
/**
* Handles CRUD operations to {forum_index} table.
*/
......
......@@ -6,7 +6,6 @@
use Drupal\language\Entity\ConfigurableLanguage;
use Drupal\KernelTests\KernelTestBase;
/**
* Tests that the configurable language manager and locale operate correctly.
*
......
......@@ -2,7 +2,6 @@
namespace Drupal\migrate;
interface MigrateBuildDependencyInterface {
/**
......
......@@ -2,7 +2,6 @@
namespace Drupal\migrate;
interface MigrateMessageInterface {
/**
......
<?php
namespace Drupal\migrate\Plugin\migrate\process;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
......
......@@ -6,7 +6,6 @@
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
/**
* Logs values without changing them.
*
......
<?php
namespace Drupal\Tests\migrate\Unit\process;
use Drupal\migrate\Plugin\migrate\process\Flatten;
use Drupal\migrate\Plugin\migrate\process\Flatten;
/**
* Tests the flatten plugin.
......
......@@ -2,7 +2,6 @@
namespace Drupal\migrate_drupal;
/**
* @deprecated in Drupal 8.1.x, will be removed before Drupal 9.0.0. Use
* \Drupal\migrate_drupal\MigrationConfigurationTrait instead.
......
......@@ -10,7 +10,6 @@
use Drupal\Core\Entity\EntityManagerInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
/**
* Source returning an empty row with Drupal specific config dependencies.
*
......
<?php
namespace Drupal\node\Plugin\migrate\source\d6;
use Drupal\Core\Database\Query\SelectInterface;
/**
......
......@@ -14,7 +14,6 @@
use Drupal\Core\Session\AccountInterface;
use Drupal\node\NodeInterface;
/**
* Implements hook_ENTITY_TYPE_view() for node entities.
*/
......
<?php
namespace Drupal\Tests\node\Functional\Migrate\d6;
use Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeTestBase;
/**
......
<?php
namespace Drupal\Tests\node\Functional;
use Drupal\Component\Utility\Unicode;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
......
<?php
namespace Drupal\Tests\node\Functional;
use Drupal\Component\Utility\Unicode;
use Drupal\field\Entity\FieldConfig;
use Drupal\field\Entity\FieldStorageConfig;
......
......@@ -2,7 +2,6 @@
namespace Drupal\responsive_image\Tests;
use Drupal\field_ui\Tests\FieldUiTestTrait;
use Drupal\simpletest\WebTestBase;
use Drupal\responsive_image\Entity\ResponsiveImageStyle;
......
......@@ -2,7 +2,6 @@
namespace Drupal\rest;
trait ResourceResponseTrait {
/**
......
<?php
namespace Drupal\Tests\search\Functional;
use Drupal\Component\Utility\Unicode;
/**
......
<?php
namespace Drupal\Tests\search\Functional;
use Drupal\Component\Utility\Unicode;
/**
......
......@@ -9,7 +9,6 @@
use Drupal\simpletest\InstallerTestBase;
use Symfony\Component\HttpFoundation\Request;
/**
* Tests distribution profile support with existing settings.
*
......
<?php
namespace Drupal\system\Tests\Module;
use Drupal\Component\Utility\Unicode;
/**
......
......@@ -2,7 +2,6 @@
namespace Drupal\system\Tests\System;
use Drupal\simpletest\WebTestBase;
/**
......
......@@ -7,7 +7,6 @@
use Drupal\Core\Database\Database;
$connection = Database::getConnection();
$config = unserialize($connection->query("SELECT data FROM {config} where name = :name", [':name' => 'core.extension'])->fetchField());
......
<?php
namespace Drupal\entity_test\Entity;
use Drupal\Core\Entity\EntityTypeInterface;
/**
......
<?php
namespace Drupal\entity_test\Entity;
use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Entity\EntityTypeInterface;
......
......@@ -9,7 +9,6 @@
use Drupal\Core\TypedData\DataDefinitionInterface;
use Drupal\Core\TypedData\TypedDataInterface;
/**
* Defines the 'field_test' entity field type.
*
......
<?php
namespace Drupal\render_placeholder_message_test;
use Drupal\Core\Render\RenderContext;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
......
......@@ -10,7 +10,6 @@
use Symfony\Component\HttpFoundation\Response;
use Zend\Diactoros\Response\HtmlResponse;
/**
* Controller routines for testing the routing system.
*/
......
......@@ -2,7 +2,6 @@
namespace Drupal\token_test\Controller;
use Drupal\Core\Controller\ControllerBase;
use Drupal\Core\Render\BubbleableMetadata;
use Drupal\Core\Utility\Token;
......
<?php
namespace Drupal\trusted_hosts_test\Controller;
use Symfony\Component\HttpFoundation\Request;
/**
......
......@@ -2,7 +2,6 @@
namespace Drupal\twig_extension_test\TwigExtension;
/**
* A test Twig extension that adds a custom function and a custom filter.
*/
......
<?php
namespace Drupal\Tests\taxonomy\Functional;
use Drupal\Component\Utility\Unicode;
use Drupal\Core\Url;
......
......@@ -7,7 +7,6 @@
use Drupal\Tests\system\Functional\Cache\AssertPageCacheContextsAndTagsTrait;
use Drupal\Tests\BrowserTestBase;
/**
* Tests the cache contexts for toolbar.
*
......
......@@ -2,7 +2,6 @@
namespace Drupal\update;
/**
* Processor of project update information.
*/
......
<?php
namespace Drupal\user\Tests\Views;
use Drupal\Component\Utility\SafeMarkup;
use Drupal\user\Entity\User;
......
......@@ -2,7 +2,6 @@
namespace Drupal\views\Annotation;
/**
* Defines a Plugin annotation object for views access plugins.
*
......
<?php
namespace Drupal\views\Plugin\Block;
use Drupal\Core\Cache\Cache;
/**
......