Skip to content

Fix for Generic.Functions.OpeningFunctionBraceKernighanRitchie.BraceOnNewLine leaves blank line following the brace #1085

@jasonmccreary

Description

@jasonmccreary

The Squiz.Functions.MultiLineFunctionDeclaration.BraceOnNewLine fix should condense extra line breaks following the opening brace.

Ran

vendor/bin/phpcbf --standard=PSR2 given.php 

given.php

$numbers = [1, 2, 3]; array_walk($numbers, function() { return 5; });

Expected

$numbers = [1, 2, 3]; array_walk($numbers, function () { return 5; });

Actual

$numbers = [1, 2, 3]; array_walk($numbers, function () { return 5; });

Realize this is minor. But if it's inline with others expectations, glad to submit a fix.

Great tool. Thank you.

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