Skip to content

Lines with just spaces are being prepended to the next line #1192

@pento

Description

@pento

Given the following test case (note the \t on the blank line between $foo and $bar):

<?php

$foo = 1;
    
$bar = 2;

The \t is being prepended to the $bar line.

This isn't a core bug, just something I noticed while testing. 🙂

Tested with PHPCS master, WPCS develop.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions