Commit 82f25bf1 authored by Dries's avatar Dries
Browse files

Issue #2168321 by longwave, martin107: Several files have incorrect indentation.

parent 5c29c0b4
......@@ -287,7 +287,7 @@ function _drupal_default_html_head() {
/**
* Retrieves output to be displayed in the HEAD tag of the HTML page.
*/
*/
function drupal_get_html_head() {
$elements = drupal_add_html_head();
\Drupal::moduleHandler()->alter('html_head', $elements);
......
<?php
/**
/**
* @file
* API functions for installing modules and themes.
*/
......
......@@ -205,35 +205,35 @@ function module_uninstall($module_list = array(), $uninstall_dependents = TRUE)
* @} End of "defgroup hooks".
*/
/**
* @defgroup callbacks Callbacks
* @{
* Callback function signatures.
*
* Drupal's API sometimes uses callback functions to allow you to define how
* some type of processing happens. A callback is a function with a defined
* signature, which you define in a module. Then you pass the function name as
* a parameter to a Drupal API function or return it as part of a hook
* implementation return value, and your function is called at an appropriate
* time. For instance, when setting up batch processing you might need to
* provide a callback function for each processing step and/or a callback for
* when processing is finished; you would do that by defining these functions
* and passing their names into the batch setup function.
*
* Callback function signatures, like hook definitions, are described by
* creating and documenting dummy functions in a *.api.php file; normally, the
* dummy callback function's name should start with "callback_", and you should
* document the parameters and return value and provide a sample function body.
* Then your API documentation can refer to this callback function in its
* documentation. A user of your API can usually name their callback function
* anything they want, although a standard name would be to replace "callback_"
* with the module name.
*
* @see hooks
* @see themeable
*
* @}
*/
/**
* @defgroup callbacks Callbacks
* @{
* Callback function signatures.
*
* Drupal's API sometimes uses callback functions to allow you to define how
* some type of processing happens. A callback is a function with a defined
* signature, which you define in a module. Then you pass the function name as
* a parameter to a Drupal API function or return it as part of a hook
* implementation return value, and your function is called at an appropriate
* time. For instance, when setting up batch processing you might need to
* provide a callback function for each processing step and/or a callback for
* when processing is finished; you would do that by defining these functions
* and passing their names into the batch setup function.
*
* Callback function signatures, like hook definitions, are described by
* creating and documenting dummy functions in a *.api.php file; normally, the
* dummy callback function's name should start with "callback_", and you should
* document the parameters and return value and provide a sample function body.
* Then your API documentation can refer to this callback function in its
* documentation. A user of your API can usually name their callback function
* anything they want, although a standard name would be to replace "callback_"
* with the module name.
*
* @see hooks
* @see themeable
*
* @}
*/
/**
* Returns an array of modules required by core.
......
......@@ -3,7 +3,7 @@
/**
* @file
* Contains \Drupal\Component\Plugin\Discovery\StaticDiscoveryDecorator.
*/
*/
namespace Drupal\Component\Plugin\Discovery;
......
<?php
/**
* @file
* Definition of Drupal\Core\Plugin\Exception\InvalidDecoratedMethod.
*/
* @file
* Definition of Drupal\Core\Plugin\Exception\InvalidDecoratedMethod.
*/
namespace Drupal\Component\Plugin\Exception;
......
......@@ -228,9 +228,9 @@ public function isEmpty() {
public function garbageCollection() {
}
/**
* {@inheritdoc}
*/
/**
* {@inheritdoc}
*/
public function removeBin() {}
}
<?php
/**
* @file
* Contains \Drupal\Core\Config\ConfigImporterException.
*/
* @file
* Contains \Drupal\Core\Config\ConfigImporterException.
*/
namespace Drupal\Core\Config;
/**
* Exception thrown when a config import fails.
*/
* Exception thrown when a config import fails.
*/
class ConfigImporterException extends ConfigException {}
......@@ -124,15 +124,15 @@ class Merge extends Query implements ConditionInterface {
protected $needsUpdate = FALSE;
/**
* Constructs a Merge object.
*
* @param \Drupal\Core\Database\Connection $connection
* A Connection object.
* @param string $table
* Name of the table to associate with this query.
* @param array $options
* Array of database options.
*/
* Constructs a Merge object.
*
* @param \Drupal\Core\Database\Connection $connection
* A Connection object.
* @param string $table
* Name of the table to associate with this query.
* @param array $options
* Array of database options.
*/
public function __construct(Connection $connection, $table, array $options = array()) {
$options['return'] = Database::RETURN_AFFECTED;
parent::__construct($connection, $options);
......
......@@ -246,14 +246,14 @@ protected final function fixRemotePath($path, $strip_chroot = TRUE) {
}
/**
* Changes backslashes to slashes, also removes a trailing slash.
*
* @param string $path
* The path to modify.
*
* @return string
* The modified path.
*/
* Changes backslashes to slashes, also removes a trailing slash.
*
* @param string $path
* The path to modify.
*
* @return string
* The modified path.
*/
function sanitizePath($path) {
$path = str_replace('\\', '/', $path); // Windows path sanitization.
if (substr($path, -1) == '/') {
......
......@@ -27,10 +27,10 @@ class CountryManager implements CountryManagerInterface {
protected $countries;
/*
* Constructor.
*
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
*/
* Constructor.
*
* @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
*/
public function __construct(ModuleHandlerInterface $module_handler) {
$this->moduleHandler = $module_handler;
}
......
......@@ -35,12 +35,12 @@ public function getRouteName();
*/
public function getRouteParameters(Request $request);
/**
* Returns the weight for the local action.
*
* @return int
*/
public function getWeight();
/**
* Returns the weight for the local action.
*
* @return int
*/
public function getWeight();
/**
* Returns options for rendering a link for the local action.
......
......@@ -3,7 +3,7 @@
/**
* @file
* Definition of Drupal\Core\Plugin\Discovery\AlterDiscoveryDecorator.
*/
*/
namespace Drupal\Core\Plugin\Discovery;
......
......@@ -66,7 +66,7 @@ public function getUntranslated();
*
* @return bool
* TRUE if the translation exists, FALSE otherwise.
*/
*/
public function hasTranslation($langcode);
/**
......
......@@ -5,7 +5,7 @@
* Provides an HTTP Basic authentication provider.
*/
/**
/**
* Implements hook_help().
*/
function basic_auth_help($path, $arg) {
......
......@@ -40,7 +40,7 @@ class ConfigTranslationController extends ControllerBase {
*/
protected $accessManager;
/**
/**
* The dynamic router service.
*
* @var \Symfony\Component\Routing\Matcher\RequestMatcherInterface
......
{#
/**
* @file
* Default theme implementation for a form element in config_translation.
*
* Available variables:
* - element: Array that represents the element shown in the form.
* - source: The source of the translation.
* - translation: The translation for the target language.
*
* @see template_preprocess()
* @see template_preprocess_config_translation_manage_form_element()
*
* @ingroup themeable
*/
* @file
* Default theme implementation for a form element in config_translation.
*
* Available variables:
* - element: Array that represents the element shown in the form.
* - source: The source of the translation.
* - translation: The translation for the target language.
*
* @see template_preprocess()
* @see template_preprocess_config_translation_manage_form_element()
*
* @ingroup themeable
*/
#}
<div class="clearfix translation-element-wrapper">
<div class="source">
......
......@@ -279,8 +279,8 @@ function testSiteWideContact() {
}
/**
* Tests auto-reply on the site-wide contact form.
*/
* Tests auto-reply on the site-wide contact form.
*/
function testAutoReply() {
// Create and login administrative user.
$admin_user = $this->drupalCreateUser(array('access site-wide contact form', 'administer contact forms', 'administer permissions', 'administer users'));
......
......@@ -15,10 +15,10 @@
class FilePrivateTest extends FileFieldTestBase {
/**
* Modules to enable.
*
* @var array
*/
* Modules to enable.
*
* @var array
*/
public static $modules = array('node_access_test', 'field_test');
public static function getInfo() {
......
......@@ -38,6 +38,6 @@ function hook_image_style_flush($style) {
\Drupal::cache('mymodule')->deleteAll();
}
/**
* @} End of "addtogroup hooks".
*/
/**
* @} End of "addtogroup hooks".
*/
......@@ -80,7 +80,7 @@ public function isSource() {
/**
* Implements Drupal\locale\StringInterface::isTranslation().
*/
*/
public function isTranslation() {
return !empty($this->lid) && !empty($this->language) && isset($this->translation);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment