Skip to content

Commit

Permalink
Issue #2937513 by longwave, eltori, klausi, catch, idebr, xjm: Fix 'D…
Browse files Browse the repository at this point in the history
…rupal.Commenting.DocComment.TagGroupSpacing' coding standard
  • Loading branch information
alexpott committed Jun 14, 2020
1 parent 3534a6c commit ddcf7d5
Show file tree
Hide file tree
Showing 83 changed files with 114 additions and 1 deletion.
2 changes: 2 additions & 0 deletions includes/install.inc
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ function _drupal_rewrite_settings_global(&$ref, $variable) {
* The container for variable values.
* @param string $variable_name
* Name of variable.
*
* @return string
* A string containing valid PHP code of the variable suitable for placing
* into settings.php.
Expand Down Expand Up @@ -508,6 +509,7 @@ function _drupal_rewrite_settings_dump($variable, $variable_name) {
* A string to prepend to the variable's value.
* @param string $suffix
* A string to append to the variable's value.
*
* @return string
* A string containing valid PHP code of the variable suitable for placing
* into settings.php.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ protected function getUncachedMTime($directory) {
* The directory where the temporary filename will be created.
* @param $prefix
* The prefix of the generated temporary filename.
*
* @return string
* Returns the new temporary filename (with path), or FALSE on failure.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function getDerivativeDefinition($derivative_id, $base_plugin_definition)
*
* @param array $base_plugin_definition
* The definition array of the base plugin.
*
* @return array
* An array of full derivative definitions keyed on derivative id.
*
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Component/Utility/Random.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ public function sentences($min_word_count, $capitalize = FALSE) {
* Generate paragraphs separated by double new line.
*
* @param int $paragraph_count
*
* @return string
*/
public function paragraphs($paragraph_count = 12) {
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Asset/AssetResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ public function getCssAssets(AttachedAssetsInterface $assets, $optimize) {
*
* @param \Drupal\Core\Asset\AttachedAssetsInterface $assets
* The assets attached to the current response.
*
* @return array
* A (possibly optimized) collection of JavaScript assets.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Command/DbCommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected function configure() {
*
* @param \Symfony\Component\Console\Input\InputInterface $input
* Input object.
*
* @return \Drupal\Core\Database\Connection
*/
protected function getDatabaseConnection(InputInterface $input) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Drupal/Core/Command/DbDumpCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
* The database connection to use.
* @param array $schema_only
* Table patterns for which to only dump the schema, no data.
*
* @return string
* The PHP script.
*/
Expand Down Expand Up @@ -105,6 +106,7 @@ protected function generateScript(Connection $connection, array $schema_only = [
*
* @param \Drupal\Core\Database\Connection $connection
* The database connection to use.
*
* @return array
* An array of table names.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Config/TypedConfigManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ protected function getFallbackName($name) {
* Configuration name with variables in square brackets.
* @param mixed $data
* Configuration data for the element.
*
* @return string
* Configuration name with variables replaced.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Database/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ protected function expandArguments(&$query, &$args) {
*
* @param string $class
* The class for which we want the potentially driver-specific class.
*
* @return string
* The name of the class that should be used for this driver.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Database/Driver/mysql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ protected function buildTableNameCondition($table_name, $operator = '=', $add_pr
* The name of the table to create.
* @param $table
* A Schema API table definition array.
*
* @return
* An array of SQL statements to create the table.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Database/Driver/pgsql/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public function escapeTable($table) {
*
* @param $string
* The string to escape.
*
* @return string
* The escaped string.
*/
Expand Down
3 changes: 3 additions & 0 deletions lib/Drupal/Core/Database/Driver/pgsql/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ protected function ensureIdentifiersLength($table_identifier_part, $column_ident
*
* @param $table_name
* The non-prefixed name of the table.
*
* @return
* An object with two member variables:
* - 'blob_fields' that lists all the blob fields in the table.
Expand Down Expand Up @@ -264,6 +265,7 @@ public function queryFieldInformation($table, $field, $constraint_type = 'c') {
* The name of the table to create.
* @param $table
* A Schema API table definition array.
*
* @return
* An array of SQL statements to create the table.
*/
Expand Down Expand Up @@ -1074,6 +1076,7 @@ public function getComment($table, $column = NULL) {
*
* @param $data
* String to be hashed.
*
* @return string
* A base-64 encoded sha-256 hash, with + and / replaced with _ and any =
* padding characters removed.
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Database/Driver/sqlite/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public function fieldExists($table, $column) {
* The name of the table to create.
* @param $table
* A Schema API table definition array.
*
* @return
* An array of SQL statements to create the table.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Database/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function start($logging_key) {
*
* @param $logging_key
* The logging key to fetch.
*
* @return
* An indexed array of all query records for this logging key.
*/
Expand Down
14 changes: 14 additions & 0 deletions lib/Drupal/Core/Database/Query/SelectInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ public function getArguments(PlaceholderInterface $queryPlaceholder = NULL);
*
* @param $distinct
* TRUE to flag this query DISTINCT, FALSE to disable it.
*
* @return $this
* The called object.
*/
Expand All @@ -188,6 +189,7 @@ public function distinct($distinct = TRUE);
* automatically based on the $table_alias and $field. The alias will be
* checked for uniqueness, so the requested alias may not be the alias
* that is assigned in all cases.
*
* @return
* The unique alias that was assigned for this field.
*/
Expand All @@ -211,6 +213,7 @@ public function addField($table_alias, $field, $alias = NULL);
* An indexed array of fields present in the specified table that should be
* included in this query. If not specified, $table_alias.* will be generated
* without any aliases.
*
* @return $this
* The called object.
*/
Expand All @@ -232,6 +235,7 @@ public function fields($table_alias, array $fields = []);
* in all cases.
* @param $arguments
* Any placeholder arguments needed for this expression.
*
* @return
* The unique alias that was assigned for this expression.
*/
Expand Down Expand Up @@ -260,6 +264,7 @@ public function addExpression($expression, $alias = NULL, $arguments = []);
* system, for example, when joining the same table more than once.
* @param $arguments
* An array of arguments to replace into the $condition of this join.
*
* @return
* The unique alias that was assigned for this table.
*/
Expand All @@ -286,6 +291,7 @@ public function join($table, $alias = NULL, $condition = NULL, $arguments = []);
* system, for example, when joining the same table more than once.
* @param $arguments
* An array of arguments to replace into the $condition of this join.
*
* @return
* The unique alias that was assigned for this table.
*/
Expand All @@ -312,6 +318,7 @@ public function innerJoin($table, $alias = NULL, $condition = NULL, $arguments =
* system, for example, when joining the same table more than once.
* @param $arguments
* An array of arguments to replace into the $condition of this join.
*
* @return
* The unique alias that was assigned for this table.
*/
Expand All @@ -338,6 +345,7 @@ public function leftJoin($table, $alias = NULL, $condition = NULL, $arguments =
* system, for example, when joining the same table more than once.
* @param $arguments
* An array of arguments to replace into the $condition of this join.
*
* @return
* The unique alias that was assigned for this table.
*
Expand Down Expand Up @@ -379,6 +387,7 @@ public function rightJoin($table, $alias = NULL, $condition = NULL, $arguments =
* system, for example, when joining the same table more than once.
* @param $arguments
* An array of arguments to replace into the $condition of this join.
*
* @return
* The unique alias that was assigned for this table.
*/
Expand Down Expand Up @@ -411,6 +420,7 @@ public function addJoin($type, $table, $alias = NULL, $condition = NULL, $argume
* @param $direction
* The direction to sort. Legal values are "ASC" and "DESC". Any other value
* will be converted to "ASC".
*
* @return $this
* The called object.
*/
Expand Down Expand Up @@ -449,6 +459,7 @@ public function orderRandom();
* range directives that are set.
* @param $length
* The number of records to return from the result set.
*
* @return $this
* The called object.
*/
Expand All @@ -474,6 +485,7 @@ public function range($start = NULL, $length = NULL);
* @param $type
* The type of UNION to add to the query. Defaults to plain
* UNION.
*
* @return $this
* The called object.
*/
Expand All @@ -484,6 +496,7 @@ public function union(SelectInterface $query, $type = '');
*
* @param $field
* The field on which to group. This should be the field as aliased.
*
* @return $this
* The called object.
*/
Expand Down Expand Up @@ -539,6 +552,7 @@ public function execute();
* The comparison operator, such as =, <, or >=. It also accepts more complex
* options such as IN, LIKE, or BETWEEN. Defaults to IN if $value is an array
* = otherwise.
*
* @return \Drupal\Core\Database\Query\ConditionInterface
* The called object.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Database/StatementPrefetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ protected function throwPDOException() {
* The query.
* @param array|null $args
* An array of arguments. This can be NULL.
*
* @return \PDOStatement
* A PDOStatement object.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Entity/EntityDisplayBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ protected function getFieldDefinitions() {
*
* @param \Drupal\Core\Field\FieldDefinitionInterface $definition
* A field definition.
*
* @return array|null
*/
private function fieldHasDisplayOptions(FieldDefinitionInterface $definition) {
Expand Down
2 changes: 2 additions & 0 deletions lib/Drupal/Core/Entity/Query/ConditionAggregateInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function condition($field, $function = NULL, $value = NULL, $operator = N
*
* @param $field
* @param string $langcode
*
* @return ConditionInterface
* @see \Drupal\Core\Entity\Query\QueryInterface::exists()
*/
Expand All @@ -44,6 +45,7 @@ public function exists($field, $function, $langcode = NULL);
* Queries for the nonexistence of a field.
*
* @param string $field
*
* @return ConditionInterface
* @see \Drupal\Core\Entity\Query\QueryInterface::notExists()
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/Drupal/Core/Entity/Query/QueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public function condition($field, $value = NULL, $operator = NULL, $langcode = N
* Name of a field.
* @param $langcode
* Language code (optional).
*
* @return $this
*/
public function exists($field, $langcode = NULL);
Expand All @@ -118,6 +119,7 @@ public function exists($field, $langcode = NULL);
* Name of a field.
* @param $langcode
* Language code (optional).
*
* @return $this
*/
public function notExists($field, $langcode = NULL);
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ protected function finish() {
* The field as passed in by the caller.
* @param string $sql_field
* The sql field as returned by getSqlField.
*
* @return string
* The SQL alias expected in the return value. The dots in $sql_field are
* replaced with underscores and if a default fallback to .value happened,
Expand Down
2 changes: 2 additions & 0 deletions lib/Drupal/Core/Entity/Query/Sql/Tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ protected function ensureEntityTable($index_prefix, $property, $type, $langcode,
*
* @param $field_name
* Name of the field.
*
* @return string
*
* @throws \Drupal\Core\Entity\Query\QueryException
*/
protected function ensureFieldTable($index_prefix, &$field, $type, $langcode, $base_table, $entity_id_field, $field_id_field, $delta) {
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/File/file.api.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
*
* @param $uri
* The URI of the file.
*
* @return
* If the user does not have permission to access the file, return -1. If the
* user has permission, return an array with the appropriate headers. If the
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Menu/MenuTreeStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,7 @@ protected static function schemaDefinition() {
*
* @param array $definitions
* The new menu link definitions.
*
* @return array
* A list of menu link IDs that no longer exist.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Theme/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,7 @@ public function destruct() {
*
* @param $prefixes
* An array of function prefixes by which the list can be limited.
*
* @return array
* Functions grouped by the first prefix.
*/
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Theme/ThemeManagerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ public function resetActiveTheme();
*
* @param \Drupal\Core\Theme\ActiveTheme $active_theme
* The new active theme.
*
* @return $this
*/
public function setActiveTheme(ActiveTheme $active_theme);
Expand Down
1 change: 1 addition & 0 deletions lib/Drupal/Core/Validation/TranslatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ interface TranslatorInterface {
* The domain for the message or null to use the default.
* @param string|null $locale
* The locale or null to use the default.
*
* @return string
* The translated string.
*
Expand Down
3 changes: 3 additions & 0 deletions modules/ckeditor/src/CKEditorPluginInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function isInternal();
*
* @param \Drupal\editor\Entity\Editor $editor
* A configured text editor object.
*
* @return array
* An unindexed array of plugin names this plugin requires. Each plugin is
* is identified by its annotated ID.
Expand All @@ -59,6 +60,7 @@ public function getDependencies(Editor $editor);
*
* @param \Drupal\editor\Entity\Editor $editor
* A configured text editor object.
*
* @return array
* An array of libraries suitable for usage in a render API #attached
* property.
Expand Down Expand Up @@ -91,6 +93,7 @@ public function getFile();
*
* @param \Drupal\editor\Entity\Editor $editor
* A configured text editor object.
*
* @return array
* A keyed array, whose keys will end up as keys under CKEDITOR.config.
*/
Expand Down
1 change: 1 addition & 0 deletions modules/ckeditor/src/CKEditorPluginManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac
* @param bool $include_internal_plugins
* Defaults to FALSE. When set to TRUE, plugins whose isInternal() method
* returns TRUE will also be included.
*
* @return array
* A list of the enabled CKEditor plugins, with the plugin IDs as keys and
* the Drupal root-relative plugin files as values.
Expand Down

0 comments on commit ddcf7d5

Please sign in to comment.