B
B
bingumd2019-12-11 00:17:03
Sublime Text
bingumd, 2019-12-11 00:17:03

How to add or leave padding around parameters for functions in phpfmt for Sublime Text 3?

There is a function:

function test($a, $b) {
    for ($i = 0; $i < 10; $i++) {
        if ($i == 2) {
            return "true";
        }
    }
}

How to get this result with phpfmt?
function test( $a, $b ) {
    for ( $i = 0; $i < 10; $i++ ) {
        if ( $i == 2 ) {
            return "true";
        }
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
bedolazhka, 2019-12-11
@bingumd

NOT ALLOWED ( PSR-2 )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question