diff --git a/core/lib/Drupal/Component/DependencyInjection/Container.php b/core/lib/Drupal/Component/DependencyInjection/Container.php index 45cc8b93ed355f860f1341428a3d64aca636d5db..ac6a6f65d92cb93066649395b1b10bd026fd4c36 100644 --- a/core/lib/Drupal/Component/DependencyInjection/Container.php +++ b/core/lib/Drupal/Component/DependencyInjection/Container.php @@ -586,8 +586,7 @@ public function getServiceIds() { /** * Ensure that cloning doesn't work. */ - private function __clone() - { + private function __clone() { } } diff --git a/core/lib/Drupal/Core/Config/DatabaseStorage.php b/core/lib/Drupal/Core/Config/DatabaseStorage.php index 8a749a38c7439f1b6fd7e8bdd124927f8db1fcad..0ac6134c340013822d4c65e9f2df587d2a9bd8fe 100644 --- a/core/lib/Drupal/Core/Config/DatabaseStorage.php +++ b/core/lib/Drupal/Core/Config/DatabaseStorage.php @@ -159,7 +159,7 @@ protected function doWrite($name, $data) { * @throws \Drupal\Core\Config\StorageException * If a database error occurs. */ - protected function ensureTableExists() { + protected function ensureTableExists() { try { if (!$this->connection->schema()->tableExists($this->table)) { $this->connection->schema()->createTable($this->table, static::schemaDefinition()); diff --git a/core/lib/Drupal/Core/Form/FormStateDecoratorBase.php b/core/lib/Drupal/Core/Form/FormStateDecoratorBase.php index c063666464492fa66be7d8420fa38e0b95f176a6..2668f59a41ec03e97c131c5298c737381c484b6e 100644 --- a/core/lib/Drupal/Core/Form/FormStateDecoratorBase.php +++ b/core/lib/Drupal/Core/Form/FormStateDecoratorBase.php @@ -557,7 +557,7 @@ public function hasValue($key) { /** * {@inheritdoc} */ - public function isValueEmpty($key) { + public function isValueEmpty($key) { return $this->decoratedFormState->isValueEmpty($key); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableAccessDeniedHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableAccessDeniedHttpException.php index e0fd5cb671e5b0e1ff62a86b8dadff806841865d..95c5bcee0c4036f607e72fa3a5d50acf6e9d432b 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableAccessDeniedHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableAccessDeniedHttpException.php @@ -16,7 +16,7 @@ class CacheableAccessDeniedHttpException extends AccessDeniedHttpException imple /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableBadRequestHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableBadRequestHttpException.php index 97d432ae04495b08c0d9195554463209d4ebd8de..4737c33aacf45081ca20abbb82f2ef49ece9f2b6 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableBadRequestHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableBadRequestHttpException.php @@ -16,7 +16,7 @@ class CacheableBadRequestHttpException extends BadRequestHttpException implement /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableConflictHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableConflictHttpException.php index ca804fb3eb1718ba2f5779860e6389580006ec27..6646c230652ea12336c10e6d527229e78eb36f60 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableConflictHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableConflictHttpException.php @@ -16,7 +16,7 @@ class CacheableConflictHttpException extends ConflictHttpException implements Ca /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableGoneHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableGoneHttpException.php index 4568c91d7282b4c605aacc7e7ab3ed7175472be2..13a3d0c29f2637f24de6619eb940dcfdb6515753 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableGoneHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableGoneHttpException.php @@ -16,7 +16,7 @@ class CacheableGoneHttpException extends GoneHttpException implements CacheableD /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php index 76f529eea011efad6cd5115ca217e7b241c474f4..aadc57e176cd46d0599fad21c1d07ca991bac3a6 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableHttpException.php @@ -16,7 +16,7 @@ class CacheableHttpException extends HttpException implements CacheableDependenc /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $statusCode = 0, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $statusCode = 0, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($statusCode, $message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableLengthRequiredHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableLengthRequiredHttpException.php index a75f80a6ca9138b8371f5ff6ad814db8ef94560f..c9647aa3a8af45109d6fe637c38e630e36f1ad51 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableLengthRequiredHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableLengthRequiredHttpException.php @@ -16,7 +16,7 @@ class CacheableLengthRequiredHttpException extends LengthRequiredHttpException i /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php index d9919b1e1e56bce5b11f1d42c85acae9f7fa85d4..5267a1586072716ea742b9b2504cefc06c72d0fc 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableMethodNotAllowedHttpException.php @@ -16,7 +16,7 @@ class CacheableMethodNotAllowedHttpException extends MethodNotAllowedHttpExcepti /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, array $allow, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, array $allow, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($allow, $message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableNotAcceptableHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableNotAcceptableHttpException.php index 94bf1c2a6c99cd189815e01660f43fa2297af0c8..85896f079bc761a8f307da9b933d74e209e5a1bb 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableNotAcceptableHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableNotAcceptableHttpException.php @@ -16,7 +16,7 @@ class CacheableNotAcceptableHttpException extends NotAcceptableHttpException imp /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableNotFoundHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableNotFoundHttpException.php index 9e5e136cd131a593d668541e7925af735fd4efe2..e3097fea2c44c91d05e2188260fca4eff458372e 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableNotFoundHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableNotFoundHttpException.php @@ -16,7 +16,7 @@ class CacheableNotFoundHttpException extends NotFoundHttpException implements Ca /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionFailedHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionFailedHttpException.php index 7921d3efc668be02419d89e5ee7cb1e2215521a9..427b06947ef0d73228b8f52e0b17242ae7249519 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionFailedHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionFailedHttpException.php @@ -16,7 +16,7 @@ class CacheablePreconditionFailedHttpException extends PreconditionFailedHttpExc /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php index d66b255ad8e762bbfbe3a00f71d7f59194895164..06fd39546fbe9dedecd3d58c233f657530a60009 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheablePreconditionRequiredHttpException.php @@ -16,7 +16,7 @@ class CacheablePreconditionRequiredHttpException extends PreconditionRequiredHtt /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableServiceUnavailableHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableServiceUnavailableHttpException.php index 313b9ae58d6e65a476f221250133aec050311a83..671a523c5060d0411dcf0153f54b5bf46015f1ef 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableServiceUnavailableHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableServiceUnavailableHttpException.php @@ -16,7 +16,7 @@ class CacheableServiceUnavailableHttpException extends ServiceUnavailableHttpExc /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $retryAfter = NULL, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $retryAfter = NULL, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($retryAfter, $message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php index e709c0b504fc31b7882bd29b04adf375e29349a3..8c60a5102e74b29bd45d2216eb6f4dc3abeeddf2 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableTooManyRequestsHttpException.php @@ -16,7 +16,7 @@ class CacheableTooManyRequestsHttpException extends TooManyRequestsHttpException /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $retryAfter = NULL, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $retryAfter = NULL, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($retryAfter, $message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableUnauthorizedHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableUnauthorizedHttpException.php index 35dbd72e37d190b0963d436243e28f48d12ccfd2..1931caae4f6c3967b93036f58d6343031f434ef8 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableUnauthorizedHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableUnauthorizedHttpException.php @@ -16,7 +16,7 @@ class CacheableUnauthorizedHttpException extends UnauthorizedHttpException imple /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $challenge, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $challenge, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($challenge, $message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableUnprocessableEntityHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableUnprocessableEntityHttpException.php index 655c67a071a42d4ca9dc5eab28717e505fc1fae3..1f64587479566bd3c6e7ac797d827f19b1fbafb8 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableUnprocessableEntityHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableUnprocessableEntityHttpException.php @@ -16,7 +16,7 @@ class CacheableUnprocessableEntityHttpException extends UnprocessableEntityHttpE /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/lib/Drupal/Core/Http/Exception/CacheableUnsupportedMediaTypeHttpException.php b/core/lib/Drupal/Core/Http/Exception/CacheableUnsupportedMediaTypeHttpException.php index c6f6023daf7197ac096859261a01ace5b55fa6c5..013ca9c419d11ef225e4bd60fc9e21fff6b81ca3 100644 --- a/core/lib/Drupal/Core/Http/Exception/CacheableUnsupportedMediaTypeHttpException.php +++ b/core/lib/Drupal/Core/Http/Exception/CacheableUnsupportedMediaTypeHttpException.php @@ -16,7 +16,7 @@ class CacheableUnsupportedMediaTypeHttpException extends UnsupportedMediaTypeHtt /** * {@inheritdoc} */ - public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { + public function __construct(CacheableDependencyInterface $cacheability, $message = NULL, \Exception $previous = NULL, $code = 0) { $this->setCacheability($cacheability); parent::__construct($message, $previous, $code); } diff --git a/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php b/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php index 926723702df0d0799af3399b712f50fb31e5a1ad..56c0339bd67327d24670ed01596dafd1d082380f 100644 --- a/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php +++ b/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php @@ -109,5 +109,6 @@ public function testSettingsForm() { namespace Drupal\Core\Form; if (!function_exists('drupal_set_message')) { - function drupal_set_message() {} + function drupal_set_message() { + } } diff --git a/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php index 5e2a8cecd9c40fef6113728ba918ad80175834b3..bd82d682907b4cf6d8b3a5ec87896c0f5fec8d52 100644 --- a/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php +++ b/core/modules/field_ui/src/Form/EntityViewDisplayEditForm.php @@ -113,7 +113,7 @@ protected function getDisplayModeOptions() { /** * {@inheritdoc} */ - protected function getDisplayModesLink() {; + protected function getDisplayModesLink() { return [ '#type' => 'link', '#title' => t('Manage view modes'), diff --git a/core/modules/language/src/Form/NegotiationConfigureForm.php b/core/modules/language/src/Form/NegotiationConfigureForm.php index e029134bb73fce67b50bba504a87c5e19eec3ea3..325a4351b01d913392731ff14d630f5957709353 100644 --- a/core/modules/language/src/Form/NegotiationConfigureForm.php +++ b/core/modules/language/src/Form/NegotiationConfigureForm.php @@ -215,7 +215,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { * @param string $type * The language type to generate the table for. */ - protected function configureFormTable(array &$form, $type) { + protected function configureFormTable(array &$form, $type) { $info = $form['#language_types_info'][$type]; $table_form = [ diff --git a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php index 9ed7abd1efc0d3a19feb11c1e212b2a451a3a7f6..7095bc18e2ee6c433c60b5730c8f5cb7def58bdb 100644 --- a/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php +++ b/core/modules/language/tests/src/Functional/LanguageConfigurationTest.php @@ -198,7 +198,7 @@ protected function checkConfigurableLanguageWeight($state = 'by default') { * @return int * Maximum weight of configurable languages. */ - protected function getHighestConfigurableLanguageWeight(){ + protected function getHighestConfigurableLanguageWeight() { $max_weight = 0; $storage = $this->container->get('entity_type.manager') diff --git a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php index face32e69b683751f0b9f18d531428707a61268a..ee496e248a2330daa24374f3e08131333c373040 100644 --- a/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php +++ b/core/modules/locale/tests/src/Functional/LocaleFileSystemFormTest.php @@ -21,7 +21,7 @@ class LocaleFileSystemFormTest extends BrowserTestBase { /** * {@inheritdoc} */ - protected function setUp(){ + protected function setUp() { parent::setUp(); $account = $this->drupalCreateUser(['administer site configuration']); $this->drupalLogin($account); diff --git a/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php b/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php index 3ba73331e97c90f89dcd3b77de33d7f94788be1d..4dd9ca2d4e79a9a5d86f0c9260cbca5de72b989d 100644 --- a/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php +++ b/core/modules/rest/src/Plugin/Type/ResourcePluginManager.php @@ -43,7 +43,7 @@ public function __construct(\Traversable $namespaces, CacheBackendInterface $cac * * @see https://www.drupal.org/node/2874934 */ - public function getInstance(array $options){ + public function getInstance(array $options) { if (isset($options['id'])) { return $this->createInstance($options['id']); } diff --git a/core/modules/rest/tests/src/Functional/AnonResourceTestTrait.php b/core/modules/rest/tests/src/Functional/AnonResourceTestTrait.php index b05ddf2a9cb3eaac6083c946752af4f10ad5f2b6..284d17eec213dfa67fd26e6f3458af215427800e 100644 --- a/core/modules/rest/tests/src/Functional/AnonResourceTestTrait.php +++ b/core/modules/rest/tests/src/Functional/AnonResourceTestTrait.php @@ -31,6 +31,7 @@ protected function assertResponseWhenMissingAuthentication(ResponseInterface $re /** * {@inheritdoc} */ - protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) {} + protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) { + } } diff --git a/core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php b/core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php index 6f8c6217271c8b5ee2f70d722885b2dd014749f2..fbb870bd897ae12e1cbc5ace0f89406d4cf44cab 100644 --- a/core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php +++ b/core/modules/rest/tests/src/Functional/BasicAuthResourceTestTrait.php @@ -38,6 +38,7 @@ protected function assertResponseWhenMissingAuthentication(ResponseInterface $re /** * {@inheritdoc} */ - protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) {} + protected function assertAuthenticationEdgeCases($method, Url $url, array $request_options) { + } } diff --git a/core/modules/serialization/serialization.install b/core/modules/serialization/serialization.install index afc3311b4ce633b767bccafd04dcdb13f4999354..f5a11b88052faafff4b4ef043da0d69938598a89 100644 --- a/core/modules/serialization/serialization.install +++ b/core/modules/serialization/serialization.install @@ -33,7 +33,8 @@ function serialization_requirements($phase) { /** * @see hal_update_8301() */ -function serialization_update_8301() {} +function serialization_update_8301() { +} /** * Add serialization.settings::bc_primitives_as_strings configuration. diff --git a/core/modules/serialization/src/Encoder/XmlEncoder.php b/core/modules/serialization/src/Encoder/XmlEncoder.php index 53177b06cbaf7f598e06ec993b24fdfa54a55224..125a2cc30df4223fa4c92940f4b4ffa8629b3df2 100644 --- a/core/modules/serialization/src/Encoder/XmlEncoder.php +++ b/core/modules/serialization/src/Encoder/XmlEncoder.php @@ -60,7 +60,7 @@ public function setBaseEncoder($encoder) { /** * {@inheritdoc} */ - public function encode($data, $format, array $context = []){ + public function encode($data, $format, array $context = []) { return $this->getBaseEncoder()->encode($data, $format, $context); } @@ -74,7 +74,7 @@ public function supportsEncoding($format) { /** * {@inheritdoc} */ - public function decode($data, $format, array $context = []){ + public function decode($data, $format, array $context = []) { return $this->getBaseEncoder()->decode($data, $format, $context); } diff --git a/core/modules/simpletest/src/RouteProvider.php b/core/modules/simpletest/src/RouteProvider.php index 3aacc4068dc76760e4e15138b089a7aa6524e017..edb330bf22b2da8ba5e66376f744592c38da01db 100644 --- a/core/modules/simpletest/src/RouteProvider.php +++ b/core/modules/simpletest/src/RouteProvider.php @@ -49,7 +49,7 @@ public function getRouteByName($name) { /** * {@inheritdoc} */ - public function preLoadRoutes($names){ + public function preLoadRoutes($names) { return $this->lazyLoadItself()->preLoadRoutes($names); } diff --git a/core/modules/system/tests/src/Functional/File/ConfigTest.php b/core/modules/system/tests/src/Functional/File/ConfigTest.php index f413c38cac84cbaaac908bc7819655911397b85b..caf691591a27d6bcb1c199887a029d6d09a45103 100644 --- a/core/modules/system/tests/src/Functional/File/ConfigTest.php +++ b/core/modules/system/tests/src/Functional/File/ConfigTest.php @@ -11,7 +11,7 @@ */ class ConfigTest extends BrowserTestBase { - protected function setUp(){ + protected function setUp() { parent::setUp(); $this->drupalLogin($this->drupalCreateUser(['administer site configuration'])); } diff --git a/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php b/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php index fc8958c097a029f0f47f5d7b485c092307c3a0ba..c0ee2d1727969d22c300e70586a498841ccb660f 100644 --- a/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php +++ b/core/modules/user/tests/src/Functional/UserRolesAssignmentTest.php @@ -21,7 +21,7 @@ protected function setUp() { * Tests that a user can be assigned a role and that the role can be removed * again. */ - public function testAssignAndRemoveRole() { + public function testAssignAndRemoveRole() { $rid = $this->drupalCreateRole(['administer users']); $account = $this->drupalCreateUser(); diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index e1eab3e8585d424d9cf4f49428039d8920c19657..012dec4f21458cfa54e93e03ce5608dc350bf1fc 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -1470,7 +1470,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { '#title' => $this->t('Show contextual links'), '#default_value' => $this->getOption('show_admin_links'), ]; - break; + break; case 'use_more': $form['#title'] .= $this->t('Add a more link to the bottom of the display.'); $form['use_more'] = [ @@ -1865,7 +1865,7 @@ public function validateOptionsForm(&$form, FormStateInterface $form_state) { if (preg_match('/[^a-zA-Z0-9-_ ]/', $css_class)) { $form_state->setError($form['css_class'], $this->t('CSS classes must be alphanumeric or dashes only.')); } - break; + break; case 'display_id': if ($form_state->getValue('display_id')) { if (preg_match('/[^a-z0-9_]/', $form_state->getValue('display_id'))) { diff --git a/core/modules/views/tests/src/Kernel/Plugin/StyleGridTest.php b/core/modules/views/tests/src/Kernel/Plugin/StyleGridTest.php index 1495399eeb3d1b9f4f12d5fa742c16483b8034cb..1ef2009d56ba09891c6f395db013733e8a0e054e 100644 --- a/core/modules/views/tests/src/Kernel/Plugin/StyleGridTest.php +++ b/core/modules/views/tests/src/Kernel/Plugin/StyleGridTest.php @@ -69,11 +69,16 @@ protected function assertGrid(ViewExecutable $view, $alignment, $columns) { } $width = '0'; switch ($columns) { - case 5: $width = '20'; break; - case 4: $width = '25'; break; - case 3: $width = '33.3333'; break; - case 2: $width = '50'; break; - case 1: $width = '100'; break; + case 5: $width = '20'; + break; + case 4: $width = '25'; + break; + case 3: $width = '33.3333'; + break; + case 2: $width = '50'; + break; + case 1: $width = '100'; + break; } // Ensure last column exists. $result = $this->xpath('//div[contains(@class, "views-col") and contains(@class, :columns) and starts-with(@style, :width)]', [':columns' => 'col-' . $columns, ':width' => 'width: ' . $width]); diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist index 6e7e024efcf7bc17fc471e40fcfcd304acdaa81c..9224543d6118b354f4261209c4a78b4ebe10dbc5 100644 --- a/core/phpcs.xml.dist +++ b/core/phpcs.xml.dist @@ -126,6 +126,7 @@ + @@ -136,6 +137,11 @@ + + + + + diff --git a/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php b/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php index bdf66bdd302b7121201cab34d23d3676d7fa76c0..ff401e112ccfcfcd70cda4802d82e2c825761beb 100644 --- a/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php +++ b/core/tests/Drupal/KernelTests/Core/File/UrlRewritingTest.php @@ -21,7 +21,7 @@ class UrlRewritingTest extends FileTestBase { /** * Tests the rewriting of shipped file URLs by hook_file_url_alter(). */ - public function testShippedFileURL() { + public function testShippedFileURL() { // Test generating a URL to a shipped file (i.e. a file that is part of // Drupal core, a module or a theme, for example a JavaScript file). diff --git a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc index da3a9c249fcd185a8c10ea82f8bf8da571bd962c..ed4fb46471691ad00177a2ac605ced956d4354dc 100644 --- a/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc +++ b/core/tests/Drupal/Tests/Core/Extension/modules/module_handler_test/hook_include.inc @@ -8,4 +8,5 @@ /** * Test hook. */ -function module_handler_test_hook_include() {} +function module_handler_test_hook_include() { +} diff --git a/core/tests/Drupal/Tests/Core/Site/SettingsTest.php b/core/tests/Drupal/Tests/Core/Site/SettingsTest.php index 4d34b3069491bdc157734d38834d3a30ef26f2eb..5e4f1d084c15f683d42225e5b37122c8e4b6ff5e 100644 --- a/core/tests/Drupal/Tests/Core/Site/SettingsTest.php +++ b/core/tests/Drupal/Tests/Core/Site/SettingsTest.php @@ -28,7 +28,7 @@ class SettingsTest extends UnitTestCase { /** * @covers ::__construct */ - protected function setUp(){ + protected function setUp() { $this->config = [ 'one' => '1', 'two' => '2', diff --git a/core/tests/Drupal/Tests/WebAssert.php b/core/tests/Drupal/Tests/WebAssert.php index 9171a3f303708aefc2cb76cd5c64ed8269cf77cd..81495517005b24042a5f4b80631b874efc42715b 100644 --- a/core/tests/Drupal/Tests/WebAssert.php +++ b/core/tests/Drupal/Tests/WebAssert.php @@ -451,7 +451,7 @@ public function assert($condition, $message) { * @throws \Behat\Mink\Exception\ElementNotFoundException * @throws \Behat\Mink\Exception\ExpectationException */ - public function fieldDisabled($field, TraversableElement $container = NULL) { + public function fieldDisabled($field, TraversableElement $container = NULL) { $container = $container ?: $this->session->getPage(); $node = $container->findField($field);