WebDevStudios / php-coding-standards

WebDevStudios PHP Coding Standards
9 stars 2 forks source link

Allow templating style tags #29

Open aubreypwd opened 4 years ago

aubreypwd commented 4 years ago

E.g.

<?php
    acf_hidden_input( [
        'class' => "input-{$k}",
        'name'  => "{$field['name']}[{$k}]",
        'value' => $v,
    ] );
?>

..could be written as:

<?php acf_hidden_input( [
    'class' => "input-{$k}",
    'name'  => "{$field['name']}[{$k}]",
    'value' => $v,
] ); ?>

...but currently that's not allowed, and it should be, and I like this style personally.