Commit 4d176b95 authored by catch's avatar catch
Browse files

Issue #2902407 by mfernea, zaporylie: Fix 'Drupal.Commenting.DataTypeNamespace' coding standard

parent 21707245
......@@ -461,7 +461,7 @@ function theme_render_and_autoescape($arg) {
*
* @param array $theme_settings
* An array of theme settings from system setting form or a Drupal 7 variable.
* @param Config $config
* @param \Drupal\Core\Config\Config $config
* The configuration object to update.
*
* @return
......
......@@ -38,7 +38,7 @@ public function checkNamedRoute($route_name, array $parameters = [], AccountInte
/**
* Execute access checks against the incoming request.
*
* @param Request $request
* @param \Symfony\Component\HttpFoundation\Request $request
* The incoming request.
* @param \Drupal\Core\Session\AccountInterface $account
* (optional) Run access checks for this account. Defaults to the current
......
......@@ -445,7 +445,7 @@ public function createFromStorageRecord(array $values) {
* @param bool $is_syncing
* Is the configuration entity being created as part of a config sync.
*
* @return ConfigEntityInterface
* @return \Drupal\Core\Config\ConfigEntityInterface
* The configuration entity.
*
* @see \Drupal\Core\Config\Entity\ConfigEntityStorageInterface::createFromStorageRecord()
......
......@@ -219,7 +219,7 @@ protected function getValues(Config $config, $key, $get_method, array $parts, $s
/**
* Updates configuration entity in the key store.
*
* @param ConfigCrudEvent $event
* @param \Drupal\Core\Config\ConfigCrudEvent $event
* The configuration event.
*/
public function onConfigSave(ConfigCrudEvent $event) {
......
......@@ -676,13 +676,13 @@ public function handle(Request $request, $type = self::MASTER_REQUEST, $catch =
*
* @param \Exception $e
* An exception
* @param Request $request
* @param \Symfony\Component\HttpFoundation\Request $request
* A Request instance
* @param int $type
* The type of the request (one of HttpKernelInterface::MASTER_REQUEST or
* HttpKernelInterface::SUB_REQUEST)
*
* @return Response
* @return \Symfony\Component\HttpFoundation\Response
* A Response instance
*
* @throws \Exception
......@@ -1187,10 +1187,10 @@ public function invalidateContainer() {
/**
* Attach synthetic values on to kernel.
*
* @param ContainerInterface $container
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* Container object
*
* @return ContainerInterface
* @return \Symfony\Component\DependencyInjection\ContainerInterface
*/
protected function attachSynthetic(ContainerInterface $container) {
$persist = [];
......@@ -1213,7 +1213,7 @@ protected function attachSynthetic(ContainerInterface $container) {
/**
* Compiles a new service container.
*
* @return ContainerBuilder The compiled service container
* @return \Drupal\Core\DependencyInjection\ContainerBuilder The compiled service container
*/
protected function compileContainer() {
// We are forcing a container build so it is reasonable to assume that the
......@@ -1334,7 +1334,7 @@ protected function initializeServiceProviders() {
/**
* Gets a new ContainerBuilder instance used to build the service container.
*
* @return ContainerBuilder
* @return \Drupal\Core\DependencyInjection\ContainerBuilder
*/
protected function getContainerBuilder() {
return new ContainerBuilder(new ParameterBag($this->getKernelParameters()));
......
......@@ -439,7 +439,7 @@ protected function getFieldDefinitions() {
/**
* Determines if a field has options for a given display.
*
* @param FieldDefinitionInterface $definition
* @param \Drupal\Core\Field\FieldDefinitionInterface $definition
* A field definition.
* @return array|null
*/
......
......@@ -37,9 +37,9 @@ class ConfigSnapshotSubscriber implements EventSubscriberInterface {
/**
* Constructs the ConfigSnapshotSubscriber object.
*
* @param StorageInterface $source_storage
* @param \Drupal\Core\Config\StorageInterface $source_storage
* The source storage used to discover configuration changes.
* @param StorageInterface $snapshot_storage
* @param \Drupal\Core\Config\StorageInterface $snapshot_storage
* The snapshot storage used to write configuration changes.
*/
public function __construct(ConfigManagerInterface $config_manager, StorageInterface $source_storage, StorageInterface $snapshot_storage) {
......
......@@ -82,7 +82,7 @@ class EntityReferenceEntityFormatter extends EntityReferenceFormatterBase implem
* The view mode.
* @param array $third_party_settings
* Any third party settings settings.
* @param LoggerChannelFactoryInterface $logger_factory
* @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory
* The logger factory.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
......
......@@ -41,7 +41,7 @@ class MimeTypeGuesser implements MimeTypeGuesserInterface {
/**
* Constructs a MimeTypeGuesser object.
*
* @param StreamWrapperManagerInterface $stream_wrapper_manager
* @param \Drupal\Core\StreamWrapper\StreamWrapperManagerInterface $stream_wrapper_manager
* The stream wrapper manager.
*/
public function __construct(StreamWrapperManagerInterface $stream_wrapper_manager) {
......
......@@ -62,7 +62,7 @@ public function renderResponse(array $main_content, Request $request, RouteMatch
*
* @param array &$options
* The 'target' option, if set, is used, and then removed from $options.
* @param RouteMatchInterface $route_match
* @param \Drupal\Core\Routing\RouteMatchInterface $route_match
* When no 'target' option is set in $options, $route_match is used instead
* to determine the target.
*
......
......@@ -67,7 +67,7 @@ public function __construct($route_name, Route $route, array $parameters = [], a
/**
* Creates a RouteMatch from a request.
*
* @param Request $request
* @param \Symfony\Component\HttpFoundation\Request $request
* A request object.
*
* @return \Drupal\Core\Routing\RouteMatchInterface
......
......@@ -135,7 +135,7 @@ public function __construct(Connection $connection, StateInterface $state, Curre
* very large route sets to be filtered down to likely candidates, which
* may then be filtered in memory more completely.
*
* @param Request $request
* @param \Symfony\Component\HttpFoundation\Request $request
* A request against which to match.
*
* @return \Symfony\Component\Routing\RouteCollection
......
......@@ -78,10 +78,10 @@ public function testBlockFilter() {
/**
* Removes any non-visible elements from the passed array.
*
* @param NodeElement[] $elements
* @param \Behat\Mink\Element\NodeElement[] $elements
* An array of node elements.
*
* @return NodeElement[]
* @return \Behat\Mink\Element\NodeElement[]
*/
protected function filterVisibleElements(array $elements) {
$elements = array_filter($elements, function (NodeElement $element) {
......
......@@ -31,7 +31,7 @@ class BlockContentRevisionsTest extends BlockContentTestBase {
protected function setUp() {
parent::setUp();
/** @var UserInterface $user */
/** @var \Drupal\user\Entity\UserInterface $user */
$user = User::load(1);
// Create initial block.
......
......@@ -37,7 +37,7 @@ protected function setUp() {
* Tests the Drupal 6 custom block to Drupal 8 migration.
*/
public function testBlockMigration() {
/** @var BlockContent $block */
/** @var \Drupal\block_content\Entity\BlockContent $block */
$block = BlockContent::load(1);
$this->assertIdentical('My block 1', $block->label());
$this->assertTrue(REQUEST_TIME <= $block->getChangedTime() && $block->getChangedTime() <= time());
......
......@@ -41,9 +41,9 @@ class EntityComment extends EntityContentBase {
* The plugin_id for the plugin instance.
* @param mixed $plugin_definition
* The plugin implementation definition.
* @param MigrationInterface $migration
* @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The migration.
* @param EntityStorageInterface $storage
* @param \Drupal\Core\Entity\EntityStorageInterface $storage
* The storage for this entity type.
* @param array $bundles
* The list of bundles this entity type has.
......
......@@ -14,7 +14,7 @@ class ConfigSubscriber extends ConfigImportValidateEventSubscriberBase {
/**
* Checks that the Configuration module is not being uninstalled.
*
* @param ConfigImporterEvent $event
* @param \Drupal\Core\Config\ConfigImporterEvent $event
* The config import event.
*/
public function onConfigImporterValidate(ConfigImporterEvent $event) {
......
......@@ -121,7 +121,7 @@ public static function create(ContainerInterface $container) {
/**
* Adds Moderation configuration to appropriate entity types.
*
* @param EntityTypeInterface[] $entity_types
* @param \Drupal\Core\Entity\EntityTypeInterface[] $entity_types
* The master entity type list to alter.
*
* @see hook_entity_type_alter()
......
......@@ -136,7 +136,7 @@ public function buildForm(array $form, FormStateInterface $form_state, ContentEn
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
/** @var ContentEntityInterface $entity */
/** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
$entity = $form_state->get('entity');
$new_state = $form_state->getValue('new_state');
......
......@@ -88,11 +88,11 @@ public function testViewShowsCorrectStates() {
* @param string $machine_name
* The machine name of the type to create.
*
* @return NodeType
* @return \Drupal\node\Entity\NodeType
* The node type just created.
*/
protected function createNodeType($label, $machine_name) {
/** @var NodeType $node_type */
/** @var \Drupal\node\Entity\NodeType $node_type */
$node_type = NodeType::create([
'type' => $machine_name,
'label' => $label,
......
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