Skip to content

Blank line after namespace / after opening tag #3

@uuf6429

Description

@uuf6429

The current style does not allow a blank line after the opening, which causes some weird formatting from my point of view:

<?php declare(...);   /___
require ...;          \‾‾‾ 

echo 'xx';
<?php declare(...);   /___
use Aaaa;             \‾‾‾
use Bbb;

class Ccc {}
<?php declare(...);   /___
namespace Aaa;        \‾‾‾

use Bbb;
use Ccc;

class Ddd {}

In addition, as far as I'm aware, it also doesn't conform with various standards (PSR-12, PER, Symfony). Can we change that and slowly roll it out, or is there some strong reason behind it?

In the meantime, we could also get rid of some deprecated rules (e.g. single_blank_line_before_namespace).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions