diff --git a/core/includes/file.inc b/core/includes/file.inc
index 5d7837208188efb659a5c829d30be2db4eafa497..77a743eab044ad4ec095b26c1fa159a4a56dba25 100644
--- a/core/includes/file.inc
+++ b/core/includes/file.inc
@@ -99,7 +99,6 @@ function file_stream_wrapper_valid_scheme($scheme) {
return \Drupal::service('file_system')->validScheme($scheme);
}
-
/**
* Returns the part of a URI after the schema.
*
@@ -926,7 +925,6 @@ function file_unmanaged_delete_recursive($path, $callback = NULL) {
return file_unmanaged_delete($path);
}
-
/**
* Moves an uploaded file to a new location.
*
diff --git a/core/includes/install.inc b/core/includes/install.inc
index 0296e9663056231ba490c3fc880ba6a9dfa5dbff..6e6db7aa4eeade91a76c34fad417ca04dc2c0afe 100644
--- a/core/includes/install.inc
+++ b/core/includes/install.inc
@@ -380,7 +380,6 @@ function _drupal_rewrite_settings_is_simple($type, $value) {
return $is_integer || $is_float || $is_string || $is_boolean_or_null;
}
-
/**
* Helper for drupal_rewrite_settings().
*
@@ -451,7 +450,6 @@ function _drupal_rewrite_settings_dump($variable, $variable_name) {
return $return;
}
-
/**
* Helper for drupal_rewrite_settings().
*
diff --git a/core/includes/unicode.inc b/core/includes/unicode.inc
index 6a157dc98cc4c4745a73a4e914312a1e75d54faf..e9cc76cd17a932639ab5c04cf278e1d128ad9eea 100644
--- a/core/includes/unicode.inc
+++ b/core/includes/unicode.inc
@@ -10,6 +10,7 @@
/**
* Returns Unicode library status and errors.
*/
+
/**
* Moves unicode_requirements() logic to system_requirements().
*
diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php
index e0b08670b78ea159ae9d555cb44d7fb83f223b79..0b37ca2a8ee8b7283abb16bf8db54b48dffe28b5 100644
--- a/core/lib/Drupal.php
+++ b/core/lib/Drupal.php
@@ -141,7 +141,6 @@ public static function hasContainer() {
return static::$container !== NULL;
}
-
/**
* Retrieves a service from the container.
*
diff --git a/core/lib/Drupal/Component/Assertion/Inspector.php b/core/lib/Drupal/Component/Assertion/Inspector.php
index dbf3f511c18ecb6a78b1aceab9b5e0c64353b1bd..681f19264828f159fc4551e03d7ae074c5dc487c 100644
--- a/core/lib/Drupal/Component/Assertion/Inspector.php
+++ b/core/lib/Drupal/Component/Assertion/Inspector.php
@@ -333,7 +333,6 @@ public static function assertAllMatch($pattern, $traversable, $case_sensitive =
return FALSE;
}
-
/**
* Asserts that all members are strings matching a regular expression.
*
diff --git a/core/lib/Drupal/Component/Datetime/DateTimePlus.php b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
index e4148a6de88556ec8436b115aea7555c331829a7..cb23cba578671fe9c0b5dc5b5ce0531e50f5ec70 100644
--- a/core/lib/Drupal/Component/Datetime/DateTimePlus.php
+++ b/core/lib/Drupal/Component/Datetime/DateTimePlus.php
@@ -477,7 +477,6 @@ protected function prepareFormat($format) {
return $format;
}
-
/**
* Examines getLastErrors() to see what errors to report.
*
diff --git a/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php b/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
index dfd2a431ccb6a44caf4ba0c4656392fbe65e78e2..b4c1da83bf6eaa544a9a788cf3d01aace1589a7c 100644
--- a/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
+++ b/core/lib/Drupal/Component/DependencyInjection/Dumper/OptimizedPhpArrayDumper.php
@@ -282,7 +282,6 @@ protected function dumpMethodCalls(array $calls) {
return $code;
}
-
/**
* Dumps a collection to a PHP array.
*
diff --git a/core/lib/Drupal/Component/Utility/Random.php b/core/lib/Drupal/Component/Utility/Random.php
index cf3483509d73cd1cdf3d2c6f6c5d735e536a5db2..d1f25ff36c62278b2ca64159b3e54900f567da59 100644
--- a/core/lib/Drupal/Component/Utility/Random.php
+++ b/core/lib/Drupal/Component/Utility/Random.php
@@ -259,7 +259,6 @@ public function paragraphs($paragraph_count = 12) {
return $output;
}
-
/**
* Create a placeholder image.
*
diff --git a/core/lib/Drupal/Component/Uuid/Com.php b/core/lib/Drupal/Component/Uuid/Com.php
index f9305f5014c1c203f6c8433ee5f0464582f06951..c18b39a60c4dcae2d4a6e4ed1ad9e96eb55ef374 100644
--- a/core/lib/Drupal/Component/Uuid/Com.php
+++ b/core/lib/Drupal/Component/Uuid/Com.php
@@ -8,6 +8,7 @@
* @see http://php.net/com_create_guid
*/
class Com implements UuidInterface {
+
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Access/AccessResultForbidden.php b/core/lib/Drupal/Core/Access/AccessResultForbidden.php
index 3edae61af34c45df511c775307af0d63c8c59c63..dbdbafea330439c0c855428e513e076a9525d357 100644
--- a/core/lib/Drupal/Core/Access/AccessResultForbidden.php
+++ b/core/lib/Drupal/Core/Access/AccessResultForbidden.php
@@ -24,7 +24,6 @@ public function __construct($reason = NULL) {
$this->reason = $reason;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Access/CheckProvider.php b/core/lib/Drupal/Core/Access/CheckProvider.php
index d6ba1cf6dd3c77f05c11bc3197042c9ae9fd5125..51423bdab4edcc618d5e0e415acd761dba084e9c 100644
--- a/core/lib/Drupal/Core/Access/CheckProvider.php
+++ b/core/lib/Drupal/Core/Access/CheckProvider.php
@@ -142,6 +142,7 @@ protected function applies(Route $route) {
return $checks;
}
+
/**
* Compiles a mapping of requirement keys to access checker service IDs.
*/
diff --git a/core/lib/Drupal/Core/Access/CheckProviderInterface.php b/core/lib/Drupal/Core/Access/CheckProviderInterface.php
index a94a92c97842c43698f9f66f7ae80f7f8be2bb79..35e3c18b822acc0eac5ab01eb5dfbc2c90b9c64d 100644
--- a/core/lib/Drupal/Core/Access/CheckProviderInterface.php
+++ b/core/lib/Drupal/Core/Access/CheckProviderInterface.php
@@ -15,7 +15,6 @@
*/
interface CheckProviderInterface {
-
/**
* For each route, saves a list of applicable access checks to the route.
*
diff --git a/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php b/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php
index 53d6e823eab87026c8a4fd8e057f6d0b7372d80c..a55b0eaf602ca5e3e744e29a32618a839f1f0a84 100644
--- a/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php
+++ b/core/lib/Drupal/Core/Ajax/OpenModalDialogCommand.php
@@ -8,6 +8,7 @@
* @ingroup ajax
*/
class OpenModalDialogCommand extends OpenDialogCommand {
+
/**
* Constructs an OpenModalDialog object.
*
diff --git a/core/lib/Drupal/Core/Config/DatabaseStorage.php b/core/lib/Drupal/Core/Config/DatabaseStorage.php
index 0ac6134c340013822d4c65e9f2df587d2a9bd8fe..2560a461e76d5698eb7ae0289e21ac41d9521662 100644
--- a/core/lib/Drupal/Core/Config/DatabaseStorage.php
+++ b/core/lib/Drupal/Core/Config/DatabaseStorage.php
@@ -228,7 +228,6 @@ public function delete($name) {
->execute();
}
-
/**
* Implements Drupal\Core\Config\StorageInterface::rename().
*
diff --git a/core/lib/Drupal/Core/Config/Entity/ThirdPartySettingsInterface.php b/core/lib/Drupal/Core/Config/Entity/ThirdPartySettingsInterface.php
index 7b2ee060f6582273c1e941a65380db26522f63cb..990a5b4fe16bbd90145e803c04065fa440e0a964 100644
--- a/core/lib/Drupal/Core/Config/Entity/ThirdPartySettingsInterface.php
+++ b/core/lib/Drupal/Core/Config/Entity/ThirdPartySettingsInterface.php
@@ -41,7 +41,6 @@ public function setThirdPartySetting($module, $key, $value);
*/
public function getThirdPartySetting($module, $key, $default = NULL);
-
/**
* Gets all third-party settings of a given module.
*
diff --git a/core/lib/Drupal/Core/Controller/ControllerResolver.php b/core/lib/Drupal/Core/Controller/ControllerResolver.php
index 3bae3c53b65239f21ca012b952cc25e86d16e2fe..35d433a2abdbd867a2197b32cf5fe3ba790feae8 100644
--- a/core/lib/Drupal/Core/Controller/ControllerResolver.php
+++ b/core/lib/Drupal/Core/Controller/ControllerResolver.php
@@ -80,7 +80,6 @@ public function getControllerFromDefinition($controller, $path = '') {
return $callable;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
index a7c1496c7a8f64ecbdd95f24c4467e4f21d7c43e..bbf86681fb5170b783cd9917e770dfdc508777af 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Connection.php
@@ -165,7 +165,6 @@ public static function open(array &$connection_options = []) {
return $pdo;
}
-
/**
* Destructor for the SQLite connection.
*
diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Select.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Select.php
index 6d7caab24bcb20e10e317d62124bcac0eb0e16db..5eaa5157d86024c05b7f1228d07904b709a46a83 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Select.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Select.php
@@ -8,6 +8,7 @@
* SQLite implementation of \Drupal\Core\Database\Query\Select.
*/
class Select extends QuerySelect {
+
public function forUpdate($set = TRUE) {
// SQLite does not support FOR UPDATE so nothing to do.
return $this;
diff --git a/core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php b/core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php
index c58ff7d38c089024c256b1b8f71af33d1ca2d9b6..386912f878011c4f14ad38db4a1f2fca1a53730c 100644
--- a/core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php
+++ b/core/lib/Drupal/Core/Database/Driver/sqlite/Truncate.php
@@ -11,6 +11,7 @@
* exactly the effect (it is implemented by DROPing the table).
*/
class Truncate extends QueryTruncate {
+
public function __toString() {
// Create a sanitized comment string to prepend to the query.
$comments = $this->connection->makeComment($this->comments);
diff --git a/core/lib/Drupal/Core/Datetime/DateHelper.php b/core/lib/Drupal/Core/Datetime/DateHelper.php
index b3a8ce75d603cd73ead25613b750fdc4551635a1..168ef62740a702edd35499f59bdd7c9fa41314db 100644
--- a/core/lib/Drupal/Core/Datetime/DateHelper.php
+++ b/core/lib/Drupal/Core/Datetime/DateHelper.php
@@ -334,7 +334,6 @@ public static function days($required = FALSE, $month = NULL, $year = NULL) {
return !$required ? $none + $range : $range;
}
-
/**
* Constructs an array of hours.
*
diff --git a/core/lib/Drupal/Core/Entity/Enhancer/EntityRouteEnhancer.php b/core/lib/Drupal/Core/Entity/Enhancer/EntityRouteEnhancer.php
index 850d404baa75fca9082c4c852996ae8a221c83c3..f383fbc986404c45f6744d18cb95ca0bea4d955c 100644
--- a/core/lib/Drupal/Core/Entity/Enhancer/EntityRouteEnhancer.php
+++ b/core/lib/Drupal/Core/Entity/Enhancer/EntityRouteEnhancer.php
@@ -68,7 +68,6 @@ protected function enhanceEntityForm(array $defaults, Request $request) {
return $defaults;
}
-
/**
* Update defaults for an entity list.
*
diff --git a/core/lib/Drupal/Core/Entity/EntityType.php b/core/lib/Drupal/Core/Entity/EntityType.php
index 2ef984d6623dd641b915cb1004150ec91a620bf9..e28fdb0da439f8e54515e15ac5f849f8b3e4d33a 100644
--- a/core/lib/Drupal/Core/Entity/EntityType.php
+++ b/core/lib/Drupal/Core/Entity/EntityType.php
@@ -836,7 +836,6 @@ public function getGroup() {
return $this->group;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/Query.php b/core/lib/Drupal/Core/Entity/Query/Sql/Query.php
index 50b81bba91d358148fff24803d36d8e068fe1bdb..7e5db5b9a05cb7214961ea2822307c13cbec9151 100644
--- a/core/lib/Drupal/Core/Entity/Query/Sql/Query.php
+++ b/core/lib/Drupal/Core/Entity/Query/Sql/Query.php
@@ -64,7 +64,6 @@ public function __construct(EntityTypeInterface $entity_type, $conjunction, Conn
$this->connection = $connection;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php b/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
index c791bb5552984b1ae3b24cc738537281d5f4e1ac..f865cf76ef8138d8446bc8c0d45683752c3aa602 100644
--- a/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
+++ b/core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
@@ -65,7 +65,6 @@ public function notExistsAggregate($field, $function, $langcode = NULL) {
return $this->conditionAggregate->notExists($field, $function, $langcode);
}
-
/**
* Adds the aggregations to the query.
*
@@ -126,7 +125,6 @@ protected function addSortAggregate() {
return $this;
}
-
/**
* Overrides \Drupal\Core\Entity\Query\Sql\Query::finish().
*
diff --git a/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php b/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
index d87fdf1375c347e3cd3e507059bb8f838cc5eb6f..b32cf84e22a4736ff2840a8b2a8a44d6d05bd5c6 100644
--- a/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
+++ b/core/lib/Drupal/Core/EventSubscriber/ActiveLinkResponseFilter.php
@@ -97,7 +97,6 @@ public function onResponse(FilterResponseEvent $event) {
));
}
-
/**
* Sets the "is-active" class on relevant links.
*
diff --git a/core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php
index 351642617d3342961b73b11fb567d91b45308720..3d7821503f613a9c070f4a2759e79aed76860b90 100644
--- a/core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/EnforcedFormResponseSubscriber.php
@@ -34,7 +34,6 @@ public function onKernelResponse(FilterResponseEvent $event) {
}
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
index 5b838d49e70f7f6bb385e79c89a9c5fc64f7d1d1..99c7b021f567ee09d0cd7efb5ec0c9c3f452beb5 100644
--- a/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
+++ b/core/lib/Drupal/Core/EventSubscriber/Fast404ExceptionHtmlSubscriber.php
@@ -43,7 +43,6 @@ public function __construct(ConfigFactoryInterface $config_factory, HttpKernelIn
$this->httpKernel = $http_kernel;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Extension/ModuleHandler.php b/core/lib/Drupal/Core/Extension/ModuleHandler.php
index 2a2113ff13df54a5c0cf193a280ced146deb4306..a3555cd98dc6cea18f7313bb18552b834237d1ef 100644
--- a/core/lib/Drupal/Core/Extension/ModuleHandler.php
+++ b/core/lib/Drupal/Core/Extension/ModuleHandler.php
@@ -429,7 +429,6 @@ public function invokeAllDeprecated($description, $hook, array $args = []) {
return $result;
}
-
/**
* Triggers an E_USER_DEPRECATED error if any module implements the hook.
*
diff --git a/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php b/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php
index a82be6a1d2bd1e6462290ae203da81ae430d2365..00433f0b96640d286209c635a8fd3f73257858a4 100644
--- a/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php
+++ b/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php
@@ -92,7 +92,6 @@ public function uninstall(array $theme_list);
*/
public function listInfo();
-
/**
* Adds a theme extension to the internal listing.
*
diff --git a/core/lib/Drupal/Core/Field/FieldConfigBase.php b/core/lib/Drupal/Core/Field/FieldConfigBase.php
index a32ff423beac9996cdc5dee733d657a588364615..9bb5228441b020a07dc7f519a72c69d92a9ea3c6 100644
--- a/core/lib/Drupal/Core/Field/FieldConfigBase.php
+++ b/core/lib/Drupal/Core/Field/FieldConfigBase.php
@@ -263,7 +263,6 @@ public function onDependencyRemoval(array $dependencies) {
return $changed;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
index 00fe4098c764f9f63f506fd281167dfeb84842a0..22da3be420262eeb0b50ae94a6dd512ca307130d 100644
--- a/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
+++ b/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
@@ -105,7 +105,6 @@ public function getConstraints() {
return $constraints;
}
-
/**
* {@inheritdoc}
*/
@@ -154,7 +153,6 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
return $values;
}
-
/**
* Helper method to get the number of decimal digits out of a decimal number.
*
diff --git a/core/lib/Drupal/Core/Field/WidgetPluginManager.php b/core/lib/Drupal/Core/Field/WidgetPluginManager.php
index c7c2d796da7438fde907c2927bf7732adb3df1da..80e9718769c6d2bd1bcbb025b117f47d3c344540 100644
--- a/core/lib/Drupal/Core/Field/WidgetPluginManager.php
+++ b/core/lib/Drupal/Core/Field/WidgetPluginManager.php
@@ -125,7 +125,6 @@ public function createInstance($plugin_id, array $configuration = []) {
return new $plugin_class($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['third_party_settings']);
}
-
/**
* Merges default values for widget configuration.
*
diff --git a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
index a91069328a8ee854e8fe0a7e9dcbdd61d99e643b..ce0e283c8efcd6d6c0a0555ddd9ac8a639a68e8e 100644
--- a/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
+++ b/core/lib/Drupal/Core/ImageToolkit/ImageToolkitBase.php
@@ -46,7 +46,6 @@ abstract class ImageToolkitBase extends PluginBase implements ImageToolkitInterf
*/
protected $logger;
-
/**
* Constructs an ImageToolkitBase object.
*
diff --git a/core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php b/core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
index 39090e23d9fbb38b41438ed469fe3a8d0eddde65..1f163023596f270893b49dcec338e2a1a19a304e 100644
--- a/core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
+++ b/core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php
@@ -69,7 +69,6 @@ public function getCacheMaxAge() {
return $this->wrappedLink->getCacheMaxAge();
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Menu/MenuLinkManager.php b/core/lib/Drupal/Core/Menu/MenuLinkManager.php
index d6a60943489cb375fc3364b4011ee329c630ab9d..af2e4a594d5dbb3721a8c8c7a2acaccf714fd13f 100644
--- a/core/lib/Drupal/Core/Menu/MenuLinkManager.php
+++ b/core/lib/Drupal/Core/Menu/MenuLinkManager.php
@@ -93,7 +93,6 @@ class MenuLinkManager implements MenuLinkManagerInterface {
*/
protected $moduleHandler;
-
/**
* Constructs a \Drupal\Core\Menu\MenuLinkManager object.
*
diff --git a/core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php b/core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php
index 2a3181ee2edb75fb609e3ebb6c203deb3ec732d0..55a952213adbac83ced3afee9373a5d76f02ca78 100644
--- a/core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php
+++ b/core/lib/Drupal/Core/PathProcessor/PathProcessorManager.php
@@ -86,7 +86,6 @@ protected function getInbound() {
return $this->sortedInbound;
}
-
/**
* Adds an outbound processor object to the $outboundProcessors property.
*
diff --git a/core/lib/Drupal/Core/Plugin/Context/Context.php b/core/lib/Drupal/Core/Plugin/Context/Context.php
index 49571206c40881f8463712f971e5c6c8122f995d..a33eca2a454efb4ddd8c09053fb8fd9811e4694a 100644
--- a/core/lib/Drupal/Core/Plugin/Context/Context.php
+++ b/core/lib/Drupal/Core/Plugin/Context/Context.php
@@ -123,7 +123,6 @@ public function getContextData() {
return $this->contextData;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/lib/Drupal/Core/Queue/QueueFactory.php b/core/lib/Drupal/Core/Queue/QueueFactory.php
index 6df7c5e6026a79d5e55cae815ff0195c4b172f6b..cfb072538adf858e32b31c41910cc951771520c7 100644
--- a/core/lib/Drupal/Core/Queue/QueueFactory.php
+++ b/core/lib/Drupal/Core/Queue/QueueFactory.php
@@ -27,7 +27,6 @@ class QueueFactory implements ContainerAwareInterface {
*/
protected $settings;
-
/**
* Constructs a queue factory.
*/
diff --git a/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php b/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php
index 31ce1c4f499ee86c13b618fe88ca2496f67e03b7..7b0c1c1fd320fd691b0f5549cfaf1c9ac3f0cb2c 100644
--- a/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php
+++ b/core/lib/Drupal/Core/Routing/AccessAwareRouterInterface.php
@@ -24,7 +24,6 @@ interface AccessAwareRouterInterface extends RouterInterface, RequestMatcherInte
*/
public function matchRequest(Request $request);
-
/**
* {@inheritdoc}
*
diff --git a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
index fa12ab48858650dffe71b85cb42892a7e5fae8e1..29277393ff14f59f0a32b501ba46abfabbd05e51 100644
--- a/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
+++ b/core/lib/Drupal/Core/StreamWrapper/LocalReadOnlyStream.php
@@ -69,7 +69,6 @@ public function stream_lock($operation) {
return TRUE;
}
-
/**
* Support for fwrite(), file_put_contents() etc.
*
diff --git a/core/lib/Drupal/Core/Theme/ThemeAccessCheck.php b/core/lib/Drupal/Core/Theme/ThemeAccessCheck.php
index ed596e8b92d6fcd761754b074a3e2dd5a645acf2..f073f46f7cd584cf213ed2e8716a09da32357e0b 100644
--- a/core/lib/Drupal/Core/Theme/ThemeAccessCheck.php
+++ b/core/lib/Drupal/Core/Theme/ThemeAccessCheck.php
@@ -27,6 +27,7 @@ class ThemeAccessCheck implements AccessInterface {
public function __construct(ThemeHandlerInterface $theme_handler) {
$this->themeHandler = $theme_handler;
}
+
/**
* Checks access to the theme for routing.
*
diff --git a/core/lib/Drupal/Core/Validation/ConstraintManager.php b/core/lib/Drupal/Core/Validation/ConstraintManager.php
index a2bd604c0a158098f4c9d7b612c02909488213e4..79da1d6e8a2f6bafc9c0b7e8819a0609e63f057b 100644
--- a/core/lib/Drupal/Core/Validation/ConstraintManager.php
+++ b/core/lib/Drupal/Core/Validation/ConstraintManager.php
@@ -56,7 +56,6 @@ protected function getDiscovery() {
return $this->discovery;
}
-
/**
* Creates a validation constraint.
*
diff --git a/core/modules/aggregator/src/Entity/Item.php b/core/modules/aggregator/src/Entity/Item.php
index b637171da12f97cf9f41b85540131cbb51418077..205252542fdc9aaf11b53afc3e45972a7621c70c 100644
--- a/core/modules/aggregator/src/Entity/Item.php
+++ b/core/modules/aggregator/src/Entity/Item.php
@@ -239,7 +239,6 @@ public function getCacheTagsToInvalidate() {
return Feed::load($this->getFeedId())->getCacheTags();
}
-
/**
* Entity URI callback.
*/
diff --git a/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php b/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
index f4c8e2a57d18c526fc44a7e15a68863f94e6fd18..18390c73ff7f4335a599734c7dc96a3f56e2019e 100644
--- a/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
+++ b/core/modules/aggregator/src/Plugin/Block/AggregatorFeedBlock.php
@@ -57,7 +57,6 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
$this->itemStorage = $item_storage;
}
-
/**
* {@inheritdoc}
*/
@@ -71,7 +70,6 @@ public static function create(ContainerInterface $container, array $configuratio
);
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php b/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php
index 25e33e9774fcba8c63e8f8ef7f1c07481b61b392..de8f703508dc346037fbcb01ac922f8d75bb6910 100644
--- a/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php
+++ b/core/modules/aggregator/src/Plugin/Field/FieldFormatter/AggregatorTitleFormatter.php
@@ -21,6 +21,7 @@
* )
*/
class AggregatorTitleFormatter extends FormatterBase {
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/aggregator/tests/src/Functional/DeleteFeedItemTest.php b/core/modules/aggregator/tests/src/Functional/DeleteFeedItemTest.php
index a8527f6b1c62fa10b9a449a7a8a5d7a91f5da8f0..0708a9ea5a314a845ccfd760d949064c42cf1a52 100644
--- a/core/modules/aggregator/tests/src/Functional/DeleteFeedItemTest.php
+++ b/core/modules/aggregator/tests/src/Functional/DeleteFeedItemTest.php
@@ -8,6 +8,7 @@
* @group aggregator
*/
class DeleteFeedItemTest extends AggregatorTestBase {
+
/**
* Tests running "delete items" from 'admin/config/services/aggregator' page.
*/
diff --git a/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php b/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
index 0f76eee70f87e46ec07f7aefb2c7bdd7146d174a..a7ec0edd5a33777f3da44ee05ca08c5c6cdfbd95 100644
--- a/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
+++ b/core/modules/aggregator/tests/src/Functional/UpdateFeedItemTest.php
@@ -10,6 +10,7 @@
* @group aggregator
*/
class UpdateFeedItemTest extends AggregatorTestBase {
+
/**
* Tests running "update items" from 'admin/config/services/aggregator' page.
*/
diff --git a/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php b/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php
index a81e0aefd1f906d04b0373441a5eb0f2cd3dc066..0c76f978a981c0ddf28ed83f63c0c4288fc66b54 100644
--- a/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php
+++ b/core/modules/aggregator/tests/src/Functional/UpdateFeedTest.php
@@ -8,6 +8,7 @@
* @group aggregator
*/
class UpdateFeedTest extends AggregatorTestBase {
+
/**
* Creates a feed and attempts to update it.
*/
diff --git a/core/modules/block/src/BlockAccessControlHandler.php b/core/modules/block/src/BlockAccessControlHandler.php
index 35af61ed5429ffcf3c3e5304fdefcc9e6c3fec83..265225116e487e238dff3f3a95a3e588919d82ce 100644
--- a/core/modules/block/src/BlockAccessControlHandler.php
+++ b/core/modules/block/src/BlockAccessControlHandler.php
@@ -67,7 +67,6 @@ public function __construct(EntityTypeInterface $entity_type, ContextHandlerInte
$this->contextRepository = $context_repository;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php b/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
index a016ab9141b72a375e48acd1cc9acd6f053b1463..a77c2e1b297c263da760aa4e5a6815607ebdc407 100644
--- a/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
+++ b/core/modules/block_content/tests/src/Functional/Views/BlockContentFieldFilterTest.php
@@ -31,7 +31,6 @@ class BlockContentFieldFilterTest extends BlockContentTestBase {
*/
public $blockContentInfos = [];
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/book/src/BookOutlineStorageInterface.php b/core/modules/book/src/BookOutlineStorageInterface.php
index c09c52afe6fa76805cedeed4086a22ab3e65b3f0..820bc1b2a7c632ceb60ae0f130d7b60e4198ca4d 100644
--- a/core/modules/book/src/BookOutlineStorageInterface.php
+++ b/core/modules/book/src/BookOutlineStorageInterface.php
@@ -110,7 +110,6 @@ public function getBookMenuTree($bid, $parameters, $min_depth, $max_depth);
*/
public function insert($link, $parents);
-
/**
* Updates book reference for links that were moved between books.
*
diff --git a/core/modules/comment/src/Tests/CommentPagerTest.php b/core/modules/comment/src/Tests/CommentPagerTest.php
index 726a8e9ca67d90ab9110f0f94582211607d18dfb..5bbf49c2b473a442af1678776ae3700fe3e53bf1 100644
--- a/core/modules/comment/src/Tests/CommentPagerTest.php
+++ b/core/modules/comment/src/Tests/CommentPagerTest.php
@@ -12,6 +12,7 @@
* @group comment
*/
class CommentPagerTest extends CommentTestBase {
+
/**
* Confirms comment paging works correctly with flat and threaded comments.
*/
diff --git a/core/modules/comment/tests/src/Functional/CommentThreadingTest.php b/core/modules/comment/tests/src/Functional/CommentThreadingTest.php
index 9fe7aea09bae809071fbd1e6d2542911d5ea09a2..e70629e51bb71d2ff5cd8c9533d5c6c730cacde9 100644
--- a/core/modules/comment/tests/src/Functional/CommentThreadingTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentThreadingTest.php
@@ -10,6 +10,7 @@
* @group comment
*/
class CommentThreadingTest extends CommentTestBase {
+
/**
* Tests the comment threading.
*/
diff --git a/core/modules/comment/tests/src/Functional/CommentTitleTest.php b/core/modules/comment/tests/src/Functional/CommentTitleTest.php
index 65c4937e39ea324a0d177d8096cb2be112ea051e..9cd7946895bf444c39f6b2e9648f53a50c300b5a 100644
--- a/core/modules/comment/tests/src/Functional/CommentTitleTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentTitleTest.php
@@ -9,6 +9,7 @@
* @group comment
*/
class CommentTitleTest extends CommentTestBase {
+
/**
* Tests markup for comments with empty titles.
*/
diff --git a/core/modules/comment/tests/src/Functional/CommentUninstallTest.php b/core/modules/comment/tests/src/Functional/CommentUninstallTest.php
index 6e0c8a2b30f83a03feb9877c4f4ef841f8ea0a4e..96d7eeae8daf7f67151de9122e7d330ddbf927d9 100644
--- a/core/modules/comment/tests/src/Functional/CommentUninstallTest.php
+++ b/core/modules/comment/tests/src/Functional/CommentUninstallTest.php
@@ -52,7 +52,6 @@ public function testCommentUninstallWithField() {
}
}
-
/**
* Tests if uninstallation succeeds if the field has been deleted beforehand.
*/
diff --git a/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php b/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php
index 17e04b5c5cf775a7cbeb973190a1f5afbd470257..c6e39f83169e7f601154c5348dc4b5a207a863a3 100644
--- a/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/CommentRestExportTest.php
@@ -46,7 +46,6 @@ protected function setUp($import_test_views = TRUE) {
$this->drupalLogin($user);
}
-
/**
* Test comment row.
*/
diff --git a/core/modules/comment/tests/src/Functional/Views/WizardTest.php b/core/modules/comment/tests/src/Functional/Views/WizardTest.php
index 62fada9fd0417f641067c7c8eadcdfb924020485..9c02fccdac8556c4e34486c036871083b871b376 100644
--- a/core/modules/comment/tests/src/Functional/Views/WizardTest.php
+++ b/core/modules/comment/tests/src/Functional/Views/WizardTest.php
@@ -23,7 +23,6 @@ class WizardTest extends WizardTestBase {
*/
public static $modules = ['node', 'comment'];
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php
index 8aaae756098157d62bcdd21503d8fe6682b035d8..662f5f332e25cf3d0459db9822f902179293969f 100644
--- a/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php
+++ b/core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php
@@ -324,7 +324,9 @@ protected function getMockNode($has_field, $comment_status, $form_location, $com
namespace Drupal\comment;
if (!function_exists('history_read')) {
+
function history_read() {
return 0;
}
+
}
diff --git a/core/modules/config/src/Tests/ConfigInstallProfileUnmetDependenciesTest.php b/core/modules/config/src/Tests/ConfigInstallProfileUnmetDependenciesTest.php
index 6683580eab74418fae3f6b445a8d4037a08f75fb..23199e063299b366c440415c1a82ef64173f4a09 100644
--- a/core/modules/config/src/Tests/ConfigInstallProfileUnmetDependenciesTest.php
+++ b/core/modules/config/src/Tests/ConfigInstallProfileUnmetDependenciesTest.php
@@ -79,7 +79,6 @@ protected function setUpSite() {
// This step is not reached due to the exception.
}
-
/**
* Confirms that the installation succeeded.
*/
diff --git a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
index 1f5232c939ef8b8aba21b6529a818589f44e3691..187155f70eaeb8425bf9faadf79a0ff406e4e05b 100644
--- a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
+++ b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php
@@ -24,7 +24,6 @@ class ConfigInstallProfileOverrideTest extends BrowserTestBase {
*/
protected $profile = 'testing_config_overrides';
-
/**
* Tests install profile config changes.
*/
diff --git a/core/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module b/core/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module
index cef976c6ffefb7e6aa90b215d2afc9d74db53f12..3b49f0aef65c33e2cd2658906b8fc69238fe6b54 100644
--- a/core/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module
+++ b/core/modules/contact/tests/modules/contact_storage_test/contact_storage_test.module
@@ -27,7 +27,6 @@ function contact_storage_test_entity_base_field_info(EntityTypeInterface $entity
}
}
-
/**
* Implements hook_entity_type_alter().
*/
@@ -56,6 +55,7 @@ function contact_storage_test_form_contact_form_form_alter(&$form, FormStateInte
];
$form['#entity_builders'][] = 'contact_storage_test_contact_form_form_builder';
}
+
/**
* Entity builder for the contact form edit form with third party options.
*
diff --git a/core/modules/content_moderation/src/EntityTypeInfo.php b/core/modules/content_moderation/src/EntityTypeInfo.php
index c03cf4922036a6bf5afdb619aaf66924b41e7c2b..80ce9d55df52ec5b9fd98b318dbe5d4da128118a 100644
--- a/core/modules/content_moderation/src/EntityTypeInfo.php
+++ b/core/modules/content_moderation/src/EntityTypeInfo.php
@@ -119,7 +119,6 @@ public static function create(ContainerInterface $container) {
);
}
-
/**
* Adds Moderation configuration to appropriate entity types.
*
diff --git a/core/modules/content_translation/content_translation.admin.inc b/core/modules/content_translation/content_translation.admin.inc
index f7d5a0d21d0c42d14e55f872ed52538778c7ae87..998359d9ddb9ca34df4a584777b775fbde4783e6 100644
--- a/core/modules/content_translation/content_translation.admin.inc
+++ b/core/modules/content_translation/content_translation.admin.inc
@@ -164,6 +164,7 @@ function _content_translation_form_language_content_settings_form_alter(array &$
$form['#validate'][] = 'content_translation_form_language_content_settings_validate';
$form['#submit'][] = 'content_translation_form_language_content_settings_submit';
}
+
/**
* Checks whether translatability should be configurable for a field.
*
diff --git a/core/modules/editor/src/EditorXssFilter/Standard.php b/core/modules/editor/src/EditorXssFilter/Standard.php
index 363497f8d22eac738b55ea3c5d85fc8739aac727..754a014ca6268dc3b2020204f3dad54c66552ed6 100644
--- a/core/modules/editor/src/EditorXssFilter/Standard.php
+++ b/core/modules/editor/src/EditorXssFilter/Standard.php
@@ -116,7 +116,6 @@ protected static function filterXssDataAttributes($html) {
return $html;
}
-
/**
* Get all allowed tags from a restrictions data structure.
*
diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php
index 40b42e1dee34e1b3d342d71bb051780076976224..64e2893e71b948dfbf38ee368e6f54f50785825d 100644
--- a/core/modules/field/field.api.php
+++ b/core/modules/field/field.api.php
@@ -43,7 +43,6 @@
* @see plugin_api
*/
-
/**
* Perform alterations on Field API field types.
*
diff --git a/core/modules/field/src/FieldUninstallValidator.php b/core/modules/field/src/FieldUninstallValidator.php
index 6ee521e002673608e750c370688992c16d73f020..62daf4525a67085164123312835e9b94ec1f2057 100644
--- a/core/modules/field/src/FieldUninstallValidator.php
+++ b/core/modules/field/src/FieldUninstallValidator.php
@@ -85,7 +85,6 @@ protected function getFieldStoragesByModule($module) {
return $this->fieldStorageConfigStorage->loadByProperties(['module' => $module, 'include_deleted' => TRUE]);
}
-
/**
* Returns the label for a specified field type.
*
diff --git a/core/modules/field/tests/modules/field_test/field_test.module b/core/modules/field/tests/modules/field_test/field_test.module
index 4458672f67ec15ab2a1b7570fdef453489ed83a2..2c827c2def3fcdd63fd99d69d3c8f30626be61c6 100644
--- a/core/modules/field/tests/modules/field_test/field_test.module
+++ b/core/modules/field/tests/modules/field_test/field_test.module
@@ -130,7 +130,6 @@ function field_test_field_widget_multivalue_test_field_widget_multiple_single_va
_field_test_alter_widget("hook_field_widget_multivalue_WIDGET_TYPE_form_alter", $elements, $form_state, $context);
}
-
/**
* Sets up alterations for widget alter tests.
*
@@ -164,7 +163,6 @@ function field_test_query_efq_table_prefixing_test_alter(&$query) {
$query->join('entity_test', 'et2', '%alias.id = entity_test.id');
}
-
/**
* Implements hook_query_TAG_alter() for tag 'efq_metadata_test'.
*
diff --git a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
index 7ded590c6a3c907848714e97733b3d68bf9f5fb9..cf53a7402a3e7282d7b2162415730a5d77c1b99f 100644
--- a/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
+++ b/core/modules/field/tests/src/Functional/EntityReference/EntityReferenceFieldTranslatedReferenceViewTest.php
@@ -302,7 +302,6 @@ protected function createReferencedEntityWithTranslation() {
return $node;
}
-
/**
* Create the referenced entity.
*/
diff --git a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
index 1473375b1990ae9db1656fbeed29a8a6e901fb8a..dd9e7d4c0860c4eb7103d4b34a78cef1baf67182 100644
--- a/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
+++ b/core/modules/field/tests/src/Kernel/EntityReference/EntityReferenceFormatterTest.php
@@ -332,7 +332,6 @@ public function testEntityReferenceRecursiveProtectionWithManyRenderedEntities()
$this->assertEquals($expected_occurrences, $actual_occurrences);
}
-
/**
* Tests the label formatter.
*/
diff --git a/core/modules/file/src/Plugin/migrate/source/d6/File.php b/core/modules/file/src/Plugin/migrate/source/d6/File.php
index 714dec96358b2846d2ec1d8de9c84ff8475bca50..9ec4887671ee5cafdadeae4eeb03ec208647277d 100644
--- a/core/modules/file/src/Plugin/migrate/source/d6/File.php
+++ b/core/modules/file/src/Plugin/migrate/source/d6/File.php
@@ -88,6 +88,7 @@ public function fields() {
'is_public' => $this->t('TRUE if the files directory is public otherwise FALSE.'),
];
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/file/src/Tests/DownloadTest.php b/core/modules/file/src/Tests/DownloadTest.php
index 8f85f09f96012b1fa0e2ac91cb9dfcf3b51e1fc2..2864ed22e81b86cf0968dea614fb61eec48a3395 100644
--- a/core/modules/file/src/Tests/DownloadTest.php
+++ b/core/modules/file/src/Tests/DownloadTest.php
@@ -8,6 +8,7 @@
* @group file
*/
class DownloadTest extends FileManagedTestBase {
+
protected function setUp() {
parent::setUp();
// Clear out any hook calls.
diff --git a/core/modules/file/src/Tests/FileFieldPathTest.php b/core/modules/file/src/Tests/FileFieldPathTest.php
index 300b92c3ca26d46a7d4dd50bb723292875e6625c..bd3bcbf36a489a27450118b99898e4c511d92cfd 100644
--- a/core/modules/file/src/Tests/FileFieldPathTest.php
+++ b/core/modules/file/src/Tests/FileFieldPathTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class FileFieldPathTest extends FileFieldTestBase {
+
/**
* Tests the normal formatter display on node display.
*/
diff --git a/core/modules/file/src/Tests/FileFieldRevisionTest.php b/core/modules/file/src/Tests/FileFieldRevisionTest.php
index 04fbcb8767f615affe1e3517ea08e3c8b25db093..4fd1d36601bb933dbfd7b53e10a7d2ae638aafa1 100644
--- a/core/modules/file/src/Tests/FileFieldRevisionTest.php
+++ b/core/modules/file/src/Tests/FileFieldRevisionTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class FileFieldRevisionTest extends FileFieldTestBase {
+
/**
* Tests creating multiple revisions of a node and managing attached files.
*
diff --git a/core/modules/file/src/Tests/FileManagedFileElementTest.php b/core/modules/file/src/Tests/FileManagedFileElementTest.php
index f48532e8d8e0019bd6f6f249c1d40918037306c6..de9b46111051b553b7031720f41a1bc4676473d6 100644
--- a/core/modules/file/src/Tests/FileManagedFileElementTest.php
+++ b/core/modules/file/src/Tests/FileManagedFileElementTest.php
@@ -10,6 +10,7 @@
* that aren't related to fields into it.
*/
class FileManagedFileElementTest extends FileFieldTestBase {
+
/**
* Tests the managed_file element type.
*/
diff --git a/core/modules/file/src/Tests/FileTokenReplaceTest.php b/core/modules/file/src/Tests/FileTokenReplaceTest.php
index 5bfa07b9ab295fd5925a6000294f06c054be66c5..e7c7815bb8775133ba92d91561e2fdc73ff9fe7c 100644
--- a/core/modules/file/src/Tests/FileTokenReplaceTest.php
+++ b/core/modules/file/src/Tests/FileTokenReplaceTest.php
@@ -13,6 +13,7 @@
* @group file
*/
class FileTokenReplaceTest extends FileFieldTestBase {
+
/**
* Creates a file, then tests the tokens generated from it.
*/
diff --git a/core/modules/file/tests/src/Kernel/CopyTest.php b/core/modules/file/tests/src/Kernel/CopyTest.php
index 3193cb6619123d9a39ec17e9e227d5ef2ab02d23..0df63c86b2706c1741bfe7631bb08436afd1d97b 100644
--- a/core/modules/file/tests/src/Kernel/CopyTest.php
+++ b/core/modules/file/tests/src/Kernel/CopyTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class CopyTest extends FileManagedUnitTestBase {
+
/**
* Test file copying in the normal, base case.
*/
diff --git a/core/modules/file/tests/src/Kernel/DeleteTest.php b/core/modules/file/tests/src/Kernel/DeleteTest.php
index de5a5bc045d80af2b2806149495abe1e1e293836..9ab4c51e0de07139609d67242f05642db820401b 100644
--- a/core/modules/file/tests/src/Kernel/DeleteTest.php
+++ b/core/modules/file/tests/src/Kernel/DeleteTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class DeleteTest extends FileManagedUnitTestBase {
+
/**
* Tries deleting a normal file (as opposed to a directory, symlink, etc).
*/
diff --git a/core/modules/file/tests/src/Kernel/LoadTest.php b/core/modules/file/tests/src/Kernel/LoadTest.php
index 9d715395b0ae420b96e8e693d2f4f3b21d716ff3..413086ad1f492984b80f299de0c209836f00a3b5 100644
--- a/core/modules/file/tests/src/Kernel/LoadTest.php
+++ b/core/modules/file/tests/src/Kernel/LoadTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class LoadTest extends FileManagedUnitTestBase {
+
/**
* Try to load a non-existent file by fid.
*/
diff --git a/core/modules/file/tests/src/Kernel/MoveTest.php b/core/modules/file/tests/src/Kernel/MoveTest.php
index 3183ecfe42d83789e75b14c931656f29e83d9fe1..72f6801a551682baa9d1a0c459a0a88f6d0dc2ac 100644
--- a/core/modules/file/tests/src/Kernel/MoveTest.php
+++ b/core/modules/file/tests/src/Kernel/MoveTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class MoveTest extends FileManagedUnitTestBase {
+
/**
* Move a normal file.
*/
diff --git a/core/modules/file/tests/src/Kernel/SaveDataTest.php b/core/modules/file/tests/src/Kernel/SaveDataTest.php
index 747c7b1ca546480d1fdb703eb864dd6579aec943..8d03e3656d026865e97074160bda1309b87fa6ea 100644
--- a/core/modules/file/tests/src/Kernel/SaveDataTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveDataTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class SaveDataTest extends FileManagedUnitTestBase {
+
/**
* Test the file_save_data() function when no filename is provided.
*/
diff --git a/core/modules/file/tests/src/Kernel/SaveTest.php b/core/modules/file/tests/src/Kernel/SaveTest.php
index 193c5684ec1cbba785c09809c4ea7a5d45d29b46..73e8b25a53278f3d460ace6d454508fc77590abd 100644
--- a/core/modules/file/tests/src/Kernel/SaveTest.php
+++ b/core/modules/file/tests/src/Kernel/SaveTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class SaveTest extends FileManagedUnitTestBase {
+
public function testFileSave() {
// Create a new file entity.
$file = File::create([
diff --git a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
index 650a289cfa9a155d231a22f8a60cfa1956de8757..fd5c90cac5ed3004ed0a6e6fe5c1e88ec583b694 100644
--- a/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
+++ b/core/modules/file/tests/src/Kernel/SpaceUsedTest.php
@@ -10,6 +10,7 @@
* @group file
*/
class SpaceUsedTest extends FileManagedUnitTestBase {
+
protected function setUp() {
parent::setUp();
diff --git a/core/modules/file/tests/src/Kernel/UsageTest.php b/core/modules/file/tests/src/Kernel/UsageTest.php
index f95e9cd488219cbeec21661d45aa17733747255c..854360e1c65cd07552efdaeff4b5172354f4291a 100644
--- a/core/modules/file/tests/src/Kernel/UsageTest.php
+++ b/core/modules/file/tests/src/Kernel/UsageTest.php
@@ -15,6 +15,7 @@
* @group file
*/
class UsageTest extends FileManagedUnitTestBase {
+
/**
* Tests \Drupal\file\FileUsage\DatabaseFileUsageBackend::listUsage().
*/
diff --git a/core/modules/file/tests/src/Kernel/ValidateTest.php b/core/modules/file/tests/src/Kernel/ValidateTest.php
index 0f348d69bd1c2c73655b61dee13f28659666bfe3..3e9eb07a8ae552019c2783626ce70bd8e92ee2dd 100644
--- a/core/modules/file/tests/src/Kernel/ValidateTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidateTest.php
@@ -8,6 +8,7 @@
* @group file
*/
class ValidateTest extends FileManagedUnitTestBase {
+
/**
* Test that the validators passed into are checked.
*/
diff --git a/core/modules/file/tests/src/Kernel/ValidatorTest.php b/core/modules/file/tests/src/Kernel/ValidatorTest.php
index b645f3913920ad0a76b44b28fa75735cb3935b2c..ab0d85229c75231239ceae497416e3b9207beefb 100644
--- a/core/modules/file/tests/src/Kernel/ValidatorTest.php
+++ b/core/modules/file/tests/src/Kernel/ValidatorTest.php
@@ -137,7 +137,6 @@ public function testFileValidateNameLength() {
$this->assertEqual(count($errors), 1, 'An error reported for 0 length filename.', 'File');
}
-
/**
* Test file_validate_size().
*/
diff --git a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
index 7b0c029b1b58ed19290f2e0fd88b6c973db830ee..1838cfea79f4393fcfb8fc6b9448179f27f19aae 100644
--- a/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
+++ b/core/modules/filter/tests/src/Kernel/FilterKernelTest.php
@@ -388,7 +388,6 @@ public function testLineBreakFilter() {
}
}
-
/**
* Tests filter settings, defaults, access restrictions and similar.
*
diff --git a/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php b/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
index 19c000012d7cf6410e8154276c06ec0c503abb7d..4114db5efc16995f0b04196fb505105b6aa99180 100644
--- a/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
+++ b/core/modules/forum/tests/src/Functional/Views/ForumIntegrationTest.php
@@ -34,7 +34,6 @@ protected function setUp($import_test_views = TRUE) {
ViewTestData::createTestViews(get_class($this), ['forum_test_views']);
}
-
/**
* Tests the integration.
*/
diff --git a/core/modules/hal/hal.api.php b/core/modules/hal/hal.api.php
index 197785cbc3904ed5a7d8ab40e4d5508216140f79..648de018794fbc33d86c16523a56777fa9f68f52 100644
--- a/core/modules/hal/hal.api.php
+++ b/core/modules/hal/hal.api.php
@@ -33,7 +33,6 @@ function hook_hal_type_uri_alter(&$uri, $context = []) {
}
}
-
/**
* Alter the HAL relation URI.
*
diff --git a/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php b/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
index 1a4ef54e12a8d07362faa64a5e697b210983b502..de9fdc73610ac11dc741c3b7ed901abbca3c1210 100644
--- a/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
+++ b/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
@@ -169,7 +169,6 @@ protected function normalizedFieldValues(FieldItemInterface $field_item, $format
return $normalized;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php b/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
index 355c09d1a67e7c523cd766123149689ed1465c89..edcf3dca1f845b3faf43ca3aebb1982bb3a94232 100644
--- a/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
+++ b/core/modules/hal/tests/src/Kernel/FileNormalizeTest.php
@@ -26,7 +26,6 @@ protected function setUp() {
$this->installEntitySchema('file');
}
-
/**
* Tests the normalize function.
*/
diff --git a/core/modules/help/src/HelpSectionPluginInterface.php b/core/modules/help/src/HelpSectionPluginInterface.php
index 8a725f97941f114d4de136190f77d9f8135389cc..cf377c42022160d9b3957564e94fb9eb4c2b4f56 100644
--- a/core/modules/help/src/HelpSectionPluginInterface.php
+++ b/core/modules/help/src/HelpSectionPluginInterface.php
@@ -17,7 +17,6 @@
*/
interface HelpSectionPluginInterface extends PluginInspectionInterface, CacheableDependencyInterface {
-
/**
* Returns the title of the help section.
*
diff --git a/core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php b/core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php
index 6fa2ffd20da2142e7db3c680b7251a79d0a8ecbc..db390285bbfdcf033e8f8191ec4fd64acea2e7f5 100644
--- a/core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php
+++ b/core/modules/help/tests/modules/help_page_test/src/Plugin/HelpSection/EmptyHelpSection.php
@@ -14,6 +14,7 @@
* )
*/
class EmptyHelpSection extends HelpSectionPluginBase {
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/image/src/Form/ImageStyleDeleteForm.php b/core/modules/image/src/Form/ImageStyleDeleteForm.php
index f49d6b867e253332cfe4d0962187fe0dd6350a4d..a0aea333b5cb0a6ad2c10b12797c9a33634800d1 100644
--- a/core/modules/image/src/Form/ImageStyleDeleteForm.php
+++ b/core/modules/image/src/Form/ImageStyleDeleteForm.php
@@ -25,6 +25,7 @@ class ImageStyleDeleteForm extends EntityDeleteForm {
public function getQuestion() {
return $this->t('Optionally select a style before deleting %style', ['%style' => $this->entity->label()]);
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/image/src/ImageStyleInterface.php b/core/modules/image/src/ImageStyleInterface.php
index 7dec361075534744ef3629810b0dd85e979aa678..8430fdc2f704cfcdb705fad85b487a32c9212625 100644
--- a/core/modules/image/src/ImageStyleInterface.php
+++ b/core/modules/image/src/ImageStyleInterface.php
@@ -42,7 +42,6 @@ public function getName();
*/
public function setName($name);
-
/**
* Returns the URI of this image when using this style.
*
diff --git a/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php b/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php
index 1c7cdcbc28f66f785a868345ec6dc1d76c24b530..fc87845eb610ca5e2904dd8472e1c368b3560e2e 100644
--- a/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php
+++ b/core/modules/language/src/Form/NegotiationBrowserDeleteForm.php
@@ -29,7 +29,6 @@ protected function getEditableConfigNames() {
return ['language.mappings'];
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/language/src/HttpKernel/PathProcessorLanguage.php b/core/modules/language/src/HttpKernel/PathProcessorLanguage.php
index 8bb4f838e91d4564ef4691d83f677278d80683da..9feae277c7f87c81ea026990f76885a12f03806e 100644
--- a/core/modules/language/src/HttpKernel/PathProcessorLanguage.php
+++ b/core/modules/language/src/HttpKernel/PathProcessorLanguage.php
@@ -60,7 +60,6 @@ class PathProcessorLanguage implements InboundPathProcessorInterface, OutboundPa
*/
protected $configSubscriber;
-
/**
* Constructs a PathProcessorLanguage object.
*
diff --git a/core/modules/language/src/Plugin/Block/LanguageBlock.php b/core/modules/language/src/Plugin/Block/LanguageBlock.php
index 8e7ee918d50bd59137081bb07a0cea9d527e6e5b..be8571b975f3b7843cc6a2bbb351cc8704c9eb14 100644
--- a/core/modules/language/src/Plugin/Block/LanguageBlock.php
+++ b/core/modules/language/src/Plugin/Block/LanguageBlock.php
@@ -57,7 +57,6 @@ public function __construct(array $configuration, $plugin_id, $plugin_definition
$this->pathMatcher = $path_matcher;
}
-
/**
* {@inheritdoc}
*/
@@ -71,7 +70,6 @@ public static function create(ContainerInterface $container, array $configuratio
);
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentSettingsTest.php b/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentSettingsTest.php
index d7a4551d6f3436b264253abe6b5635f443617807..fdba37073e4fcd549169c98c5e74c69ee6bd9887 100644
--- a/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentSettingsTest.php
+++ b/core/modules/language/tests/src/Kernel/Migrate/d7/MigrateLanguageContentSettingsTest.php
@@ -17,6 +17,7 @@ class MigrateLanguageContentSettingsTest extends MigrateDrupal7TestBase {
* {@inheritdoc}
*/
public static $modules = ['node', 'text', 'language', 'content_translation', 'menu_ui'];
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php
index 825ca7d863dcc94cbe5263736d51aa30f5ed7bb9..981228956ea69e9195817a832936c766e68b34f9 100644
--- a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php
+++ b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php
@@ -256,7 +256,9 @@ public function providerTestDomain() {
namespace Drupal\language\Plugin\LanguageNegotiation;
if (!function_exists('base_path')) {
+
function base_path() {
return '/';
}
+
}
diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
index 281634c46c8c951405c4e667fcc8f52bf6d7aad9..7570fe92414a64684173c162483dccd7a80b21a0 100644
--- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
+++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
@@ -398,7 +398,6 @@ public function massageFormValues(array $values, array $form, FormStateInterface
return $values;
}
-
/**
* {@inheritdoc}
*
diff --git a/core/modules/link/tests/src/Functional/LinkFieldTest.php b/core/modules/link/tests/src/Functional/LinkFieldTest.php
index e5c8cb3fa171d54d39346f559e1616cbef74c9c4..fc6c9fee26558ceaab5e161cdc8b8f387d359cdd 100644
--- a/core/modules/link/tests/src/Functional/LinkFieldTest.php
+++ b/core/modules/link/tests/src/Functional/LinkFieldTest.php
@@ -662,7 +662,6 @@ public function testLinkTypeOnLinkWidget() {
$this->assertEqual($form[$field_name]['widget'][0]['uri']['#link_type'], $link_type);
}
-
/**
* Tests editing a link to a non-node entity.
*/
diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module
index dbc6dfd724ec875e16ee0026cbe25c9662de5e1d..8bc05fc75fa6bf0c95f2fc20bb0a2f2fc7eba1d1 100644
--- a/core/modules/locale/locale.module
+++ b/core/modules/locale/locale.module
@@ -308,7 +308,6 @@ function locale_get_plural($count, $langcode = NULL) {
return $plural_indexes[$langcode][$count];
}
-
/**
* Implements hook_modules_installed().
*/
@@ -1372,6 +1371,7 @@ function _locale_rebuild_js($langcode = NULL) {
return TRUE;
}
}
+
/**
* Form element callback: After build changes to the language update table.
*
diff --git a/core/modules/locale/src/Form/ImportForm.php b/core/modules/locale/src/Form/ImportForm.php
index 708a121de69aa3e290266741bf698ef253800431..122093ae69d216379b9aa8814900f634354a6c33 100644
--- a/core/modules/locale/src/Form/ImportForm.php
+++ b/core/modules/locale/src/Form/ImportForm.php
@@ -46,6 +46,7 @@ public static function create(ContainerInterface $container) {
$container->get('language_manager')
);
}
+
/**
* Constructs a form for language import.
*
diff --git a/core/modules/locale/src/SourceString.php b/core/modules/locale/src/SourceString.php
index a1af509c2215000d86ecb28d7b575e51a23642dd..dd59954bf7c1bb439d0d9076103e0365e55befeb 100644
--- a/core/modules/locale/src/SourceString.php
+++ b/core/modules/locale/src/SourceString.php
@@ -10,6 +10,7 @@
* value, and is assumed to be in English language.
*/
class SourceString extends StringBase {
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
index 3a12efdf247350ddb789bbacc569804d54a51233..0368350f0adb24dd35b66f60ba977f19778ab219 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleConfigSubscriberTest.php
@@ -187,7 +187,6 @@ protected function setUpNoTranslation($config_name, $key, $source, $langcode) {
$this->assertNoTranslation($config_name, $langcode);
}
-
/**
* Sets up a configuration string with a translation.
*
diff --git a/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php b/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php
index 370c0146de029c515d79efbe92a982a788b11815..8b9b7974dc5984c62a4db0fd64477904cd6b6f71 100644
--- a/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php
+++ b/core/modules/locale/tests/src/Kernel/LocaleTranslationProjectsTest.php
@@ -41,7 +41,6 @@ protected function setUp() {
\Drupal::state()->set('locale.remove_core_project', TRUE);
}
-
/**
* Tests locale_translation_clear_cache_projects().
*/
diff --git a/core/modules/locale/tests/src/Unit/StringBaseTest.php b/core/modules/locale/tests/src/Unit/StringBaseTest.php
index 96bb41bc22b769be813c5b27241bb58bf7ea6afb..7436c70072aa2c87d3ab80b58b4f4544b7609cfb 100644
--- a/core/modules/locale/tests/src/Unit/StringBaseTest.php
+++ b/core/modules/locale/tests/src/Unit/StringBaseTest.php
@@ -21,7 +21,6 @@ public function testSaveWithoutStorage() {
$string->save();
}
-
/**
* @covers ::delete
*/
diff --git a/core/modules/media/src/Plugin/media/Source/File.php b/core/modules/media/src/Plugin/media/Source/File.php
index 0f7631ec2771516af230a81591608e766a66dd5a..480667760f8dd9f76a701059031f514d5c48bc93 100644
--- a/core/modules/media/src/Plugin/media/Source/File.php
+++ b/core/modules/media/src/Plugin/media/Source/File.php
@@ -36,7 +36,6 @@ class File extends MediaSourceBase {
*/
const METADATA_ATTRIBUTE_SIZE = 'filesize';
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php
index 129404407bbee3cf8d27b14479d5e070e1ec3d87..0b8e7ccae0e9946142ffc5777b7888b4a3933760 100644
--- a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php
+++ b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php
@@ -193,6 +193,7 @@ public function preSave(EntityStorageInterface $storage) {
$this->setRequiresRediscovery(FALSE);
}
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php b/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php
index 046deb4a00fd80a3365011fd51693372b30f7c2e..6a7cf4a363d1a79a7ebc04fd61fd965be6ffde5e 100644
--- a/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php
+++ b/core/modules/menu_link_content/tests/src/Kernel/PathAliasMenuLinkContentTest.php
@@ -44,7 +44,6 @@ public function register(ContainerBuilder $container) {
->addTag('path_processor_inbound', ['priority' => 100]);
}
-
/**
* Tests the path aliasing changing.
*/
diff --git a/core/modules/menu_ui/menu_ui.module b/core/modules/menu_ui/menu_ui.module
index cb1e85307f5cda7d31388c211d5407fca85c3428..ab084375ec5406f4483b04260462b9a56e355844 100644
--- a/core/modules/menu_ui/menu_ui.module
+++ b/core/modules/menu_ui/menu_ui.module
@@ -496,7 +496,6 @@ function menu_ui_preprocess_block(&$variables) {
}
}
-
/**
* Implements hook_system_breadcrumb_alter().
*/
diff --git a/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php b/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php
index 180be0a3aae5024f96b6296183ba0f5ce52460a1..a1f973746b2c50786cf71e26e9ba74a0cf104f42 100644
--- a/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php
+++ b/core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php
@@ -48,7 +48,6 @@ public function __construct($subdir, \Traversable $root_namespaces, $plugin_defi
$this->finder = new ClassFinder();
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php b/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php
index 52a57b69f7d28463ce22527a36f6ba47a48765a6..3482e4d3b8d4b53363a46cfc225dd0fdb320cb86 100644
--- a/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php
+++ b/core/modules/migrate/src/Plugin/MigrateIdMapInterface.php
@@ -103,7 +103,6 @@ public function processedCount();
*/
public function importedCount();
-
/**
* Returns a count of items which are marked as needing update.
*
diff --git a/core/modules/migrate/src/Plugin/Migration.php b/core/modules/migrate/src/Plugin/Migration.php
index 3007815d041fe34de7aae9ccb373b1add192f7d0..5ff495b266c7193e9e31570ed819917d9e7ea48e 100644
--- a/core/modules/migrate/src/Plugin/Migration.php
+++ b/core/modules/migrate/src/Plugin/Migration.php
@@ -554,7 +554,6 @@ public function set($property_name, $value) {
return $this;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/migrate/src/Plugin/MigrationPluginManager.php b/core/modules/migrate/src/Plugin/MigrationPluginManager.php
index 74f151999bd47fe9d9fb23b545469702bbc016b6..d06341fcc89d992b2aa4cfef5884c34b6232d22c 100644
--- a/core/modules/migrate/src/Plugin/MigrationPluginManager.php
+++ b/core/modules/migrate/src/Plugin/MigrationPluginManager.php
@@ -160,7 +160,6 @@ protected function expandPluginIds(array $migration_ids) {
return $plugin_ids;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php b/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php
index 8a6fe9a43dbc99157d3156be5e1fcb55b5c782ec..7c331910e2104cf4b1187d75c07286660defe238 100644
--- a/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php
+++ b/core/modules/migrate/tests/src/Unit/destination/EntityRevisionTest.php
@@ -176,7 +176,6 @@ public function testSave() {
$this->assertEquals([1234], $destination->save($entity->reveal(), []));
}
-
/**
* Helper method to create an entity revision destination with mock services.
*
diff --git a/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php b/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php
index f450984d4889b0fc2d11d4b8001a94200cd5ba8d..5c4a856c0b11f79c247847a964a1b1c9ec214725 100644
--- a/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php
+++ b/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityDisplayTest.php
@@ -53,13 +53,16 @@ public function testImport() {
class TestPerComponentEntityDisplay extends ComponentEntityDisplayBase {
const MODE_NAME = 'view_mode';
protected $testValues;
+
public function __construct($entity) {
$this->entity = $entity;
}
+
protected function getEntity($entity_type, $bundle, $view_mode) {
$this->testValues = func_get_args();
return $this->entity;
}
+
public function getTestValues() {
return $this->testValues;
}
diff --git a/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php b/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php
index 157d45e3393e2462c6912aa3d2aa4e1e529deebd..218d9a6585c1440a03cfa9a0330dac352c701305 100644
--- a/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php
+++ b/core/modules/migrate/tests/src/Unit/destination/PerComponentEntityFormDisplayTest.php
@@ -53,13 +53,16 @@ public function testImport() {
class TestPerComponentEntityFormDisplay extends PerComponentEntityFormDisplay {
const MODE_NAME = 'form_mode';
protected $testValues;
+
public function __construct($entity) {
$this->entity = $entity;
}
+
protected function getEntity($entity_type, $bundle, $form_mode) {
$this->testValues = func_get_args();
return $this->entity;
}
+
public function getTestValues() {
return $this->testValues;
}
diff --git a/core/modules/migrate/tests/src/Unit/process/ConcatTest.php b/core/modules/migrate/tests/src/Unit/process/ConcatTest.php
index e7873fee398897da16d51df69deaa408d79ec87f..8acbc11573a1be4de0f06d0a5257b992e29f452b 100644
--- a/core/modules/migrate/tests/src/Unit/process/ConcatTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/ConcatTest.php
@@ -53,6 +53,7 @@ public function testConcatWithDelimiter() {
}
class TestConcat extends Concat {
+
public function __construct() {
}
diff --git a/core/modules/migrate/tests/src/Unit/process/GetTest.php b/core/modules/migrate/tests/src/Unit/process/GetTest.php
index 5bc6247e7d8b1e6f8cb521934f183322e8858f2e..67f56b0a78b7efec75d6318423d850616c6baf3a 100644
--- a/core/modules/migrate/tests/src/Unit/process/GetTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/GetTest.php
@@ -114,8 +114,10 @@ public function testIntegerValues() {
namespace Drupal\migrate\Plugin\migrate\process;
class TestGet extends Get {
+
public function __construct() {
}
+
public function setSource($source) {
$this->configuration['source'] = $source;
}
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 5822cb07f7ec5ee7b689480b63683da77410cf8e..b26be926846b1c4e0b430a0c2c775a3f633851f5 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -1035,7 +1035,6 @@ function node_access_view_all_nodes($account = NULL) {
return $access[$account->id()];
}
-
/**
* Implements hook_query_TAG_alter().
*
diff --git a/core/modules/node/src/Entity/Node.php b/core/modules/node/src/Entity/Node.php
index ccee95b3a663bb5dfa8287bde4dc40f03a45681f..827c459f724e8a3a5bf6c9af603ef2e608efff0a 100644
--- a/core/modules/node/src/Entity/Node.php
+++ b/core/modules/node/src/Entity/Node.php
@@ -212,7 +212,6 @@ public function getCreatedTime() {
return $this->get('created')->value;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/node/src/NodeAccessControlHandler.php b/core/modules/node/src/NodeAccessControlHandler.php
index a8a0bc6241e03a41ccbc64452f742293547ab676..5ccc6425e36daf45dab23af61fe64dc14536b826 100644
--- a/core/modules/node/src/NodeAccessControlHandler.php
+++ b/core/modules/node/src/NodeAccessControlHandler.php
@@ -50,7 +50,6 @@ public static function createInstance(ContainerInterface $container, EntityTypeI
);
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/node/src/Plugin/views/filter/Access.php b/core/modules/node/src/Plugin/views/filter/Access.php
index 71e8e95e5aace600236c082b03ed7ee940ea2271..38f16377c424034c65d39a15aeed42ad6074a98d 100644
--- a/core/modules/node/src/Plugin/views/filter/Access.php
+++ b/core/modules/node/src/Plugin/views/filter/Access.php
@@ -16,7 +16,9 @@
class Access extends FilterPluginBase {
public function adminSummary() {}
+
protected function operatorForm(&$form, FormStateInterface $form_state) {}
+
public function canExpose() {
return FALSE;
}
diff --git a/core/modules/node/tests/src/Functional/PageViewTest.php b/core/modules/node/tests/src/Functional/PageViewTest.php
index 9f7e41402c9c8087af5fd4b264c72ffa0b432a55..1f796d83c7cf0a9fcb9d5478a5cd3a8d256415a6 100644
--- a/core/modules/node/tests/src/Functional/PageViewTest.php
+++ b/core/modules/node/tests/src/Functional/PageViewTest.php
@@ -10,6 +10,7 @@
* @group node
*/
class PageViewTest extends NodeTestBase {
+
/**
* Tests an anonymous and unpermissioned user attempting to edit the node.
*/
diff --git a/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php b/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php
index 0a0f145dd9a47b80f3b88322cca9c32a58870e6d..420b30661e5a97d4c38e742f94860b6bb4cf739d 100644
--- a/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php
+++ b/core/modules/node/tests/src/Kernel/NodeListBuilderTest.php
@@ -23,7 +23,6 @@ protected function setUp() {
$this->installEntitySchema('node');
}
-
/**
* Tests that the correct cache contexts are set.
*/
diff --git a/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php b/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php
index 9205011ed8a986acfe177b99aa25ec1a924450de..7ef535c96c165ea13e03290f5dda80583bd21d53 100644
--- a/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsDynamicValuesValidationTest.php
@@ -8,6 +8,7 @@
* @group options
*/
class OptionsDynamicValuesValidationTest extends OptionsDynamicValuesTestBase {
+
/**
* Test that allowed values function gets the entity.
*/
diff --git a/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php b/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php
index b661c0d53625357ee6e1985f60186d3d4924cae4..e94126504062c47e2297e892fa84620fae6b82fa 100644
--- a/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsSelectDynamicValuesTest.php
@@ -8,6 +8,7 @@
* @group options
*/
class OptionsSelectDynamicValuesTest extends OptionsDynamicValuesTestBase {
+
/**
* Tests the 'options_select' widget (single select).
*/
diff --git a/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php b/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php
index a2157f1f918cac306a7cf317c5dee6cf6ee360e1..a6cee048a87f70cb0f14d7e94b98275609ac7627 100644
--- a/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php
+++ b/core/modules/options/tests/src/Functional/OptionsWidgetsTest.php
@@ -35,7 +35,6 @@ class OptionsWidgetsTest extends FieldTestBase {
*/
protected $card2;
-
protected function setUp() {
parent::setUp();
diff --git a/core/modules/rdf/rdf.module b/core/modules/rdf/rdf.module
index 8d4329884d604d4cd8b30b324f1c0f5555601a13..dbffb20c017b728025c1dfa5a775408b901eae4d 100644
--- a/core/modules/rdf/rdf.module
+++ b/core/modules/rdf/rdf.module
@@ -38,6 +38,7 @@ function rdf_help($route_name, RouteMatchInterface $route_match) {
* into variables available to theme functions and templates. All Drupal core
* themes are coded to be RDFa compatible.
*/
+
/**
* Returns the RDF mapping object associated with a bundle.
*
@@ -293,7 +294,6 @@ function _rdf_set_field_rel_attribute(&$variables) {
}
}
-
/**
* Implements hook_preprocess_HOOK() for node templates.
*/
diff --git a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
index 39f4831223a07c55d4af5321c5e860e1df636ad2..4023ef26b279a4204c6bb791ea2145a2cf066aa7 100644
--- a/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
+++ b/core/modules/rdf/tests/src/Kernel/RdfaAttributesTest.php
@@ -73,7 +73,6 @@ public function testDatatypeCallback() {
$this->_testAttributes($expected_attributes, $mapping, $date);
}
-
/**
* Test attribute creation for mappings which use data converters.
*/
diff --git a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
index 9196135afdc9118dbe7b9b6bf566e75cad33b4d2..04efb7b803713bd4bcc058564890b0747ac84a36 100644
--- a/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
+++ b/core/modules/responsive_image/src/Tests/ResponsiveImageFieldDisplayTest.php
@@ -151,6 +151,7 @@ protected function addTestImageStyleMappings($empty_styles = FALSE) {
->save();
}
}
+
/**
* Test responsive image formatters on node display.
*
diff --git a/core/modules/rest/rest.api.php b/core/modules/rest/rest.api.php
index 6c09bbff530b8fba1dffa36eda2b23d28dc80582..0890e3bbf202c3c37e1d9309a08ea70525b01f06 100644
--- a/core/modules/rest/rest.api.php
+++ b/core/modules/rest/rest.api.php
@@ -56,7 +56,6 @@ function hook_rest_type_uri_alter(&$uri, $context = []) {
}
}
-
/**
* Alter the REST relation URI.
*
diff --git a/core/modules/rest/src/Plugin/views/display/RestExport.php b/core/modules/rest/src/Plugin/views/display/RestExport.php
index 52daee05f040fea0df626f50d9c292f00be32669..93605b8e9501a75fa683c454983c22b35799fe7b 100644
--- a/core/modules/rest/src/Plugin/views/display/RestExport.php
+++ b/core/modules/rest/src/Plugin/views/display/RestExport.php
@@ -166,6 +166,7 @@ public static function create(ContainerInterface $container, array $configuratio
$container->getParameter('serializer.format_providers')
);
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/BlockContent/BlockContentResourceTestBase.php b/core/modules/rest/tests/src/Functional/EntityResource/BlockContent/BlockContentResourceTestBase.php
index 260511a346519b1d8fc7dbdc1a08dcae49648e99..cdc89d39614751712bbe8128ca343d0b9cd8b26e 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/BlockContent/BlockContentResourceTestBase.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/BlockContent/BlockContentResourceTestBase.php
@@ -161,7 +161,6 @@ protected function getNormalizedPostEntity() {
];
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/rest/tests/src/Functional/EntityResource/XmlEntityNormalizationQuirksTrait.php b/core/modules/rest/tests/src/Functional/EntityResource/XmlEntityNormalizationQuirksTrait.php
index b69394ba1420499a698ae165d06dd15c1e8af78b..3064ea3a50f04fbdc436ada378b1cf7b52d44e12 100644
--- a/core/modules/rest/tests/src/Functional/EntityResource/XmlEntityNormalizationQuirksTrait.php
+++ b/core/modules/rest/tests/src/Functional/EntityResource/XmlEntityNormalizationQuirksTrait.php
@@ -107,7 +107,6 @@ protected function applyXmlFieldDecodingQuirks(array $normalization) {
return $normalization;
}
-
/**
* Applies the XML config entity encoding quirks that remain after decoding.
*
diff --git a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
index de75f3ea2cec18d61542bd4d3ba245201ca8803f..a791838f9fdd3280d3ea022ea3f3afb6d8708696 100644
--- a/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
+++ b/core/modules/rest/tests/src/Kernel/RequestHandlerTest.php
@@ -97,8 +97,11 @@ public function testHandle() {
class StubRequestHandlerResourcePlugin extends ResourceBase {
public function get($example, Request $request) {}
+
public function post() {}
+
public function patch($example_original, Request $request) {}
+
public function delete() {}
}
diff --git a/core/modules/search/tests/src/Functional/SearchExactTest.php b/core/modules/search/tests/src/Functional/SearchExactTest.php
index 04163918e540131599e5d6569c451dfc8cf69592..fc9cec2d562dfb3761d4189fcba9b11dec78d0a0 100644
--- a/core/modules/search/tests/src/Functional/SearchExactTest.php
+++ b/core/modules/search/tests/src/Functional/SearchExactTest.php
@@ -8,6 +8,7 @@
* @group search
*/
class SearchExactTest extends SearchTestBase {
+
/**
* Tests that the correct number of pager links are found for both keywords and phrases.
*/
diff --git a/core/modules/search/tests/src/Functional/SearchSimplifyTest.php b/core/modules/search/tests/src/Functional/SearchSimplifyTest.php
index 1c30c2e3639e2c7d789b74023d159b2f4c98f7fe..399f4ba0d851774c547faa16f5fbf3d2f9980ea1 100644
--- a/core/modules/search/tests/src/Functional/SearchSimplifyTest.php
+++ b/core/modules/search/tests/src/Functional/SearchSimplifyTest.php
@@ -8,6 +8,7 @@
* @group search
*/
class SearchSimplifyTest extends SearchTestBase {
+
/**
* Tests that all Unicode characters simplify correctly.
*/
diff --git a/core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php b/core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php
index 69dffd87cc84e26a2ef6936fb6e896d7c8ac00b3..5321a51d819d2146463318f59986e99606b57cce 100644
--- a/core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php
+++ b/core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php
@@ -273,11 +273,13 @@ public function testSortSearchPages() {
}
class TestSearchPage extends SearchPage {
+
public function __construct(array $values) {
foreach ($values as $key => $value) {
$this->$key = $value;
}
}
+
public function label($langcode = NULL) {
return $this->label;
}
diff --git a/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php b/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php
index a347982b372fd6cb0b43ca77910d9449d9683b2a..cbff14a9b45b6f28edc78dc1c30ead92eba715a0 100644
--- a/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php
+++ b/core/modules/serialization/tests/src/Unit/Encoder/XmlEncoderTest.php
@@ -97,6 +97,7 @@ public function testDefaultEncoderHasSerializer() {
}
class TestObject {
+
public function getA() {
return 'A';
}
diff --git a/core/modules/simpletest/simpletest.api.php b/core/modules/simpletest/simpletest.api.php
index 62563a0893ddb73b24e7006a09378338916129f8..d8f8209460157c0c1f13ceb214927a30ee577a19 100644
--- a/core/modules/simpletest/simpletest.api.php
+++ b/core/modules/simpletest/simpletest.api.php
@@ -62,7 +62,6 @@ function hook_test_group_finished() {
function hook_test_finished($results) {
}
-
/**
* @} End of "addtogroup hooks".
*/
diff --git a/core/modules/simpletest/src/KernelTestBase.php b/core/modules/simpletest/src/KernelTestBase.php
index 12113bce9b6a0b274743e2aa913e6d98a1d961ec..c8b8669d542b627a030f54c05b3012b4ab4e3d9d 100644
--- a/core/modules/simpletest/src/KernelTestBase.php
+++ b/core/modules/simpletest/src/KernelTestBase.php
@@ -478,7 +478,6 @@ protected function installSchema($module, $tables) {
]));
}
-
/**
* Installs the storage schema for a specific entity type.
*
diff --git a/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php b/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php
index f610eaf429de0999b232b1349399ce3b166ba431..8cb0904bf9967bf400142a07c4708fb2c980548e 100644
--- a/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php
+++ b/core/modules/simpletest/tests/src/Functional/MailCaptureTest.php
@@ -15,6 +15,7 @@ class MailCaptureTest extends BrowserTestBase {
use AssertMailTrait {
getMails as drupalGetMails;
}
+
/**
* Test to see if the wrapper function is executed correctly.
*/
diff --git a/core/modules/statistics/src/StatisticsViewsResult.php b/core/modules/statistics/src/StatisticsViewsResult.php
index ef0db9775e79783b9e34f9cd7f9cc487e3b7a569..f3253e5b84cada92f3c88fad1bd44edd5724a743 100644
--- a/core/modules/statistics/src/StatisticsViewsResult.php
+++ b/core/modules/statistics/src/StatisticsViewsResult.php
@@ -37,7 +37,6 @@ public function getTotalCount() {
return $this->totalCount;
}
-
/**
* Total number of times the entity has been viewed "today".
*
@@ -47,7 +46,6 @@ public function getDayCount() {
return $this->dayCount;
}
-
/**
* Timestamp of when the entity was last viewed.
*
diff --git a/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php b/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
index 8402d221af0e3fcef82240b16744ff441827dce8..50616af23aad90c8a9a0582bccaa1a4fd7f80542 100644
--- a/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
+++ b/core/modules/statistics/tests/src/Functional/StatisticsTokenReplaceTest.php
@@ -9,6 +9,7 @@
* @group statistics
*/
class StatisticsTokenReplaceTest extends StatisticsTestBase {
+
/**
* Creates a node, then tests the statistics tokens generated from it.
*/
diff --git a/core/modules/system/src/CronController.php b/core/modules/system/src/CronController.php
index 915a0c887eb16a4bbf3b16e27ad4982e0031c8f5..2626bf3a05915858341cc669e6a0c546951ea70e 100644
--- a/core/modules/system/src/CronController.php
+++ b/core/modules/system/src/CronController.php
@@ -36,7 +36,6 @@ public static function create(ContainerInterface $container) {
return new static($container->get('cron'));
}
-
/**
* Run Cron once.
*
diff --git a/core/modules/system/src/Form/SiteMaintenanceModeForm.php b/core/modules/system/src/Form/SiteMaintenanceModeForm.php
index 58b1f1a9d62c1c36236f7702b3f5c475f29982c3..dae500df48403e373861ccccd9cd3cb8eb76b0c7 100644
--- a/core/modules/system/src/Form/SiteMaintenanceModeForm.php
+++ b/core/modules/system/src/Form/SiteMaintenanceModeForm.php
@@ -56,6 +56,7 @@ public static function create(ContainerInterface $container) {
$container->get('user.permissions')
);
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php b/core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php
index 3dc88810d5756f316c128285581017f37a4bafb7..7d11beea1941bdf022fffc70d6949258413785fe 100644
--- a/core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php
+++ b/core/modules/system/src/Plugin/migrate/process/d6/TimeZone.php
@@ -14,6 +14,7 @@
* )
*/
class TimeZone extends ProcessPluginBase {
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php b/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php
index 4116f5f892b3ca8fd15a64a55e23ecb8067130dd..39af58be5a5129b9f258b0718ffd0ab350703851 100644
--- a/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php
+++ b/core/modules/system/src/Tests/Ajax/AjaxInGroupTest.php
@@ -8,6 +8,7 @@
* @group Ajax
*/
class AjaxInGroupTest extends AjaxTestBase {
+
protected function setUp() {
parent::setUp();
diff --git a/core/modules/system/src/Tests/Ajax/CommandsTest.php b/core/modules/system/src/Tests/Ajax/CommandsTest.php
index 6ae97ae1341aad9dcf403595bbadced297d25632..b91ac98271cae95c395cedd57eda662deb0198ec 100644
--- a/core/modules/system/src/Tests/Ajax/CommandsTest.php
+++ b/core/modules/system/src/Tests/Ajax/CommandsTest.php
@@ -29,6 +29,7 @@
* @group Ajax
*/
class CommandsTest extends AjaxTestBase {
+
/**
* Tests the various Ajax Commands.
*/
diff --git a/core/modules/system/src/Tests/Ajax/ElementValidationTest.php b/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
index d20f453be48fd9c65a6285af812d3c41520276db..169a38900be357440e3135c325ec551aafa689d3 100644
--- a/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
+++ b/core/modules/system/src/Tests/Ajax/ElementValidationTest.php
@@ -8,6 +8,7 @@
* @group Ajax
*/
class ElementValidationTest extends AjaxTestBase {
+
/**
* Tries to post an Ajax change to a form that has a validated element.
*
diff --git a/core/modules/system/src/Tests/Ajax/FormValuesTest.php b/core/modules/system/src/Tests/Ajax/FormValuesTest.php
index 9f4b521752538d4f93b238e9ecbb0dbd141ea31b..358db893388b4865766b30c09fc516904edebbbd 100644
--- a/core/modules/system/src/Tests/Ajax/FormValuesTest.php
+++ b/core/modules/system/src/Tests/Ajax/FormValuesTest.php
@@ -10,6 +10,7 @@
* @group Ajax
*/
class FormValuesTest extends AjaxTestBase {
+
protected function setUp() {
parent::setUp();
diff --git a/core/modules/system/src/Tests/Ajax/FrameworkTest.php b/core/modules/system/src/Tests/Ajax/FrameworkTest.php
index 14bae0644293c02509a0a20b402b042dda23374d..507493b7d09b5d5069c794fcc6deb2eda9b22344 100644
--- a/core/modules/system/src/Tests/Ajax/FrameworkTest.php
+++ b/core/modules/system/src/Tests/Ajax/FrameworkTest.php
@@ -16,6 +16,7 @@
* @group Ajax
*/
class FrameworkTest extends AjaxTestBase {
+
/**
* Verifies the Ajax rendering of a command in the settings.
*/
diff --git a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
index 9cbda92cf6da476c31cd41994f33e66b020e1fd0..030526eef9fa42c2ecff07c9416fe28c9b7e641f 100644
--- a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
+++ b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php
@@ -163,7 +163,6 @@ public function testAdvancedSelect() {
$this->assertNoFieldByXPath('//th[@class="select-all"]', NULL, 'Do not display a "Select all" checkbox when #multiple is FALSE, even when #js_select is TRUE.');
}
-
/**
* Test the whether the option checker gives an error on invalid tableselect values for checkboxes.
*/
@@ -187,7 +186,6 @@ public function testMultipleTrueOptionchecker() {
}
-
/**
* Test the whether the option checker gives an error on invalid tableselect values for radios.
*/
@@ -211,7 +209,6 @@ public function testMultipleFalseOptionchecker() {
$this->assertTrue(isset($errors['tableselect']), 'Option checker disallows invalid values for radio buttons.');
}
-
/**
* Helper function for the option check test to submit a form while collecting errors.
*
diff --git a/core/modules/system/src/Tests/Path/UrlAliasFixtures.php b/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
index 71cd736380e0efeaf4acdbea1f29767dffb90163..bb57c31ba128c50ca782023d2ccc493a15a05ccc 100644
--- a/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
+++ b/core/modules/system/src/Tests/Path/UrlAliasFixtures.php
@@ -71,7 +71,6 @@ public function sampleUrlAliases() {
];
}
-
/**
* Returns the table definition for the URL alias fixtures.
*
diff --git a/core/modules/system/system.post_update.php b/core/modules/system/system.post_update.php
index 038d4b82909b29615e44979f655dc47c15576dd0..0662853339d412b5517c3255977c6bf598d2b235 100644
--- a/core/modules/system/system.post_update.php
+++ b/core/modules/system/system.post_update.php
@@ -51,7 +51,6 @@ function system_post_update_add_region_to_entity_displays() {
array_map($entity_save, EntityFormDisplay::loadMultiple());
}
-
/**
* Force caches using hashes to be cleared (Twig, render cache, etc.).
*/
diff --git a/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php b/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
index daedcf17069fef52dd72c46bc739366ceeb15cd6..eafe8a98a7a160daefe544afaee537f4dc88f785 100644
--- a/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
+++ b/core/modules/system/tests/modules/ajax_test/src/Form/AjaxTestDialogForm.php
@@ -67,7 +67,6 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
$form_state->setRedirect('ajax_test.dialog_contents');
}
-
/**
* AJAX callback handler for AjaxTestDialogForm.
*/
@@ -82,7 +81,6 @@ public function nonModal(&$form, FormStateInterface $form_state) {
return $this->dialog(FALSE);
}
-
/**
* Util to render dialog in ajax callback.
*
diff --git a/core/modules/system/tests/modules/database_test/database_test.module b/core/modules/system/tests/modules/database_test/database_test.module
index 1eaa103fa59804c493cae64a2552e0d052bd9349..210998444a25a1d26ad6bd70d66b14b1988abbf3 100644
--- a/core/modules/system/tests/modules/database_test/database_test.module
+++ b/core/modules/system/tests/modules/database_test/database_test.module
@@ -38,7 +38,6 @@ function database_test_query_alter(AlterableInterface $query) {
}
}
-
/**
* Implements hook_query_TAG_alter().
*
diff --git a/core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php b/core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php
index 2fd98281803188affd5a423bd633867bb4ecbed0..4b3aee92d8a3baef5f23ba9b82cdc94430245c86 100644
--- a/core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php
+++ b/core/modules/system/tests/modules/dialog_renderer_test/src/Render/MainContent/WideModalRenderer.php
@@ -38,7 +38,6 @@ public function __construct(TitleResolverInterface $title_resolver, $mode = 'wid
$this->mode = $mode;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/system/tests/modules/entity_test/src/Controller/EntityTestController.php b/core/modules/system/tests/modules/entity_test/src/Controller/EntityTestController.php
index a69348849f44935b219b534160be28277f0faa75..fa69e783d08a39d7c1108a7c7189384f3478ae83 100644
--- a/core/modules/system/tests/modules/entity_test/src/Controller/EntityTestController.php
+++ b/core/modules/system/tests/modules/entity_test/src/Controller/EntityTestController.php
@@ -95,7 +95,6 @@ public function listEntitiesAlphabetically($entity_type_id) {
];
}
-
/**
* Empty list of entities of the given entity type.
*
diff --git a/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php b/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
index d46db774d68fb969e5e34147a334858b9314e620..1bc25bb557abee52d2ca966cde600680f946cd97 100644
--- a/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
+++ b/core/modules/system/tests/modules/js_webassert_test/src/Form/JsWebAssertTestForm.php
@@ -139,6 +139,7 @@ public static function addLink(array $form, FormStateInterface $form_state) {
];
return $form;
}
+
/**
* Ajax callback for the "Add field" button.
*/
@@ -179,7 +180,6 @@ public static function addAssertWaitOnAjaxRequest(array $form, FormStateInterfac
return $form;
}
-
/**
* Ajax callback for the "Test waitForElementVisible" button.
*/
diff --git a/core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php b/core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php
index fe6566cddb32a35885c433cc843861ba35040618..8472b99a183ceaeefefbed787a8a55ed9ea6cad3 100644
--- a/core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php
+++ b/core/modules/system/tests/modules/menu_test/src/Controller/MenuTestController.php
@@ -71,7 +71,6 @@ public function menuTestCallback() {
return ['#markup' => 'This is the menuTestCallback content.'];
}
-
/**
* A title callback method for test routes.
*
diff --git a/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php b/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php
index 6cd97a0cb65acd5ebb91d07ca7a29dba72a9c33b..11993b71f48ec91e60da4c0104651a0a62e0c1dd 100644
--- a/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php
+++ b/core/modules/system/tests/modules/module_autoload_test/src/SomeClass.php
@@ -3,6 +3,7 @@
namespace Drupal\module_autoload_test;
class SomeClass {
+
public function testMethod() {
return 'Drupal\\module_autoload_test\\SomeClass::testMethod() was invoked.';
}
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
index 443ab5d04090ca8f1e96cd672910b03f2ce49f21..78a02a95dd166ba1f878f88e8253a03c63b7da14 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/MockBlockManager.php
@@ -12,6 +12,7 @@
* Defines a plugin manager used by Plugin API derivative unit tests.
*/
class MockBlockManager extends PluginManagerBase {
+
public function __construct() {
// Create the object that can be used to return definitions for all the
diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/TestPluginManager.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/TestPluginManager.php
index ec464a5b7ae84e84521badeae7b73d33da486446..d044bafcc135a1e99f7e05631878fbe655165328 100644
--- a/core/modules/system/tests/modules/plugin_test/src/Plugin/TestPluginManager.php
+++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/TestPluginManager.php
@@ -10,6 +10,7 @@
* Defines a plugin manager used by Plugin API unit tests.
*/
class TestPluginManager extends PluginManagerBase {
+
public function __construct() {
// Create the object that can be used to return definitions for all the
diff --git a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
index f1ed8f3a991b9c2e411953a32b3744d8a272af48..c9a939000a71637c60e277aa48fc43ffaee2f7bf 100644
--- a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
+++ b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php
@@ -119,7 +119,6 @@ public function functionSuggestionAlter() {
return ['#theme' => 'theme_test_function_suggestions'];
}
-
/**
* Menu callback for testing includes with suggestion alter hooks.
*/
diff --git a/core/modules/system/tests/modules/update_test_schema/update_test_schema.install b/core/modules/system/tests/modules/update_test_schema/update_test_schema.install
index 972f9017616fedbddd1e1d53c46b3e5de41dab77..eef6b255aa09e8a0ad1320c7dae3aff594a8edaa 100644
--- a/core/modules/system/tests/modules/update_test_schema/update_test_schema.install
+++ b/core/modules/system/tests/modules/update_test_schema/update_test_schema.install
@@ -31,6 +31,7 @@ function update_test_schema_schema() {
$schema_version = \Drupal::state()->get('update_test_schema_version', 8000);
if ($schema_version >= 8001) {
+
/**
* Schema version 8001.
*/
@@ -45,4 +46,5 @@ function update_test_schema_update_8001() {
// Add a column.
db_add_index('update_test_schema_table', 'test', ['a'], $table);
}
+
}
diff --git a/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php b/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php
index 2d7c7ae01c527f6fcafa63bc528a94128b9e31e9..97dc6e7a5f692beae7367c1dba49a75d30fe3b07 100644
--- a/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php
+++ b/core/modules/system/tests/src/Functional/Batch/ProcessingTest.php
@@ -175,7 +175,6 @@ public function testBatchLargePercentage() {
$this->assertText('Redirection successful.', 'Redirection after batch execution is correct.');
}
-
/**
* Triggers a pass if the texts were found in order in the raw content.
*
diff --git a/core/modules/system/tests/src/Functional/Entity/ConfigEntityImportTest.php b/core/modules/system/tests/src/Functional/Entity/ConfigEntityImportTest.php
index 6c5a9d64c59e4acac6292b2a409a6160f169e263..b69960375501e3ac4de9a14e104a0c462bd89066 100644
--- a/core/modules/system/tests/src/Functional/Entity/ConfigEntityImportTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/ConfigEntityImportTest.php
@@ -42,6 +42,7 @@ public function testConfigUpdateImport() {
$this->doImageStyleUpdate();
$this->doSearchPageUpdate();
}
+
/**
* Tests updating a action during import.
*/
diff --git a/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php b/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
index f3285ae5d5ecb72dfabf8f4e23127926fa86b2f6..1c3c6e3e0aeef264f59037e3ff06168b65d8faf7 100644
--- a/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Entity/Update/UpdateApiEntityDefinitionUpdateTest.php
@@ -34,7 +34,6 @@ class UpdateApiEntityDefinitionUpdateTest extends BrowserTestBase {
*/
protected $updatesManager;
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php b/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php
index 82410fd52a7cb51e4fca161d595b40fdb7e4f91b..02bfca8441263d4f0ba2bf15ec1aab91ddd3f118 100644
--- a/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php
+++ b/core/modules/system/tests/src/Functional/Mail/HtmlToTextTest.php
@@ -13,6 +13,7 @@
* @group Mail
*/
class HtmlToTextTest extends BrowserTestBase {
+
/**
* Converts a string to its PHP source equivalent for display in test messages.
*
diff --git a/core/modules/system/tests/src/Functional/Module/DependencyTest.php b/core/modules/system/tests/src/Functional/Module/DependencyTest.php
index 0fc78caa953ae01a1fd8d1425aae6a827ac65372..d2938721a86173c9e29494c0871cbcef86b1584c 100644
--- a/core/modules/system/tests/src/Functional/Module/DependencyTest.php
+++ b/core/modules/system/tests/src/Functional/Module/DependencyTest.php
@@ -10,6 +10,7 @@
* @group Module
*/
class DependencyTest extends ModuleTestBase {
+
/**
* Checks functionality of project namespaces for dependencies.
*/
diff --git a/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php b/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php
index a873d9652a2773d62d773949c3bba6b79ae17930..2ada3a2854d939079edfe982d76d803011a5a859 100644
--- a/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php
+++ b/core/modules/system/tests/src/Functional/Module/HookRequirementsTest.php
@@ -8,6 +8,7 @@
* @group Module
*/
class HookRequirementsTest extends ModuleTestBase {
+
/**
* Assert that a module cannot be installed if it fails hook_requirements().
*/
diff --git a/core/modules/system/tests/src/Functional/System/AdminMetaTagTest.php b/core/modules/system/tests/src/Functional/System/AdminMetaTagTest.php
index dbd82cda02f08cc222d2b626e3f653fc1f648f31..6fcc4b848d1850c8ca515402c76064cd61cc776a 100644
--- a/core/modules/system/tests/src/Functional/System/AdminMetaTagTest.php
+++ b/core/modules/system/tests/src/Functional/System/AdminMetaTagTest.php
@@ -10,6 +10,7 @@
* @group system
*/
class AdminMetaTagTest extends BrowserTestBase {
+
/**
* Verify that the meta tag HTML is generated correctly.
*/
diff --git a/core/modules/system/tests/src/Functional/System/IndexPhpTest.php b/core/modules/system/tests/src/Functional/System/IndexPhpTest.php
index 2bf098931d61f3c5b8cac33d8d5f7630a68b0401..4675fed0faa0ded7e872a7b1507e048ab99887a5 100644
--- a/core/modules/system/tests/src/Functional/System/IndexPhpTest.php
+++ b/core/modules/system/tests/src/Functional/System/IndexPhpTest.php
@@ -10,6 +10,7 @@
* @group system
*/
class IndexPhpTest extends BrowserTestBase {
+
protected function setUp() {
parent::setUp();
}
diff --git a/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php b/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php
index ef12a51adeba56b0b680cccb519fa8d4fc38ceb2..cf64f079adc3c072f4a9191ba44b202a9cc6d8d1 100644
--- a/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php
+++ b/core/modules/system/tests/src/Functional/System/RetrieveFileTest.php
@@ -10,6 +10,7 @@
* @group system
*/
class RetrieveFileTest extends BrowserTestBase {
+
/**
* Invokes system_retrieve_file() in several scenarios.
*/
diff --git a/core/modules/system/tests/src/Functional/Update/RouterIndexOptimizationTest.php b/core/modules/system/tests/src/Functional/Update/RouterIndexOptimizationTest.php
index a3bfad256292982c7bd1e1571cf190930e80ebe0..0a952c576b3ed5c12eefe8e6e8f82e8086e06105 100644
--- a/core/modules/system/tests/src/Functional/Update/RouterIndexOptimizationTest.php
+++ b/core/modules/system/tests/src/Functional/Update/RouterIndexOptimizationTest.php
@@ -10,6 +10,7 @@
* @group Update
*/
class RouterIndexOptimizationTest extends UpdatePathTestBase {
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php b/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
index b0412b4336fd20d6c4d0ea1f306561fe442e2a9c..221daeeaeb87cf9ec86a50d6130d9131fdd3f482 100644
--- a/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
+++ b/core/modules/system/tests/src/Kernel/Common/SystemListingTest.php
@@ -11,6 +11,7 @@
* @group Common
*/
class SystemListingTest extends KernelTestBase {
+
/**
* Tests that files in different directories take precedence as expected.
*/
diff --git a/core/modules/taxonomy/src/Plugin/views/field/TermName.php b/core/modules/taxonomy/src/Plugin/views/field/TermName.php
index 0a777e9c1cfe0a79ca4051e4c8087a85329e4288..eefc3e3d3fe19fae6c1d0122cdea343eca2f99d3 100644
--- a/core/modules/taxonomy/src/Plugin/views/field/TermName.php
+++ b/core/modules/taxonomy/src/Plugin/views/field/TermName.php
@@ -31,7 +31,6 @@ public function getItems(ResultRow $values) {
return $items;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
index a48c191b5ee721811054a35ad20f393b2ce6ec53..1f4a5bfdfed95adb6bdc1f3f3b5bafe19645e630 100644
--- a/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
+++ b/core/modules/text/tests/src/Kernel/TextWithSummaryItemTest.php
@@ -37,7 +37,6 @@ class TextWithSummaryItemTest extends FieldKernelTestBase {
*/
protected $field;
-
protected function setUp() {
parent::setUp();
diff --git a/core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php b/core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php
index 95264803f74208e011cfc720d49e339f9b5dea1d..db0f2b463250fbba0686df58d3e77b4dc0f4ac82 100644
--- a/core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php
+++ b/core/modules/tracker/src/Plugin/Menu/UserTrackerTab.php
@@ -32,7 +32,6 @@ protected function currentUser() {
return $this->currentUser;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/user/src/Entity/User.php b/core/modules/user/src/Entity/User.php
index 979819fc8cdfb935bf6f9c6f51ec5350a97887e3..7f4f4cdc78eb05d8b9d0c15ff1bcc47c371946ad 100644
--- a/core/modules/user/src/Entity/User.php
+++ b/core/modules/user/src/Entity/User.php
@@ -355,6 +355,7 @@ public function getInitialEmail() {
public function isAuthenticated() {
return $this->id() > 0;
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/user/src/Plugin/Block/UserLoginBlock.php b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
index a9341f9b7f7938111598d096d7cae60ed1262dbe..8649494b929caf6d9780cd5469adee53e55996c8 100644
--- a/core/modules/user/src/Plugin/Block/UserLoginBlock.php
+++ b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
@@ -64,7 +64,6 @@ public static function create(ContainerInterface $container, array $configuratio
);
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php b/core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php
index 0efae5d6b3d5f71ae34601d81837fc96507c4847..858fcfc9906c968c66ece9d61d00c8f71db8d52c 100644
--- a/core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php
+++ b/core/modules/user/src/Plugin/migrate/process/d6/UserUpdate7002.php
@@ -54,6 +54,7 @@ public static function create(ContainerInterface $container, array $configuratio
$container->get('config.factory')->get('system.date')
);
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/user/src/Plugin/migrate/source/d6/UserPicture.php b/core/modules/user/src/Plugin/migrate/source/d6/UserPicture.php
index 0d5bd6bcb3103ffab5e7961017ecf4b8132bd421..288cf6cac4c36f9cd23a6c491f3c248e639e0430 100644
--- a/core/modules/user/src/Plugin/migrate/source/d6/UserPicture.php
+++ b/core/modules/user/src/Plugin/migrate/source/d6/UserPicture.php
@@ -37,6 +37,7 @@ public function fields() {
'picture' => "Path to the user's uploaded picture.",
];
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php b/core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php
index 72d18fd08f36b247a27c615c317d3edbe91db73a..4414198e3ae165a517756e5457dfef632bebdc07 100644
--- a/core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php
+++ b/core/modules/user/src/Plugin/migrate/source/d6/UserPictureFile.php
@@ -68,6 +68,7 @@ public function fields() {
'filename' => 'The picture filename.',
];
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/user/src/Plugin/views/access/Permission.php b/core/modules/user/src/Plugin/views/access/Permission.php
index 8d0c43dfcef7fc05ce4376c4ce6dd4a6e2e49637..291eb1ca8edf5ee82d3b83af49232777812eb850 100644
--- a/core/modules/user/src/Plugin/views/access/Permission.php
+++ b/core/modules/user/src/Plugin/views/access/Permission.php
@@ -100,7 +100,6 @@ public function summaryTitle() {
return $this->t($this->options['perm']);
}
-
protected function defineOptions() {
$options = parent::defineOptions();
$options['perm'] = ['default' => 'access content'];
diff --git a/core/modules/user/src/Plugin/views/access/Role.php b/core/modules/user/src/Plugin/views/access/Role.php
index e35daa1eea9359f4a244722f3a793fcfb955976f..d1fe8abcc240da01d30c3df81c39fc994e0b2d1b 100644
--- a/core/modules/user/src/Plugin/views/access/Role.php
+++ b/core/modules/user/src/Plugin/views/access/Role.php
@@ -96,7 +96,6 @@ public function summaryTitle() {
}
}
-
protected function defineOptions() {
$options = parent::defineOptions();
$options['role'] = ['default' => []];
diff --git a/core/modules/user/src/Plugin/views/field/UserData.php b/core/modules/user/src/Plugin/views/field/UserData.php
index 365ab3b746a6a3b285855b4bd64d4e6ba3269867..1a4bb82acdd5e91e778400f0cbd2acb0e9cc3b22 100644
--- a/core/modules/user/src/Plugin/views/field/UserData.php
+++ b/core/modules/user/src/Plugin/views/field/UserData.php
@@ -34,7 +34,6 @@ class UserData extends FieldPluginBase {
*/
protected $moduleHandler;
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
index c2b15ff58cbf4c5a9e775830628130beefdcd928..fd6fdd2af1837f9cd20ab50630ef24465b89dc17 100644
--- a/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
+++ b/core/modules/user/tests/src/Functional/Views/HandlerFilterUserNameTest.php
@@ -66,7 +66,6 @@ protected function setUp($import_test_views = TRUE) {
}
}
-
/**
* Tests just using the filter.
*/
diff --git a/core/modules/user/tests/src/Kernel/UserInstallTest.php b/core/modules/user/tests/src/Kernel/UserInstallTest.php
index f61811be79ff13bf46aa7eeb0b7be086ed126b9e..be3336f78027845d637e013dc9c190582b060ef2 100644
--- a/core/modules/user/tests/src/Kernel/UserInstallTest.php
+++ b/core/modules/user/tests/src/Kernel/UserInstallTest.php
@@ -28,7 +28,6 @@ protected function setUp() {
user_install();
}
-
/**
* Test that the initial users have correct values.
*/
diff --git a/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php b/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php
index be9376ad1dc1c4f2582340b49097dceb06d177ad..2d8e092c121763a459129cb67f65f1cc632eb15d 100644
--- a/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php
+++ b/core/modules/user/tests/src/Unit/PrivateTempStoreTest.php
@@ -96,7 +96,6 @@ protected function setUp() {
$this->otherObject->owner = 2;
}
-
/**
* Tests the get() method.
*
diff --git a/core/modules/views/src/Analyzer.php b/core/modules/views/src/Analyzer.php
index 6e176293072e8e64762e2a8d326f97c36a6382ef..eb09269e059e30dd9e20d7f7c012e7002c6192bc 100644
--- a/core/modules/views/src/Analyzer.php
+++ b/core/modules/views/src/Analyzer.php
@@ -31,7 +31,6 @@ public function __construct(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
}
-
/**
* Analyzes a review and return the results.
*
diff --git a/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php b/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
index f6a045cf32dfa4eb25800225c49c41172c85941f..de9bb26c8dc2a072f00f273512d2e77e8d5f54b5 100644
--- a/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
+++ b/core/modules/views/src/Plugin/Derivative/DefaultWizardDeriver.php
@@ -11,6 +11,7 @@
* The derivatives store all base table plugin information.
*/
class DefaultWizardDeriver extends DeriverBase {
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/src/Plugin/Menu/ViewsMenuLink.php b/core/modules/views/src/Plugin/Menu/ViewsMenuLink.php
index b4f078fc684e94b591df577ec807355d8202b2d0..3cbfc84e0a180e4f57648cad310042d6da959d37 100644
--- a/core/modules/views/src/Plugin/Menu/ViewsMenuLink.php
+++ b/core/modules/views/src/Plugin/Menu/ViewsMenuLink.php
@@ -126,7 +126,6 @@ public function isExpanded() {
return (bool) $this->loadView()->display_handler->getOption('menu')['expanded'];
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/src/Plugin/views/HandlerBase.php b/core/modules/views/src/Plugin/views/HandlerBase.php
index 35689ee077dc41be37a9c87288f1ade47d14abf8..28dfbfcab7d4cd75b50cc755922e232eb810082d 100644
--- a/core/modules/views/src/Plugin/views/HandlerBase.php
+++ b/core/modules/views/src/Plugin/views/HandlerBase.php
@@ -313,6 +313,7 @@ public function setModuleHandler(ModuleHandlerInterface $module_handler) {
public function usesGroupBy() {
return TRUE;
}
+
/**
* Provide a form for aggregation settings.
*/
diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
index 9bcd5ba699c988559922fd022451f3a3faa39d36..96a41f3544c09577b5addf60cade9f219b27c88e 100644
--- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
+++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
@@ -398,7 +398,6 @@ protected function getTokenHelp() {
return $output;
}
-
public function validateOptionsForm(&$form, FormStateInterface $form_state) {
$option_values = &$form_state->getValue('options');
if (empty($option_values)) {
@@ -721,6 +720,7 @@ public function validateFail() {
$info = $this->defaultActions($this->options['validate']['fail']);
return $this->defaultAction($info);
}
+
/**
* Default action: ignore.
*
diff --git a/core/modules/views/src/Plugin/views/cache/None.php b/core/modules/views/src/Plugin/views/cache/None.php
index d05abd2adb333451df435f7cdc828a513e4dc164..fc9b58b238bb71d2597ebc3b974de5b2e5dc120c 100644
--- a/core/modules/views/src/Plugin/views/cache/None.php
+++ b/core/modules/views/src/Plugin/views/cache/None.php
@@ -19,7 +19,6 @@ public function summaryTitle() {
return $this->t('None');
}
-
/**
* Overrides \Drupal\views\Plugin\views\cache\CachePluginBase::cacheGet().
*
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
index 567bb4f95a69cda6f1c8b73ea51e38b85bb9fbf8..29d188c187d2a72d6036ab12219518b18519c30c 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php
@@ -962,7 +962,6 @@ public function calculateDependencies() {
return $this->dependencies;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
index f8630af08fba67d890cd0f0ef1dfbc0521473c60..80e4783164feeb2bce32c750b5dfd099353b1578 100644
--- a/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
+++ b/core/modules/views/src/Plugin/views/display/DisplayPluginInterface.php
@@ -457,7 +457,6 @@ public function getCacheMetadata();
*/
public function execute();
-
/**
* Builds a basic render array which can be properly render cached.
*
diff --git a/core/modules/views/src/Plugin/views/display/Feed.php b/core/modules/views/src/Plugin/views/display/Feed.php
index c664c053e25640fd90b8e43e48e33c9769365c9d..db1bc1c73dddecfed81b31bdc56a14334e51dc4e 100644
--- a/core/modules/views/src/Plugin/views/display/Feed.php
+++ b/core/modules/views/src/Plugin/views/display/Feed.php
@@ -73,7 +73,6 @@ public static function buildResponse($view_id, $display_id, array $args = []) {
return $response;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/src/Plugin/views/field/EntityOperations.php b/core/modules/views/src/Plugin/views/field/EntityOperations.php
index 6f0882979a4df2eba8f974b0c551b5ee90be316e..d31cd1ea306819b7ffd15ca2417e0e1d46dcd6cc 100644
--- a/core/modules/views/src/Plugin/views/field/EntityOperations.php
+++ b/core/modules/views/src/Plugin/views/field/EntityOperations.php
@@ -158,6 +158,7 @@ protected function getEntityManager() {
protected function getLanguageManager() {
return $this->languageManager;
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/src/Plugin/views/filter/BooleanOperator.php b/core/modules/views/src/Plugin/views/filter/BooleanOperator.php
index fa0d730f8365515fe87be20f1594f8035300be35..81a31880c32090235a0930345306442b645be44d 100644
--- a/core/modules/views/src/Plugin/views/filter/BooleanOperator.php
+++ b/core/modules/views/src/Plugin/views/filter/BooleanOperator.php
@@ -48,7 +48,6 @@ class BooleanOperator extends FilterPluginBase {
// Whether to accept NULL as a false value or not
public $accept_null = FALSE;
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
index fd273ddfa8380e19f0e95b017918c3b5bcb880d0..b49190b0551102cf1459ac74274d5f2bc91513f4 100644
--- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
+++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php
@@ -656,7 +656,6 @@ protected function hasValidGroupedValue(array $group) {
return FALSE;
}
-
/**
* Validate the build group options form.
*/
@@ -835,7 +834,6 @@ public function groupForm(&$form, FormStateInterface $form_state) {
}
}
-
/**
* Render our chunk of the exposed filter form when selecting
*
@@ -1165,7 +1163,6 @@ public function addGroupForm($form, FormStateInterface $form_state) {
$form_state->get('force_build_group_options', TRUE);
}
-
/**
* Make some translations to a form item to make it more suitable to
* exposing.
@@ -1207,7 +1204,6 @@ protected function exposedTranslate(&$form, $type) {
}
}
-
/**
* Sanitizes the HTML select element's options.
*
diff --git a/core/modules/views/src/Plugin/views/filter/GroupByNumeric.php b/core/modules/views/src/Plugin/views/filter/GroupByNumeric.php
index 577b2dfde4f15420f3fffb7f9e72ebb4c94cac3e..d68970bd5a2953f6c2d00ce577d2a560e61bfe9b 100644
--- a/core/modules/views/src/Plugin/views/filter/GroupByNumeric.php
+++ b/core/modules/views/src/Plugin/views/filter/GroupByNumeric.php
@@ -20,6 +20,7 @@ public function query() {
$this->{$info[$this->operator]['method']}($field);
}
}
+
protected function opBetween($field) {
$placeholder_min = $this->placeholder();
$placeholder_max = $this->placeholder();
diff --git a/core/modules/views/src/Plugin/views/filter/ManyToOne.php b/core/modules/views/src/Plugin/views/filter/ManyToOne.php
index 86eb1f3361bae7edee38fbe98064c9c9447e0ef9..1b3810cfe6f214ceee246ac0372e7a9d4ac22a16 100644
--- a/core/modules/views/src/Plugin/views/filter/ManyToOne.php
+++ b/core/modules/views/src/Plugin/views/filter/ManyToOne.php
@@ -103,6 +103,7 @@ public function operators() {
}
protected $valueFormType = 'select';
+
protected function valueForm(&$form, FormStateInterface $form_state) {
parent::valueForm($form, $form_state);
diff --git a/core/modules/views/src/Plugin/views/filter/NumericFilter.php b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
index cdfbb06bb318d1122b4fb360c95d6c1afd684153..ed19bee6ae67d037034ccdbc476bc0411aaa02f8 100644
--- a/core/modules/views/src/Plugin/views/filter/NumericFilter.php
+++ b/core/modules/views/src/Plugin/views/filter/NumericFilter.php
@@ -190,6 +190,7 @@ protected function operatorValues($values = 1) {
return $options;
}
+
/**
* Provide a simple textfield for equality
*/
diff --git a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
index ccf40f64e9fce33fd4334aa0fb37c2c52e67cb2b..a7ac37d85f71203e43d2f67473ccbbfc813a9604 100644
--- a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
+++ b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php
@@ -281,6 +281,7 @@ public function buildJoin($select_query, $table, $view_query) {
$select_query->addJoin($this->type, $right_table, $table['alias'], $condition, $arguments);
}
+
/**
* Adds the extras to the join condition.
*
diff --git a/core/modules/views/src/Plugin/views/pager/SqlBase.php b/core/modules/views/src/Plugin/views/pager/SqlBase.php
index d683202d1758a3f6de2e4d44a7d851b38c045565..5195acff0df681ef56dd887091b16d69876e7939 100644
--- a/core/modules/views/src/Plugin/views/pager/SqlBase.php
+++ b/core/modules/views/src/Plugin/views/pager/SqlBase.php
@@ -233,7 +233,6 @@ public function query() {
$this->view->query->setOffset($offset);
}
-
/**
* Set the current page.
*
diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php
index b57c970fb6270fd905fb4d722c911007ec27eccf..ed96decd57de30ca54c3cee52e3c76392e3e25f8 100644
--- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php
+++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/join/JoinTest.php
@@ -35,7 +35,6 @@ public function setJoinValue($join_value) {
$this->joinValue = $join_value;
}
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
index 8868f75de667a3d3941129c8819c814a10da798e..230e4285036d29c565adff25549ca75b2bf58599 100644
--- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
+++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php
@@ -74,7 +74,6 @@ public function addOrderBy($table, $field = NULL, $order = 'ASC', $alias = '', $
$this->orderBy = ['field' => $field, 'order' => $order];
}
-
public function ensureTable($table, $relationship = NULL, JoinPluginBase $join = NULL) {
// There is no concept of joins.
}
diff --git a/core/modules/views/tests/src/Functional/Handler/AreaTest.php b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
index d631373d23ef00921e9823ad6e7d147c2a477e2e..cf877d137493b3cc030718254e3a5d8d928be75a 100644
--- a/core/modules/views/tests/src/Functional/Handler/AreaTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/AreaTest.php
@@ -48,7 +48,6 @@ protected function viewsData() {
return $data;
}
-
/**
* Tests the generic UI of a area handler.
*/
diff --git a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
index 57eb2320b8d2cc4437ab17972ceddb2f60076416..816af901fde0007daf90f2c71d1c2d92fd6d0b9d 100644
--- a/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/ArgumentDefaultTest.php
@@ -81,7 +81,6 @@ public function testArgumentDefaultPlugin() {
$this->assertIdenticalResultset($view, $expected_result, ['views_test_data_name' => 'name']);
}
-
/**
* Tests the use of a default argument plugin that provides no options.
*/
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php
index 8c326baa05893eb33bd4511fd6f61a77df681d80..44668447c783c16347e4e169d0bb55b28159b6b5 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayAttachmentTest.php
@@ -36,7 +36,6 @@ protected function setUp($import_test_views = TRUE) {
$this->drupalLogin($admin_user);
}
-
/**
* Tests the attachment plugin.
*/
diff --git a/core/modules/views/tests/src/Functional/ViewRenderTest.php b/core/modules/views/tests/src/Functional/ViewRenderTest.php
index aaf894cd23e0bb65e0924d2951a5c4df697e1662..24eee7e713267a7f6a8cace7cc2140b20a324e2d 100644
--- a/core/modules/views/tests/src/Functional/ViewRenderTest.php
+++ b/core/modules/views/tests/src/Functional/ViewRenderTest.php
@@ -24,7 +24,6 @@ protected function setUp($import_test_views = TRUE) {
$this->enableViewsTestModule();
}
-
/**
* Tests render functionality.
*/
diff --git a/core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php b/core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php
index 03d5bcee8ce5a439e28b85e06a7b226e84dbff7d..c4c709e3bfc6e14c3827ac58319e86da0230c27e 100644
--- a/core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php
+++ b/core/modules/views/tests/src/Functional/ViewsFormMultipleTest.php
@@ -38,7 +38,6 @@ protected function viewsData() {
return $data;
}
-
/**
* Tests the a page with multiple View forms in it.
*/
diff --git a/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php b/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php
index 8f85f6901816f684aafda15a0fa2ac4a7e731486..ed00f68a066d0bdb2e33a775a476bdb334c40990 100644
--- a/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/ComputedFieldTest.php
@@ -28,7 +28,6 @@ class ComputedFieldTest extends ViewsKernelTestBase {
*/
public static $modules = ['entity_test'];
-
/**
* {@inheritdoc}
*/
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
index d78f7c92e2b714659411ed34b47d01445adb0c6d..4f8c4961e390c4c7cee2846e881ea1e522284a4e 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterEqualityTest.php
@@ -146,7 +146,6 @@ public function testEqualGroupedNotExposed() {
$this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}
-
protected function getGroupedExposedFilters() {
$filters = [
'name' => [
diff --git a/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php b/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
index 03c1b878a5079e3297b36e6d5a3302c95eb26fa9..5d8f71f1723a151d2947b4979ae5388525c0f19f 100644
--- a/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
+++ b/core/modules/views/tests/src/Kernel/Handler/FilterStringTest.php
@@ -222,7 +222,6 @@ public function testFilterStringContains() {
$this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}
-
public function testFilterStringGroupedExposedContains() {
$filters = $this->getGroupedExposedFilters();
$view = $this->getBasicPageView();
@@ -245,7 +244,6 @@ public function testFilterStringGroupedExposedContains() {
$this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}
-
public function testFilterStringWord() {
$view = Views::getView('test_view');
$view->setDisplay();
@@ -334,7 +332,6 @@ public function testFilterStringWord() {
$this->assertIdenticalResultset($view, $resultset);
}
-
public function testFilterStringGroupedExposedWord() {
$filters = $this->getGroupedExposedFilters();
$view = $this->getBasicPageView();
@@ -618,7 +615,6 @@ public function testFilterStringNot() {
$this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}
-
public function testFilterStringGroupedExposedNot() {
$filters = $this->getGroupedExposedFilters();
$view = $this->getBasicPageView();
@@ -741,7 +737,6 @@ public function testFilterStringGroupedExposedLonger() {
$this->assertIdenticalResultset($view, $resultset, $this->columnMap);
}
-
public function testFilterStringEmpty() {
$view = Views::getView('test_view');
$view->setDisplay();
diff --git a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
index 9f6066eff31411b36d340d294c9eb75b6208330c..708b4046c805f0a30542cceb2e55773a5c95887e 100644
--- a/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
+++ b/core/modules/views/tests/src/Kernel/Plugin/CacheTest.php
@@ -61,7 +61,6 @@ protected function viewsData() {
return $data;
}
-
/**
* Tests time based caching.
*
diff --git a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
index e4a088459fed4e7be2498867504d7214affb0dc6..25d8b4a4c1dc82c32805a0b5c58071833745ea84 100644
--- a/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
+++ b/core/modules/views/tests/src/Kernel/QueryGroupByTest.php
@@ -51,7 +51,6 @@ protected function setUp($import_test_views = TRUE) {
ConfigurableLanguage::createFromLangcode('it')->save();
}
-
/**
* Tests aggregate count feature.
*/
diff --git a/core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php b/core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php
index 4bbe4028637d54beefc00554e16321c99677cd73..af69ba1873db950d701d7ff56a6513fb6bc31792 100644
--- a/core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php
+++ b/core/modules/views/tests/src/Kernel/ViewsKernelTestBase.php
@@ -48,6 +48,7 @@ protected function setUp($import_test_views = TRUE) {
ViewTestData::createTestViews(get_class($this), ['views_test_config']);
}
}
+
/**
* Sets up the configuration and schema of views and views_test_data modules.
*
diff --git a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
index 405979588eb3920306151738af6d5e6d77f20c1a..a581c862a1871bd4b2444846eb343d41beacdf6a 100644
--- a/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
+++ b/core/modules/views/tests/src/Unit/EntityViewsDataTest.php
@@ -1134,16 +1134,20 @@ public function setKey($key, $value) {
namespace Drupal\entity_test\Entity;
if (!function_exists('t')) {
+
function t($string, array $args = []) {
return strtr($string, $args);
}
+
}
namespace Drupal\Core\Entity;
if (!function_exists('t')) {
+
function t($string, array $args = []) {
return strtr($string, $args);
}
+
}
diff --git a/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php b/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
index f9bd6d2f1b72af9be108a0edb1debb17461c39a1..e7cd98477b33a106e689d952185f04a6fb76556e 100644
--- a/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
@@ -204,6 +204,8 @@ public function testBuildFailed() {
namespace Drupal\views\Plugin\Block;
if (!function_exists('views_add_contextual_links')) {
+
function views_add_contextual_links() {
}
+
}
diff --git a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
index a7bcf81de6f2923e9160dd6bcd1a651a8b723573..71ab347aa5b4c638aa192424321d0e865cfde0e6 100644
--- a/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
+++ b/core/modules/views/tests/src/Unit/Plugin/field/FieldPluginBaseTest.php
@@ -775,7 +775,9 @@ public function setLinkGenerator(LinkGeneratorInterface $link_generator) {
namespace Drupal\views\Plugin\views\field;
if (!function_exists('base_path')) {
+
function base_path() {
return '/';
}
+
}
diff --git a/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php b/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php
index 9242545b7ad3fbbd9168b234814c7a95dfed8477..6ced52ee8471c7faa7c18aafd524e32039b18f52 100644
--- a/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php
+++ b/core/modules/views/tests/src/Unit/Routing/ViewPageControllerTest.php
@@ -182,6 +182,8 @@ public function testHandleWithArgumentsOnOverriddenRouteWithUpcasting() {
namespace Drupal\views\Routing;
if (!function_exists('views_add_contextual_links')) {
+
function views_add_contextual_links() {
}
+
}
diff --git a/core/modules/workflows/tests/src/Unit/WorkflowTest.php b/core/modules/workflows/tests/src/Unit/WorkflowTest.php
index dc77a3d2f622946821348d7caa48d4fccec039ef..c10ddf95a94de6e01370f8751047dbfd1083786b 100644
--- a/core/modules/workflows/tests/src/Unit/WorkflowTest.php
+++ b/core/modules/workflows/tests/src/Unit/WorkflowTest.php
@@ -417,7 +417,6 @@ public function testGetTransitions() {
$this->assertArrayEquals([], array_keys($workflow->getTypePlugin()->getTransitions([])));
}
-
/**
* @covers ::getTransition
*/
@@ -474,7 +473,6 @@ public function testGetTransitionsForState() {
$this->assertEquals(['archive'], array_keys($workflow->getTypePlugin()->getTransitionsForState('archived', 'to')));
}
-
/**
* @covers ::getTransitionFromStateToState
* @covers ::hasTransitionFromStateToState
diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist
index 29308e9ca599554d899f258de033533cd21e3571..128b84efa666a6ad6839210ea16dd7a88d7f386b 100644
--- a/core/phpcs.xml.dist
+++ b/core/phpcs.xml.dist
@@ -307,6 +307,11 @@
+
+
+
+
+
diff --git a/core/scripts/update-countries.sh b/core/scripts/update-countries.sh
index abcc6994d45c3afd2e9e3a5ce654150cd8ffb8ad..539d7321a93b0869efab9186e0382f1922d21064 100755
--- a/core/scripts/update-countries.sh
+++ b/core/scripts/update-countries.sh
@@ -37,9 +37,11 @@
// Fake the t() function used in CountryManager.php instead of attempting a full
// Drupal bootstrap of core/includes/bootstrap.inc (where t() is declared).
if (!function_exists('t')) {
+
function t($string) {
return $string;
}
+
}
// Read in existing codes.
diff --git a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
index 281cb783487a11d2a930a7abcebdeac444101c5b..ce5167ae31fac2c7950f898ca25eb65e00df0f76 100644
--- a/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
+++ b/core/tests/Drupal/FunctionalJavascriptTests/JSWebAssert.php
@@ -100,6 +100,7 @@ public function waitForElementVisible($selector, $locator, $timeout = 10000) {
return $result;
}
+
/**
* Waits for a button (input[type=submit|image|button|reset], button) with
* specified locator and returns it.
diff --git a/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php b/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php
index 789369ceeb7f660557dc5527459119fc8da0c64b..17c91158c2658e411c3ee7a9a0538f907d7065a7 100644
--- a/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php
+++ b/core/tests/Drupal/FunctionalTests/Image/ToolkitTest.php
@@ -8,6 +8,7 @@
* @group Image
*/
class ToolkitTest extends ToolkitTestBase {
+
/**
* Check that ImageToolkitManager::getAvailableToolkits() only returns
* available toolkits.
diff --git a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php
index 6e87495693e231344bbeaff2cc97b0941f3e1ecf..49e7193ae88ea8d83f80e7acbe6d2027fbaec86d 100644
--- a/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php
+++ b/core/tests/Drupal/FunctionalTests/Installer/DistributionProfileTranslationTest.php
@@ -91,7 +91,6 @@ protected function setUpSettings() {
parent::setUpSettings();
}
-
/**
* Confirms that the installation succeeded.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Database/BasicSyntaxTest.php b/core/tests/Drupal/KernelTests/Core/Database/BasicSyntaxTest.php
index 53a87b7dbf9c3e55308aae40b86200ffd7ee96d2..17f8ebb92c94deda2fd2f092ad560954e75359c6 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/BasicSyntaxTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/BasicSyntaxTest.php
@@ -12,6 +12,7 @@
* @group Database
*/
class BasicSyntaxTest extends DatabaseTestBase {
+
/**
* Tests string concatenation.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Database/CaseSensitivityTest.php b/core/tests/Drupal/KernelTests/Core/Database/CaseSensitivityTest.php
index cd241e5145d6dcc8a44d7dd6c1582a22431ed172..37b876c8f84d5fa5d64214a37060c063e71bc9dc 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/CaseSensitivityTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/CaseSensitivityTest.php
@@ -8,6 +8,7 @@
* @group Database
*/
class CaseSensitivityTest extends DatabaseTestBase {
+
/**
* Tests BINARY collation in MySQL.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Database/InvalidDataTest.php b/core/tests/Drupal/KernelTests/Core/Database/InvalidDataTest.php
index 371800b73d23b9c338dbf617a42fcd30c1153546..f6af91fef88d6b7e38d6a3badf696c7b93fc6231 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/InvalidDataTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/InvalidDataTest.php
@@ -11,6 +11,7 @@
* @group Database
*/
class InvalidDataTest extends DatabaseTestBase {
+
/**
* Tests aborting of traditional SQL database systems with invalid data.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
index cd3ec4a163840efc7dc38efc195ccde240829bba..23ec66494a9eed34ef58e9e62bd5319f846e2b4f 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SelectComplexTest.php
@@ -245,7 +245,6 @@ public function testCountQueryRemovals() {
$this->assertEqual($count, 4, 'Counted the correct number of records.');
}
-
/**
* Tests that countQuery properly removes fields and expressions.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php
index 357b39feb2bdb95ef2372324cbcb6d2d5a4f248b..b3299d6005ae0970a902d49fd3bdbe3d8effd6c4 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/SerializeQueryTest.php
@@ -8,6 +8,7 @@
* @group Database
*/
class SerializeQueryTest extends DatabaseTestBase {
+
/**
* Confirms that a query can be serialized and unserialized.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php b/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
index 0bd546bbef1448d9f18d9b370958bbd07ac183fc..a096ae852677ac58e9a2599b753e968933b7641d 100644
--- a/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/ScanDirectoryTest.php
@@ -129,7 +129,6 @@ public function testOptionRecurse() {
$this->assertEqual(2, count($files), 'With recursion we found the expected javascript files.');
}
-
/**
* Check that the min_depth options lets us ignore files in the starting
* directory.
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
index d3c5cd4e62a6657eea830f1d0c759b58a97184a3..655bb5f398a901a14c379408d873cd894a08cdee 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedCopyTest.php
@@ -11,6 +11,7 @@
* @group File
*/
class UnmanagedCopyTest extends FileTestBase {
+
/**
* Copy a normal file.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php
index 64045fea767a9801aed50522c1614546ec65c40f..05acac413af46bf5489a7900ce58ccb856bc81a3 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteRecursiveTest.php
@@ -8,6 +8,7 @@
* @group File
*/
class UnmanagedDeleteRecursiveTest extends FileTestBase {
+
/**
* Delete a normal file.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php
index d1cfb2e7dcee843752502dda09ddf816b5cf7d80..6871f1936b8dd13baa90cc3998d2850a13a71e21 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedDeleteTest.php
@@ -8,6 +8,7 @@
* @group File
*/
class UnmanagedDeleteTest extends FileTestBase {
+
/**
* Delete a normal file.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
index 8619a1507d07eb68add73accf829f3218f42f19b..2e3f50c2f098d409766a25c9de60adb70bd54413 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedMoveTest.php
@@ -11,6 +11,7 @@
* @group File
*/
class UnmanagedMoveTest extends FileTestBase {
+
/**
* Move a normal file.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php b/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php
index 549332338825d9cc13ec14725aef05db180c4536..86ea0293158cd353d821f0c81c4a4fa86b79e11f 100644
--- a/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/UnmanagedSaveDataTest.php
@@ -8,6 +8,7 @@
* @group File
*/
class UnmanagedSaveDataTest extends FileTestBase {
+
/**
* Test the file_unmanaged_save_data() function.
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php
index 854c25c8dc6317cbfb1bb3814b811db8f0fd3b96..c1be007b163e8928835fe985ccb897ba27207e48 100644
--- a/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Theme/TwigEnvironmentTest.php
@@ -155,7 +155,6 @@ public function register(ContainerBuilder $container) {
->addTag('twig.loader');
}
-
/**
* Test template invalidation.
*/
diff --git a/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php b/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
index f41824416c4f3925dba4effc291b0770afa16e99..717e32749a9e0f463fdc095266564b48c2b939f4 100644
--- a/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
+++ b/core/tests/Drupal/Tests/Component/Assertion/InspectorTest.php
@@ -256,6 +256,7 @@ public static function callMeStatic() {
* Quick class for testing for objects with __toString.
*/
class StringObject {
+
/**
* {@inheritdoc}
*/
diff --git a/core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php b/core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php
index de684885ffa67ebc7ab4ada408d2beadd5c02259..94cf51a0f5b25867a62efb144577db76579405d4 100644
--- a/core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php
+++ b/core/tests/Drupal/Tests/Component/Plugin/PluginBaseTest.php
@@ -63,7 +63,6 @@ public function providerTestGetBaseId() {
];
}
-
/**
* @dataProvider providerTestGetDerivativeId
* @covers ::getDerivativeId
diff --git a/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php b/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
index d12ec61e177ff322450a3d99afad15d07d7ae190..036fa663954963ed9c1cf59c43cbd07daa162e4b 100644
--- a/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
+++ b/core/tests/Drupal/Tests/Component/Serialization/JsonTest.php
@@ -32,7 +32,6 @@ class JsonTest extends TestCase {
*/
protected $htmlUnsafeEscaped;
-
/**
* {@inheritdoc}
*/
diff --git a/core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php b/core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php
index 9099d6fa582a5941a2e8e04941ddcaef663c599b..70cbd4a0aa88685248a9990fa3d6b8db3445f7ae 100644
--- a/core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php
+++ b/core/tests/Drupal/Tests/Component/Utility/ArgumentsResolverTest.php
@@ -206,6 +206,7 @@ public function providerTestHandleUnresolvedArgument() {
* Provides a test class.
*/
class TestClass {
+
public function access($foo) {
}
diff --git a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
index 231f80906e989ae03107d948a9c51815e90a77ea..f6214d6f30a344de6911cf65ea6e2d086dd6231b 100644
--- a/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/AccessManagerTest.php
@@ -567,6 +567,7 @@ protected function setupAccessArgumentsResolverFactory($constraint = NULL) {
* Defines an interface with a defined access() method for mocking.
*/
interface TestAccessCheckInterface extends AccessCheckInterface {
+
public function access();
}
diff --git a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
index 4467e79cbccc1b0556b9633e45e6bcb3b9046b77..f8245892292d85b5bdccab09a09194d2e2a8923c 100644
--- a/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
+++ b/core/tests/Drupal/Tests/Core/Access/AccessResultTest.php
@@ -985,6 +985,7 @@ class UncacheableTestAccessResult implements AccessResultInterface {
public function __construct($value) {
$this->value = $value;
}
+
/**
* {@inheritdoc}
*/
diff --git a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
index 6ed63aa952eb05f343ed0f2661d8f975d8684fb0..95cacea45c6d7e3b521625151c8813da9d2fa0d9 100644
--- a/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/AssetResolverTest.php
@@ -162,6 +162,7 @@ public function providerAttachedAssets() {
}
class TestMemoryBackend extends MemoryBackend {
+
public function getAllCids() {
return array_keys($this->cache);
}
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
index 4ff4b831288466bf4ace1ce0c7e2101003e7416e..ba0b4db532f3492cd86b61bb09bf600634a40569 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssCollectionRendererUnitTest.php
@@ -473,9 +473,11 @@ public function testRenderInvalidType() {
* Component/Utility.
*/
if (!function_exists('Drupal\Tests\Core\Asset\file_create_url')) {
+
function file_create_url($uri) {
return 'file_create_url:' . $uri;
}
+
}
/**
@@ -483,9 +485,11 @@ function file_create_url($uri) {
* Component/Utility.
*/
if (!function_exists('Drupal\Tests\Core\Asset\file_url_transform_relative')) {
+
function file_url_transform_relative($uri) {
return 'file_url_transform_relative:' . $uri;
}
+
}
/**
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
index 59ddca0e0ceb1baf5d6ab010ac461eb37813bac0..f2e70b9fd5956f73d0111ddf060d5504213b26b5 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
@@ -269,9 +269,11 @@ public function testTypeExternal() {
* Component/Utility.
*/
if (!function_exists('Drupal\Tests\Core\Asset\file_create_url')) {
+
function file_create_url($uri) {
return 'file_create_url:' . $uri;
}
+
}
/**
@@ -279,9 +281,11 @@ function file_create_url($uri) {
* Component/Utility.
*/
if (!function_exists('Drupal\Tests\Core\Asset\file_url_transform_relative')) {
+
function file_url_transform_relative($uri) {
return 'file_url_transform_relative:' . $uri;
}
+
}
/**
diff --git a/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php b/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php
index 6e499d9eaaeadc526f8e901e5bdacf148d80405d..bbd55a64beda01026772bb38c25bb2ec840374ad 100644
--- a/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/LibraryDependencyResolverTest.php
@@ -64,7 +64,6 @@ protected function setUp() {
$this->libraryDependencyResolver = new LibraryDependencyResolver($this->libraryDiscovery);
}
-
/**
* Provides test data for ::testGetLibrariesWithDependencies().
*/
diff --git a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
index cbb06668c04518c7376dabd59f7ae0fb5ec8fa15..7a758cdf64930f9f45d838d9bb87ac308aed0479 100644
--- a/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
@@ -211,7 +211,6 @@ public function testVersion() {
$this->assertEquals(\Drupal::VERSION, $libraries['core-versioned']['js'][0]['version']);
}
-
/**
* Tests that the version property of external libraries is handled.
*
@@ -399,6 +398,7 @@ public function testLibraryWithJavaScript() {
$this->assertEquals(FALSE, $library['js'][0]['minified']);
$this->assertEquals(TRUE, $library['js'][1]['minified']);
}
+
/**
* Tests that an exception is thrown when license is missing when 3rd party.
*
diff --git a/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php b/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php
index 0c905e6d98018710eaeefa78bdadc5de70c1f3af..382ae29da804311650cb85984c8266320aa0e10f 100644
--- a/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php
+++ b/core/tests/Drupal/Tests/Core/Batch/PercentagesTest.php
@@ -23,6 +23,7 @@ public function testPercentages($total, $current, $expected_result) {
$actual_result = Percentage::format($total, $current);
$this->assertEquals($actual_result, $expected_result, sprintf('The expected the batch api percentage at the state %s/%s is %s%% and got %s%%.', $current, $total, $expected_result, $actual_result));
}
+
/**
* Provide data for batch unit tests.
*
diff --git a/core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php b/core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php
index 0c06a4b8652898cd6faf71a89267efc86673c9cc..50b1eee1c53f016a0faf371d4a11a6b196f5031d 100644
--- a/core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php
+++ b/core/tests/Drupal/Tests/Core/Cache/CacheCollectorTest.php
@@ -59,7 +59,6 @@ protected function setUp() {
$this->getContainerWithCacheTagsInvalidator($this->cacheTagsInvalidator);
}
-
/**
* Tests the resolve cache miss function.
*/
@@ -85,7 +84,6 @@ public function testSetAndGet() {
$this->assertEquals($value, $this->collector->get($key));
}
-
/**
* Makes sure that NULL is a valid value and is collected.
*/
@@ -192,7 +190,6 @@ public function testUpdateCache() {
$this->collector->destruct();
}
-
/**
* Tests updating the cache when the lock acquire fails.
*/
diff --git a/core/tests/Drupal/Tests/Core/Cache/CacheTest.php b/core/tests/Drupal/Tests/Core/Cache/CacheTest.php
index 446afcd883ccbad0af8411ccf32c56d1897fa8eb..5d7f269487411fe5931d541ee649850db2c57d5b 100644
--- a/core/tests/Drupal/Tests/Core/Cache/CacheTest.php
+++ b/core/tests/Drupal/Tests/Core/Cache/CacheTest.php
@@ -53,7 +53,6 @@ public function testValidateTags(array $tags, $expected_exception_message) {
$this->assertNull(Cache::validateTags($tags));
}
-
/**
* Provides a list of pairs of cache tags arrays to be merged.
*
@@ -102,7 +101,6 @@ public function mergeMaxAgesProvider() {
];
}
-
/**
* @covers ::mergeMaxAges
*
diff --git a/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php b/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
index a14f338aeb5bbded1f0279382b79c429e2aef188..227027b3933bdb79db7ce35aad81e1dbe6fd0669 100644
--- a/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
+++ b/core/tests/Drupal/Tests/Core/Controller/ControllerResolverTest.php
@@ -190,6 +190,7 @@ public function providerTestGetControllerFromDefinition() {
['Drupal\Tests\Core\Controller\MockInvokeController', 'This used __invoke().'],
];
}
+
/**
* Tests getControllerFromDefinition() without a callable.
*/
@@ -252,6 +253,7 @@ public function testGetArgumentsWithRouteMatchAndPsr7Request() {
}
class MockController {
+
public function getResult() {
return 'This is a regular controller.';
}
@@ -262,6 +264,7 @@ public function getControllerWithRequestAndRouteMatch(RouteMatchInterface $route
}
class MockControllerPsr7 {
+
public function getResult() {
return ['#markup' => 'This is a regular controller'];
}
@@ -274,12 +277,15 @@ public function getControllerWithRequestAndRouteMatch(RouteMatchInterface $route
class MockContainerInjection implements ContainerInjectionInterface {
protected $result;
+
public function __construct($result) {
$this->result = $result;
}
+
public static function create(ContainerInterface $container) {
return new static('This used injection.');
}
+
public function getResult() {
return $this->result;
}
@@ -287,12 +293,14 @@ public function getResult() {
}
class MockContainerAware implements ContainerAwareInterface {
use ContainerAwareTrait;
+
public function getResult() {
return 'This is container aware.';
}
}
class MockInvokeController {
+
public function __invoke() {
return 'This used __invoke().';
}
diff --git a/core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php b/core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php
index 19548cd79df2eeb436673b14ed50ea09bb3a4ed9..7cea8076e1748736706fb45a0f8f36fb09e517bf 100644
--- a/core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php
+++ b/core/tests/Drupal/Tests/Core/Database/EmptyStatementTest.php
@@ -12,6 +12,7 @@
* @group Database
*/
class EmptyStatementTest extends UnitTestCase {
+
/**
* Tests that the empty result set behaves as empty.
*/
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
index 638bd1512e889494d55d19cf23707c33bc04377f..44d45fba915c4752b758d3cf4528ff9800000273 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php
@@ -29,7 +29,6 @@ protected function setUp() {
$this->proxyServicesPass = new ProxyServicesPass();
}
-
/**
* @covers ::process
*/
diff --git a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
index 848c458a7514bdb89f9e477862ea6f0430b40627..30a515c78b7665b4997e96332f0bd4baf0ca9e14 100644
--- a/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
+++ b/core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
@@ -433,26 +433,34 @@ public function testProcessWithDifferentArgumentsOrderAndDefaultValue() {
interface HandlerInterface {
}
class ValidConsumer {
+
public function addHandler(HandlerInterface $instance, $priority = 0) {
}
+
public function addNoPriority(HandlerInterface $instance) {
}
+
public function addWithId(HandlerInterface $instance, $id, $priority = 0) {
}
}
class InvalidConsumer {
+
public function addHandler($instance, $priority = 0) {
}
}
class ValidConsumerWithExtraArguments {
+
public function addHandler(HandlerInterface $instance, $priority = 0, $extra1 = '', $extra2 = '') {
}
+
public function addNoPriority(HandlerInterface $instance, $extra) {
}
+
public function addWithId(HandlerInterface $instance, $id, $priority = 0, $extra1 = '', $extra2 = NULL) {
}
+
public function addWithDifferentOrder(HandlerInterface $instance, $extra1, $priority = 0, $extra2 = 'default2', $extra3 = 'default3') {
}
diff --git a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
index 9ca4ffff859959390510e88f0696435f215f2b38..da041bda4e493596f23f8ed41042b090c4fb57f7 100644
--- a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
+++ b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTest.php
@@ -245,8 +245,10 @@ public function findFile() {
namespace {
if (!function_exists('drupal_valid_test_ua')) {
+
function drupal_valid_test_ua($new_prefix = NULL) {
return FALSE;
}
+
}
}
diff --git a/core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php b/core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php
index a92d76abb70d585c2d2db84bb278b15e567f95f2..01d9ae2560af5b6ed3dd197fd3bd1835f3f59980 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Access/EntityFormDisplayAccessControlHandlerTest.php
@@ -69,7 +69,6 @@ class EntityFormDisplayAccessControlHandlerTest extends UnitTestCase {
*/
protected $entity;
-
/**
* Returns a mock Entity Type Manager.
*
diff --git a/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php b/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
index 616f6ba0a32b4417a751f01210c626e36b586cbd..81069c35d3fd3056131578dff4d276b1d7b8cb52 100644
--- a/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
@@ -29,7 +29,6 @@ class BaseFieldDefinitionTest extends UnitTestCase {
*/
protected $fieldTypeDefinition;
-
/**
* {@inheritdoc}
*/
diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php
index 55928b98a6e226ca2040c9f3f499d42e60c5d29f..6662cb22779c0f79f45e6fd105e1299bce2b1460 100644
--- a/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php
@@ -154,6 +154,7 @@ public function testGetOperations() {
}
class TestEntityListBuilder extends EntityTestListBuilder {
+
public function buildOperations(EntityInterface $entity) {
return [];
}
diff --git a/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php b/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php
index 4e25e4e3b57ad026f28330ac5f908a9ede94ed06..8f89eaabc217203659cc6d0ea02da1b7eb8a8ce4 100644
--- a/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php
+++ b/core/tests/Drupal/Tests/Core/Entity/Routing/DefaultHtmlRouteProviderTest.php
@@ -356,15 +356,19 @@ class TestDefaultHtmlRouteProvider extends DefaultHtmlRouteProvider {
public function getEntityTypeIdKeyType(EntityTypeInterface $entity_type) {
return parent::getEntityTypeIdKeyType($entity_type);
}
+
public function getAddPageRoute(EntityTypeInterface $entity_type) {
return parent::getAddPageRoute($entity_type);
}
+
public function getAddFormRoute(EntityTypeInterface $entity_type) {
return parent::getAddFormRoute($entity_type);
}
+
public function getCanonicalRoute(EntityTypeInterface $entity_type) {
return parent::getCanonicalRoute($entity_type);
}
+
public function getCollectionRoute(EntityTypeInterface $entity_type) {
return parent::getCollectionRoute($entity_type);
}
diff --git a/core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php b/core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php
index f5855be837578c21e4751a3bb60abde8c84f97c4..8529f33dc0fee4903be415c70fc7dfd9ee46d834 100644
--- a/core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php
+++ b/core/tests/Drupal/Tests/Core/EventSubscriber/PsrResponseSubscriberTest.php
@@ -54,7 +54,6 @@ public function testConvertsControllerResult() {
$this->psrResponseSubscriber->onKernelView($event);
}
-
/**
* Tests altering and finished event.
*
diff --git a/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php b/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php
index 80a0c7669588e0b28944a232c92a23570a8b39cd..3b9d09a12a8a48bf850762b1da5bbee13cc49958 100644
--- a/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php
+++ b/core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php
@@ -155,7 +155,6 @@ public function testGetPathname() {
$this->assertEquals('vfs://drupal_root/example/test_name/test_name.info.yml', $pathname);
}
-
/**
* @covers ::setPathname
* @covers ::getPathname
diff --git a/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php b/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php
index 8bedf0750f035607795b0bb79f7d99e37c1fb53d..1312f40c80ce99441cf7b594105651202a6f0209 100644
--- a/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php
+++ b/core/tests/Drupal/Tests/Core/Field/FieldDefinitionListenerTest.php
@@ -232,7 +232,6 @@ public function testOnFieldDefinitionDeleteMultipleBundles() {
$this->fieldDefinitionListener->onFieldDefinitionDelete($field_definition->reveal());
}
-
/**
* @covers ::onFieldDefinitionDelete
*/
diff --git a/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php b/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
index 76b7584186d80ab3aecdd8ee90cbee1362cc683c..8d20db5c3f1d220d6eab596eb46439516f915a4e 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
@@ -881,6 +881,7 @@ public function providerTestFormTokenCacheability() {
}
class TestForm implements FormInterface {
+
public function getFormId() {
return 'test_form';
}
@@ -888,11 +889,14 @@ public function getFormId() {
public function buildForm(array $form, FormStateInterface $form_state) {
return test_form_id();
}
+
public function validateForm(array &$form, FormStateInterface $form_state) {}
+
public function submitForm(array &$form, FormStateInterface $form_state) {}
}
class TestFormInjected extends TestForm implements ContainerInjectionInterface {
+
public static function create(ContainerInterface $container) {
return new static();
}
diff --git a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
index 3ae9d6c139fb0020c54ce89236dd1d564c4998d4..f089bc37678cda35d669a12480a09adcca901e16 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormCacheTest.php
@@ -417,7 +417,6 @@ public function testSetCacheBuildIdMismatch() {
$this->formCache->setCache($form_build_id, $form, $form_state);
}
-
/**
* @covers ::deleteCache
*/
diff --git a/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php b/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
index de7baa996d7a1f5e4137c99edae36bb146c80bc5..ae42e511a27aa17166a6b616c00b2a442e6d6710 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
@@ -1119,6 +1119,7 @@ public function testGetValues() {
$this->assertSame($values, $this->formStateDecoratorBase->getValues());
}
+
/**
* @covers ::getValue
*/
diff --git a/core/tests/Drupal/Tests/Core/Form/FormStateTest.php b/core/tests/Drupal/Tests/Core/Form/FormStateTest.php
index 23579a12a9b81e4dbeb14e9eb461274f8dd0b0a1..aa60d61006ad689bee36b97def0f3eeebfc1df76 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormStateTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormStateTest.php
@@ -434,12 +434,15 @@ public function testGetValues() {
* A test form used for the prepareCallback() tests.
*/
class PrepareCallbackTestForm implements FormInterface {
+
public function getFormId() {
return 'test_form';
}
public function buildForm(array $form, FormStateInterface $form_state) {}
+
public function validateForm(array &$form, FormStateInterface $form_state) {}
+
public function submitForm(array &$form, FormStateInterface $form_state) {}
}
diff --git a/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php b/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php
index 9ba2fb52b70ce7877129a6fa2f6bab480b5324ed..ea523028a8dcb87b10d8a412daac506f04c31b96 100644
--- a/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php
@@ -135,7 +135,6 @@ public function testGetInstance() {
$this->assertInstanceOf('Drupal\Core\Mail\Plugin\Mail\TestMailCollector', $instance);
}
-
/**
* Tests that mails are sent in a separate render context.
*
@@ -163,6 +162,7 @@ public function testMailInRenderContext() {
* Provides a testing version of MailManager with an empty constructor.
*/
class TestMailManager extends MailManager {
+
/**
* Sets the discovery for the manager.
*
diff --git a/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php b/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
index 84b91afe97d7322432d4c64d84bc0e54c8e094aa..cc5514a76be4cc2ab5b2ad6b62540c67445f95d7 100644
--- a/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
+++ b/core/tests/Drupal/Tests/Core/Menu/LocalTaskDefaultTest.php
@@ -317,6 +317,7 @@ public function testCacheabilityMetadata() {
}
class TestLocalTaskDefault extends LocalTaskDefault {
+
public function setRouteProvider(RouteProviderInterface $route_provider) {
$this->routeProvider = $route_provider;
return $this;
diff --git a/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php b/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
index a4e57eaada35d0779f90220c3a927f4c67269be3..5c81b7eb2b469e5648f4969e73a5884f2db38041 100644
--- a/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
+++ b/core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
@@ -76,7 +76,6 @@ public function testWithinBounds() {
$this->assertEquals(PhpassHashedPassword::MAX_HASH_COUNT, $hasher->enforceLog2Boundaries(100), "Max hash count enforced");
}
-
/**
* Test a password needs update.
*
diff --git a/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php b/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php
index ffd52dc4af43c06c25c02df6424fb979d3e2f397..109c7cc2c2a98744f4177a73974ade6adc1056f6 100644
--- a/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php
+++ b/core/tests/Drupal/Tests/Core/Path/AliasManagerTest.php
@@ -145,7 +145,6 @@ public function testGetPathByAliasLangcode() {
$this->assertEquals($path, $this->aliasManager->getPathByAlias($alias, 'de'));
}
-
/**
* Tests the getAliasByPath method for a path that is not in the whitelist.
*
diff --git a/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php b/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php
index d74607584f375b8781dcba3ecfcb56ea5bd9bfba..53d16ffe21877e81aa07c32bd77efcc22a3b128b 100644
--- a/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php
+++ b/core/tests/Drupal/Tests/Core/Plugin/Context/ContextDefinitionIsSatisfiedTest.php
@@ -346,7 +346,9 @@ public function providerTestIsSatisfiedByPassBundledEntity() {
namespace Drupal\Core\Validation;
if (!function_exists('t')) {
+
function t($string, array $args = []) {
return strtr($string, $args);
}
+
}
diff --git a/core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php b/core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php
index 5cf8d9cc8bf24b9a3b04fb9fa868f32566a4e9df..f1ca26ecf7fd8e515b839e7fd499e37b54f2168e 100644
--- a/core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php
+++ b/core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php
@@ -408,7 +408,6 @@ public function testApplyContextMappingNoValueRequired() {
$this->contextHandler->applyContextMapping($plugin, $contexts);
}
-
/**
* @covers ::applyContextMapping
*/
diff --git a/core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php b/core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
index 9f4eb95dfcaffab51dd5de0e65b25d33fc8c2741..8eb4b3d998540865a6b9c8ecd97314a76dbe8f8d 100644
--- a/core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
+++ b/core/tests/Drupal/Tests/Core/Plugin/Discovery/HookDiscoveryTest.php
@@ -135,6 +135,7 @@ protected function hookDiscoveryTestTestPlugin() {
'test_id_2' => ['class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Orange'],
];
}
+
protected function hookDiscoveryTest2TestPlugin() {
return [
'test_id_3' => ['class' => 'Drupal\plugin_test\Plugin\plugin_test\fruit\Cherry'],
diff --git a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
index a881e7c2ce7240a904714741b10ae58e2a031a37..040b1f988e1a126ef6aeec919b2cc257cd157ef8 100644
--- a/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/BubbleableMetadataTest.php
@@ -641,7 +641,6 @@ public function providerTestMergeAttachmentsHttpHeaderMerging() {
];
}
-
/**
* @covers ::addCacheableDependency
* @dataProvider providerTestMerge
diff --git a/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php b/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php
index 0dcdc582903569bf4c1a491e6c439f53f375c15e..db463d8b40e7867381b13a59540ade6eb44e1141 100644
--- a/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/Element/MachineNameTest.php
@@ -42,7 +42,6 @@ public function providerTestValueCallback() {
return $data;
}
-
/**
* @covers ::processMachineName
*/
@@ -112,7 +111,9 @@ public function testProcessMachineName() {
namespace Drupal\Core\Render\Element;
if (!function_exists('t')) {
+
function t($string, array $args = []) {
return strtr($string, $args);
}
+
}
diff --git a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
index 253a3580dc350336f31823fdbc68a59207a04329..8cfa0fda7c8a9ee7c92260d4942c51b9efa95c7d 100644
--- a/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
+++ b/core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php
@@ -574,6 +574,7 @@ protected function assertPlaceholderRenderCache($cid_parts, array $bubbled_cache
$this->assertEquals($expected_data, $cached_element, 'The correct data is cached: the stored #markup and #attached properties are not affected by the placeholder being replaced.');
}
}
+
/**
* @covers ::render
* @covers ::doRender
diff --git a/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php b/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php
index d075934100d661633320f5f94f3c8ea0dca0b4f8..974df439d9bcf9050f47e5c18b9af7e8c65b2a76 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RouteBuilderTest.php
@@ -311,11 +311,13 @@ protected function getRouteDefinitions() {
* Provides a callback for route definition.
*/
class TestRouteSubscriber {
+
public function routesFromArray() {
return [
'test_route.1' => new Route('/test-route/1'),
];
}
+
public function routesFromCollection() {
$collection = new RouteCollection();
$collection->add('test_route.2', new Route('/test-route/2'));
diff --git a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
index 4d2a914bf76e94bee30eb3daafdfef70fef82ee2..a47ec73210fa51c50f6527238705fdb990393eff 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RouteMatchTestBase.php
@@ -26,7 +26,6 @@ abstract class RouteMatchTestBase extends UnitTestCase {
*/
abstract protected function getRouteMatch($name, Route $route, array $parameters, array $raw_parameters);
-
/**
* Provide sets of parameters and expected parameters for parameter tests.
*/
diff --git a/core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php b/core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php
index 90b4a9ddb66c636f80dfd55b7cd675d9eeb10e6e..4b7c7410a64a3a1366cb2ac8a9934b7581445d64 100644
--- a/core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php
+++ b/core/tests/Drupal/Tests/Core/Routing/RoutePreloaderTest.php
@@ -97,7 +97,6 @@ public function testOnAlterRoutesWithAdminPathNoAdminRoute() {
$this->preloader->onFinishedRoutes(new Event());
}
-
/**
* Tests onAlterRoutes with admin routes and non admin routes.
*/
diff --git a/core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php b/core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php
index 0e575a07ecc603090523ec1cb5b315bc581fc329..3e6d501723d5d510e968e885dcd88c769929964e 100644
--- a/core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php
+++ b/core/tests/Drupal/Tests/Core/Session/AccountProxyTest.php
@@ -47,7 +47,9 @@ public function testSetInitialAccountIdException() {
namespace Drupal\Core\Session;
if (!function_exists('drupal_get_user_timezone')) {
+
function drupal_get_user_timezone() {
return date_default_timezone_get();
}
+
}
diff --git a/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php b/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
index aa980f8c951f6697fff68c43257da080233d5582..ef12531187116da28ddbde2d7b07131b7d3559e9 100644
--- a/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
+++ b/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php
@@ -250,6 +250,7 @@ public function testGenerateNoCache() {
// @todo remove once user_role_permissions() can be injected.
if (!function_exists('user_role_permissions')) {
+
function user_role_permissions(array $roles) {
$role_permissions = [];
foreach ($roles as $rid) {
@@ -257,4 +258,5 @@ function user_role_permissions(array $roles) {
}
return $role_permissions;
}
+
}
diff --git a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php
index 7b3a0d45da896205a4877881115fc95365608f2f..10d2df8b8ba29622213ecf6bf510a532bcafe7af 100644
--- a/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php
+++ b/core/tests/Drupal/Tests/Core/StackMiddleware/NegotiationMiddlewareTest.php
@@ -142,6 +142,7 @@ public function testSetFormat() {
}
class StubNegotiationMiddleware extends NegotiationMiddleware {
+
public function getContentType(Request $request) {
return parent::getContentType($request);
}
diff --git a/core/tests/Drupal/Tests/Core/TempStore/PrivateTempStoreTest.php b/core/tests/Drupal/Tests/Core/TempStore/PrivateTempStoreTest.php
index 0144919b2422ea975a02566335021b2410fad346..c289b89b58b232da973dc46a20fe0a24e4d8d705 100644
--- a/core/tests/Drupal/Tests/Core/TempStore/PrivateTempStoreTest.php
+++ b/core/tests/Drupal/Tests/Core/TempStore/PrivateTempStoreTest.php
@@ -93,7 +93,6 @@ protected function setUp() {
$this->otherObject->owner = 2;
}
-
/**
* Tests the get() method.
*
diff --git a/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php b/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
index 680e2fde182b94f0c917a3c6c2718bdc39656e58..fb4b84cc934c4440eb56aa7b45bbf64a75eea8cb 100644
--- a/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
+++ b/core/tests/Drupal/Tests/Core/UnroutedUrlTest.php
@@ -73,7 +73,6 @@ public function testFromUri($uri, $is_external) {
$this->assertInstanceOf('Drupal\Core\Url', $url);
}
-
/**
* Data provider for testFromUri().
*/
diff --git a/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php b/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
index 80219898682f22848d15214841b814487af4ce15..49618b8172b648bae8ec92df4abf00ea65c86194 100644
--- a/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
+++ b/core/tests/Drupal/Tests/Listeners/HtmlOutputPrinter.php
@@ -20,6 +20,7 @@ class_alias('Drupal\Tests\Listeners\Legacy\HtmlOutputPrinter', 'Drupal\Tests\Lis
*/
class HtmlOutputPrinter extends ResultPrinter {
use HtmlOutputPrinterTrait;
+
/**
* {@inheritdoc}
*/
diff --git a/core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php b/core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php
index 145980bfe531c7ca752bcf00c629d2c67ad1f4c6..790831a6d7d0a157d32181b99ee28ebe01f04191 100644
--- a/core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php
+++ b/core/tests/Drupal/Tests/PhpunitCompatibilityTraitTest.php
@@ -52,6 +52,7 @@ public function providerMockVersions() {
* Test class for \PHPUnit\Framework\TestCase in PHPUnit 4.
*/
class Phpunit4TestClass {
+
public function getMock($originalClassName) {
return 'PHPUnit 4';
}
@@ -62,6 +63,7 @@ public function getMock($originalClassName) {
* Test class for \PHPUnit\Framework\TestCase in PHPUnit 6.
*/
class Phpunit6TestClass {
+
public function createMock($originalClassName) {
return 'PHPUnit 6';
}
@@ -76,6 +78,7 @@ public function getMockbuilder() {
* Test double for PHPUnit_Framework_MockObject_MockBuilder.
*/
class Mockbuilder {
+
public function __call($name, $arguments) {
return $this;
}