You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Junichi Yamamoto (Jira)" <ji...@apache.org> on 2021/10/20 15:20:00 UTC

[jira] [Closed] (NETBEANS-3391) Support PSR-12 valid formatting rules

     [ https://issues.apache.org/jira/browse/NETBEANS-3391?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Junichi Yamamoto closed NETBEANS-3391.
--------------------------------------
    Fix Version/s: 12.6
       Resolution: Fixed

Fixed.

> Support PSR-12 valid formatting rules
> -------------------------------------
>
>                 Key: NETBEANS-3391
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3391
>             Project: NetBeans
>          Issue Type: Improvement
>          Components: php - Formatting &amp; Indentation
>    Affects Versions: 12.0, 11.1, 11.2
>            Reporter: Johannes
>            Assignee: Junichi Yamamoto
>            Priority: Trivial
>              Labels: pull-request-available
>             Fix For: 12.6
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> Please add options to allow for PSR-12 valid formatting. (PRS-12:[ https://www.php-fig.org/psr/psr-12/)|https://www.php-fig.org/psr/psr-12/]
> Currently there is no way to get netbeans accept the following code format:
>   
> {code:php}
> $array = ['a','b','c'];
> foreach(
>     array_filter($array, function ($a) {
>         return $a === 'b';
>     }) as $data
> ) {
>     //code
> }
> {code}
> Formatting the code removes the required indent:
> {code:php}
> $array = ['a','b','c'];
> foreach(
> array_filter($array, function ($a) {
>         return $a === 'b';
> }) as $data
> ) {
>     //code
> }
> {code}
> PSR-12 Rules:
>  - PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine
>  - PSR12.ControlStructures.ControlStructureSpacing.LineIndent



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists