Commit 4577185c authored by catch's avatar catch
Browse files

Issue #2572791 by Mile23, andriyun, attiks, RoSk0: Fix...

Issue #2572791 by Mile23, andriyun, attiks, RoSk0: Fix 'Drupal.WhiteSpace.OpenBracketSpacing' coding standard
parent 7bf7cebe
......@@ -5,4 +5,4 @@
/**
* An exception class to be thrown for context plugin exceptions.
*/
class ContextException extends \Exception implements ExceptionInterface { }
class ContextException extends \Exception implements ExceptionInterface {}
......@@ -5,4 +5,4 @@
/**
* Exception interface for all exceptions thrown by the Plugin component.
*/
interface ExceptionInterface { }
interface ExceptionInterface {}
......@@ -8,4 +8,4 @@
* Exception thrown when a decorator's _call() method is triggered, but the
* decorated object does not contain the requested method.
*/
class InvalidDecoratedMethod extends BadMethodCallException implements ExceptionInterface { }
class InvalidDecoratedMethod extends BadMethodCallException implements ExceptionInterface {}
......@@ -5,4 +5,4 @@
/**
* Exception to be thrown if a plugin tries to use an invalid deriver.
*/
class InvalidDeriverException extends PluginException { }
class InvalidDeriverException extends PluginException {}
......@@ -8,4 +8,4 @@
* Extended interface for exceptions thrown specifically by the Mapper subsystem
* within the Plugin component.
*/
interface MapperExceptionInterface extends ExceptionInterface { }
interface MapperExceptionInterface extends ExceptionInterface {}
......@@ -6,4 +6,4 @@
* Generic Plugin exception class to be thrown when no more specific class
* is applicable.
*/
class PluginException extends \Exception implements ExceptionInterface { }
class PluginException extends \Exception implements ExceptionInterface {}
......@@ -12,4 +12,4 @@
*
* @ingroup block_api
*/
interface MessagesBlockPluginInterface extends BlockPluginInterface { }
interface MessagesBlockPluginInterface extends BlockPluginInterface {}
......@@ -452,7 +452,9 @@ protected function callOnDependencyRemoval(ConfigEntityInterface $entity, array
// Key the entity arrays by config dependency name to make searching easy.
foreach (['config', 'content'] as $dependency_type) {
$affected_dependencies[$dependency_type] = array_combine(
array_map(function ($entity) { return $entity->getConfigDependencyName(); }, $affected_dependencies[$dependency_type]),
array_map(function ($entity) {
return $entity->getConfigDependencyName();
}, $affected_dependencies[$dependency_type]),
$affected_dependencies[$dependency_type]
);
}
......
......@@ -187,7 +187,7 @@ public function __construct(\PDO $connection, array $connection_options) {
* @return \PDO
* A \PDO object.
*/
public static function open(array &$connection_options = []) { }
public static function open(array &$connection_options = []) {}
/**
* Destroys this Connection object.
......
......@@ -7,4 +7,4 @@
/**
* MySQL implementation of \Drupal\Core\Database\Query\Delete.
*/
class Delete extends QueryDelete { }
class Delete extends QueryDelete {}
......@@ -7,4 +7,4 @@
/**
* MySQL implementation of \Drupal\Core\Database\Query\Merge.
*/
class Merge extends QueryMerge { }
class Merge extends QueryMerge {}
......@@ -7,4 +7,4 @@
/**
* MySQL implementation of \Drupal\Core\Database\Query\Select.
*/
class Select extends QuerySelect { }
class Select extends QuerySelect {}
......@@ -7,4 +7,4 @@
/**
* MySQL implementation of \Drupal\Core\Database\Transaction.
*/
class Transaction extends DatabaseTransaction { }
class Transaction extends DatabaseTransaction {}
......@@ -7,4 +7,4 @@
/**
* MySQL implementation of \Drupal\Core\Database\Query\Truncate.
*/
class Truncate extends QueryTruncate { }
class Truncate extends QueryTruncate {}
......@@ -7,4 +7,4 @@
/**
* MySQL implementation of \Drupal\Core\Database\Query\Update.
*/
class Update extends QueryUpdate { }
class Update extends QueryUpdate {}
......@@ -128,7 +128,9 @@ public function __toString() {
// Default fields are always placed first for consistency.
$insert_fields = array_merge($this->defaultFields, $this->insertFields);
$insert_fields = array_map(function($f) { return $this->connection->escapeField($f); }, $insert_fields);
$insert_fields = array_map(function($f) {
return $this->connection->escapeField($f);
}, $insert_fields);
// If we're selecting from a SelectQuery, finish building the query and
// pass it back, as any remaining options are irrelevant.
......
......@@ -254,7 +254,7 @@ public function initializeDatabase() {
\'SELECT random();\'
LANGUAGE \'sql\'',
[],
[ 'allow_delimiter_in_query' => TRUE ]
['allow_delimiter_in_query' => TRUE ]
);
}
......@@ -263,7 +263,7 @@ public function initializeDatabase() {
\'SELECT array_to_string((string_to_array($1, $2)) [1:$3], $2);\'
LANGUAGE \'sql\'',
[],
[ 'allow_delimiter_in_query' => TRUE ]
['allow_delimiter_in_query' => TRUE ]
);
}
$connection->query('SELECT pg_advisory_unlock(1)');
......
......@@ -7,4 +7,4 @@
/**
* PostgreSQL implementation of \Drupal\Core\Database\Query\Merge.
*/
class Merge extends QueryMerge { }
class Merge extends QueryMerge {}
......@@ -100,7 +100,9 @@ public function __toString() {
// Default fields are always placed first for consistency.
$insert_fields = array_merge($this->defaultFields, $this->insertFields);
$insert_fields = array_map(function($f) { return $this->connection->escapeField($f); }, $insert_fields);
$insert_fields = array_map(function($f) {
return $this->connection->escapeField($f);
}, $insert_fields);
$query = $comments . 'INSERT INTO {' . $this->table . '} (' . implode(', ', $insert_fields) . ') VALUES ';
......
......@@ -7,4 +7,4 @@
/**
* PostgreSQL implementation of \Drupal\Core\Database\Transaction.
*/
class Transaction extends DatabaseTransaction { }
class Transaction extends DatabaseTransaction {}
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