diff --git a/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php b/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php index 675fbdf..750f122 100644 --- a/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php +++ b/core/lib/Drupal/Component/ProxyBuilder/ProxyBuilder.php @@ -92,8 +92,6 @@ public function build($class_name, $proxy_class_name = '') { // class. if ($parent_interfaces = $interface->getInterfaceNames()) { foreach ($parent_interfaces as $parent_interface) { - if (isset($interfaces[$parent_interface])) { -} unset($interfaces[$parent_interface]); } } diff --git a/core/modules/file/src/Element/ManagedFile.php b/core/modules/file/src/Element/ManagedFile.php index fbdce31..426f40c 100644 --- a/core/modules/file/src/Element/ManagedFile.php +++ b/core/modules/file/src/Element/ManagedFile.php @@ -97,7 +97,7 @@ public static function valueCallback(&$element, $input, FormStateInterface $form // Temporary files that belong to other users should never be // allowed. if ($file->isTemporary()) { - if ($file->getOwnerId() != \Drupal::currentUser()->id()) { + if ($file->getOwnerId() != \Drupal::currentUser()->id()) { $force_default = TRUE; break; } diff --git a/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php b/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php index 5964405..1d0b0c7 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/InsertDefaultsTest.php @@ -35,7 +35,7 @@ function testDefaultEmptyInsert() { // This is only executed if no exception has been thrown. $this->fail('Expected exception NoFieldsException has not been thrown.'); } -catch (NoFieldsException $e) { + catch (NoFieldsException $e) { $this->pass('Expected exception NoFieldsException has been thrown.'); } diff --git a/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php b/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php index cd33254..4b24ebe 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/LargeQueryTest.php @@ -32,7 +32,7 @@ function testMaxAllowedPacketQueryTruncating() { db_query('SELECT name FROM {test} WHERE name = :name', array(':name' => $long_name)); $this->fail("An exception should be thrown for queries larger than 'max_allowed_packet'"); } -catch (DatabaseException $e) { + catch (DatabaseException $e) { // Close and re-open the connection. Otherwise we will run into error // 2006 "MySQL server had gone away" afterwards. Database::closeConnection(); diff --git a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php index 3da41a7..7866146 100644 --- a/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php +++ b/core/tests/Drupal/KernelTests/Core/Database/SchemaTest.php @@ -231,7 +231,7 @@ function testSchema() { db_create_table('test_timestamp', $table_specification); } catch (\Exception $e) { -} + } $this->assertTrue(db_table_exists('test_timestamp'), 'Table with database specific datatype was created.'); }