Unverified Commit b8f93d5b authored by alexpott's avatar alexpott

Issue #2901730 by mfernea, ankitjain28may, idebr: Fix...

Issue #2901730 by mfernea, ankitjain28may, idebr: Fix 'Squiz.WhiteSpace.FunctionSpacing' coding standard
parent 4cf7a965
...@@ -99,7 +99,6 @@ function file_stream_wrapper_valid_scheme($scheme) { ...@@ -99,7 +99,6 @@ function file_stream_wrapper_valid_scheme($scheme) {
return \Drupal::service('file_system')->validScheme($scheme); return \Drupal::service('file_system')->validScheme($scheme);
} }
/** /**
* Returns the part of a URI after the schema. * Returns the part of a URI after the schema.
* *
...@@ -926,7 +925,6 @@ function file_unmanaged_delete_recursive($path, $callback = NULL) { ...@@ -926,7 +925,6 @@ function file_unmanaged_delete_recursive($path, $callback = NULL) {
return file_unmanaged_delete($path); return file_unmanaged_delete($path);
} }
/** /**
* Moves an uploaded file to a new location. * Moves an uploaded file to a new location.
* *
......
...@@ -380,7 +380,6 @@ function _drupal_rewrite_settings_is_simple($type, $value) { ...@@ -380,7 +380,6 @@ function _drupal_rewrite_settings_is_simple($type, $value) {
return $is_integer || $is_float || $is_string || $is_boolean_or_null; return $is_integer || $is_float || $is_string || $is_boolean_or_null;
} }
/** /**
* Helper for drupal_rewrite_settings(). * Helper for drupal_rewrite_settings().
* *
...@@ -451,7 +450,6 @@ function _drupal_rewrite_settings_dump($variable, $variable_name) { ...@@ -451,7 +450,6 @@ function _drupal_rewrite_settings_dump($variable, $variable_name) {
return $return; return $return;
} }
/** /**
* Helper for drupal_rewrite_settings(). * Helper for drupal_rewrite_settings().
* *
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
/** /**
* Returns Unicode library status and errors. * Returns Unicode library status and errors.
*/ */
/** /**
* Moves unicode_requirements() logic to system_requirements(). * Moves unicode_requirements() logic to system_requirements().
* *
......
...@@ -141,7 +141,6 @@ public static function hasContainer() { ...@@ -141,7 +141,6 @@ public static function hasContainer() {
return static::$container !== NULL; return static::$container !== NULL;
} }
/** /**
* Retrieves a service from the container. * Retrieves a service from the container.
* *
......
...@@ -333,7 +333,6 @@ public static function assertAllMatch($pattern, $traversable, $case_sensitive = ...@@ -333,7 +333,6 @@ public static function assertAllMatch($pattern, $traversable, $case_sensitive =
return FALSE; return FALSE;
} }
/** /**
* Asserts that all members are strings matching a regular expression. * Asserts that all members are strings matching a regular expression.
* *
......
...@@ -477,7 +477,6 @@ protected function prepareFormat($format) { ...@@ -477,7 +477,6 @@ protected function prepareFormat($format) {
return $format; return $format;
} }
/** /**
* Examines getLastErrors() to see what errors to report. * Examines getLastErrors() to see what errors to report.
* *
......
...@@ -282,7 +282,6 @@ protected function dumpMethodCalls(array $calls) { ...@@ -282,7 +282,6 @@ protected function dumpMethodCalls(array $calls) {
return $code; return $code;
} }
/** /**
* Dumps a collection to a PHP array. * Dumps a collection to a PHP array.
* *
......
...@@ -259,7 +259,6 @@ public function paragraphs($paragraph_count = 12) { ...@@ -259,7 +259,6 @@ public function paragraphs($paragraph_count = 12) {
return $output; return $output;
} }
/** /**
* Create a placeholder image. * Create a placeholder image.
* *
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* @see http://php.net/com_create_guid * @see http://php.net/com_create_guid
*/ */
class Com implements UuidInterface { class Com implements UuidInterface {
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -24,7 +24,6 @@ public function __construct($reason = NULL) { ...@@ -24,7 +24,6 @@ public function __construct($reason = NULL) {
$this->reason = $reason; $this->reason = $reason;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -142,6 +142,7 @@ protected function applies(Route $route) { ...@@ -142,6 +142,7 @@ protected function applies(Route $route) {
return $checks; return $checks;
} }
/** /**
* Compiles a mapping of requirement keys to access checker service IDs. * Compiles a mapping of requirement keys to access checker service IDs.
*/ */
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
*/ */
interface CheckProviderInterface { interface CheckProviderInterface {
/** /**
* For each route, saves a list of applicable access checks to the route. * For each route, saves a list of applicable access checks to the route.
* *
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* @ingroup ajax * @ingroup ajax
*/ */
class OpenModalDialogCommand extends OpenDialogCommand { class OpenModalDialogCommand extends OpenDialogCommand {
/** /**
* Constructs an OpenModalDialog object. * Constructs an OpenModalDialog object.
* *
......
...@@ -228,7 +228,6 @@ public function delete($name) { ...@@ -228,7 +228,6 @@ public function delete($name) {
->execute(); ->execute();
} }
/** /**
* Implements Drupal\Core\Config\StorageInterface::rename(). * Implements Drupal\Core\Config\StorageInterface::rename().
* *
......
...@@ -41,7 +41,6 @@ public function setThirdPartySetting($module, $key, $value); ...@@ -41,7 +41,6 @@ public function setThirdPartySetting($module, $key, $value);
*/ */
public function getThirdPartySetting($module, $key, $default = NULL); public function getThirdPartySetting($module, $key, $default = NULL);
/** /**
* Gets all third-party settings of a given module. * Gets all third-party settings of a given module.
* *
......
...@@ -80,7 +80,6 @@ public function getControllerFromDefinition($controller, $path = '') { ...@@ -80,7 +80,6 @@ public function getControllerFromDefinition($controller, $path = '') {
return $callable; return $callable;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -165,7 +165,6 @@ public static function open(array &$connection_options = []) { ...@@ -165,7 +165,6 @@ public static function open(array &$connection_options = []) {
return $pdo; return $pdo;
} }
/** /**
* Destructor for the SQLite connection. * Destructor for the SQLite connection.
* *
......
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
* SQLite implementation of \Drupal\Core\Database\Query\Select. * SQLite implementation of \Drupal\Core\Database\Query\Select.
*/ */
class Select extends QuerySelect { class Select extends QuerySelect {
public function forUpdate($set = TRUE) { public function forUpdate($set = TRUE) {
// SQLite does not support FOR UPDATE so nothing to do. // SQLite does not support FOR UPDATE so nothing to do.
return $this; return $this;
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
* exactly the effect (it is implemented by DROPing the table). * exactly the effect (it is implemented by DROPing the table).
*/ */
class Truncate extends QueryTruncate { class Truncate extends QueryTruncate {
public function __toString() { public function __toString() {
// Create a sanitized comment string to prepend to the query. // Create a sanitized comment string to prepend to the query.
$comments = $this->connection->makeComment($this->comments); $comments = $this->connection->makeComment($this->comments);
......
...@@ -334,7 +334,6 @@ public static function days($required = FALSE, $month = NULL, $year = NULL) { ...@@ -334,7 +334,6 @@ public static function days($required = FALSE, $month = NULL, $year = NULL) {
return !$required ? $none + $range : $range; return !$required ? $none + $range : $range;
} }
/** /**
* Constructs an array of hours. * Constructs an array of hours.
* *
......
...@@ -68,7 +68,6 @@ protected function enhanceEntityForm(array $defaults, Request $request) { ...@@ -68,7 +68,6 @@ protected function enhanceEntityForm(array $defaults, Request $request) {
return $defaults; return $defaults;
} }
/** /**
* Update defaults for an entity list. * Update defaults for an entity list.
* *
......
...@@ -836,7 +836,6 @@ public function getGroup() { ...@@ -836,7 +836,6 @@ public function getGroup() {
return $this->group; return $this->group;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -64,7 +64,6 @@ public function __construct(EntityTypeInterface $entity_type, $conjunction, Conn ...@@ -64,7 +64,6 @@ public function __construct(EntityTypeInterface $entity_type, $conjunction, Conn
$this->connection = $connection; $this->connection = $connection;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -65,7 +65,6 @@ public function notExistsAggregate($field, $function, $langcode = NULL) { ...@@ -65,7 +65,6 @@ public function notExistsAggregate($field, $function, $langcode = NULL) {
return $this->conditionAggregate->notExists($field, $function, $langcode); return $this->conditionAggregate->notExists($field, $function, $langcode);
} }
/** /**
* Adds the aggregations to the query. * Adds the aggregations to the query.
* *
...@@ -126,7 +125,6 @@ protected function addSortAggregate() { ...@@ -126,7 +125,6 @@ protected function addSortAggregate() {
return $this; return $this;
} }
/** /**
* Overrides \Drupal\Core\Entity\Query\Sql\Query::finish(). * Overrides \Drupal\Core\Entity\Query\Sql\Query::finish().
* *
......
...@@ -97,7 +97,6 @@ public function onResponse(FilterResponseEvent $event) { ...@@ -97,7 +97,6 @@ public function onResponse(FilterResponseEvent $event) {
)); ));
} }
/** /**
* Sets the "is-active" class on relevant links. * Sets the "is-active" class on relevant links.
* *
......
...@@ -34,7 +34,6 @@ public function onKernelResponse(FilterResponseEvent $event) { ...@@ -34,7 +34,6 @@ public function onKernelResponse(FilterResponseEvent $event) {
} }
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -43,7 +43,6 @@ public function __construct(ConfigFactoryInterface $config_factory, HttpKernelIn ...@@ -43,7 +43,6 @@ public function __construct(ConfigFactoryInterface $config_factory, HttpKernelIn
$this->httpKernel = $http_kernel; $this->httpKernel = $http_kernel;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -429,7 +429,6 @@ public function invokeAllDeprecated($description, $hook, array $args = []) { ...@@ -429,7 +429,6 @@ public function invokeAllDeprecated($description, $hook, array $args = []) {
return $result; return $result;
} }
/** /**
* Triggers an E_USER_DEPRECATED error if any module implements the hook. * Triggers an E_USER_DEPRECATED error if any module implements the hook.
* *
......
...@@ -92,7 +92,6 @@ public function uninstall(array $theme_list); ...@@ -92,7 +92,6 @@ public function uninstall(array $theme_list);
*/ */
public function listInfo(); public function listInfo();
/** /**
* Adds a theme extension to the internal listing. * Adds a theme extension to the internal listing.
* *
......
...@@ -263,7 +263,6 @@ public function onDependencyRemoval(array $dependencies) { ...@@ -263,7 +263,6 @@ public function onDependencyRemoval(array $dependencies) {
return $changed; return $changed;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -105,7 +105,6 @@ public function getConstraints() { ...@@ -105,7 +105,6 @@ public function getConstraints() {
return $constraints; return $constraints;
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
...@@ -154,7 +153,6 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin ...@@ -154,7 +153,6 @@ public static function generateSampleValue(FieldDefinitionInterface $field_defin
return $values; return $values;
} }
/** /**
* Helper method to get the number of decimal digits out of a decimal number. * Helper method to get the number of decimal digits out of a decimal number.
* *
......
...@@ -125,7 +125,6 @@ public function createInstance($plugin_id, array $configuration = []) { ...@@ -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']); return new $plugin_class($plugin_id, $plugin_definition, $configuration['field_definition'], $configuration['settings'], $configuration['third_party_settings']);
} }
/** /**
* Merges default values for widget configuration. * Merges default values for widget configuration.
* *
......
...@@ -46,7 +46,6 @@ abstract class ImageToolkitBase extends PluginBase implements ImageToolkitInterf ...@@ -46,7 +46,6 @@ abstract class ImageToolkitBase extends PluginBase implements ImageToolkitInterf
*/ */
protected $logger; protected $logger;
/** /**
* Constructs an ImageToolkitBase object. * Constructs an ImageToolkitBase object.
* *
......
...@@ -69,7 +69,6 @@ public function getCacheMaxAge() { ...@@ -69,7 +69,6 @@ public function getCacheMaxAge() {
return $this->wrappedLink->getCacheMaxAge(); return $this->wrappedLink->getCacheMaxAge();
} }
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
...@@ -93,7 +93,6 @@ class MenuLinkManager implements MenuLinkManagerInterface { ...@@ -93,7 +93,6 @@ class MenuLinkManager implements MenuLinkManagerInterface {
*/ */
protected $moduleHandler; protected $moduleHandler;
/** /**
* Constructs a \Drupal\Core\Menu\MenuLinkManager object. * Constructs a \Drupal\Core\Menu\MenuLinkManager object.
* *
......
...@@ -86,7 +86,6 @@ protected function getInbound() { ...@@ -86,7 +86,6 @@ protected function getInbound() {
return $this->sortedInbound; return $this->sortedInbound;
} }
/** /**
* Adds an outbound processor object to the $outboundProcessors property. * Adds an outbound processor object to the $outboundProcessors property.
* *
......
...@@ -123,7 +123,6 @@ public function getContextData() { ...@@ -123,7 +123,6 @@ public function getContextData() {
return $this->contextData; return $this->contextData;
} }
/** /**