Code fixer added extra line

+++ b/core/tests/Drupal/Tests/Core/Database/Stub/Driver/Schema.php
@@ -15,4 +15,6 @@
 */
class Schema {
  // No-op.
+
+
}

After phpcs check:

 18 | ERROR | [x] The closing brace for the class must have an empty

Steps to reproduce:

  1. clone drupal-8.0.x
  2. run
    phpcbf --standard=Drupal --sniffs=Drupal.Classes.ClassDeclaration core/tests/Drupal/Tests/Core/Database/Stub/Driver/Schema.php
    
  3. check diff

Comments

andriyun created an issue. See original summary.

andriyun’s picture

Priority: Critical » Normal
Status: Closed (fixed) » Active
andriyun’s picture

Title: Drupal.Classes.ClassDeclaration fixer breaks code » Drupal.Classes.ClassDeclaration fixer added extra line
klausi’s picture

Status: Active » Fixed

Committed a fix, thanks for reporting!

  • klausi committed e8c302f on 8.x-2.x
    Issue #2611238: Fixed conflict for class declaration empty lines and...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.