You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/09/10 12:24:25 UTC

[GitHub] [netbeans] zeleznypa opened a new issue, #4609: PHP code format compatible with PSR -

zeleznypa opened a new issue, #4609:
URL: https://github.com/apache/netbeans/issues/4609

   ### Description
   
   The [PSR-12 coding style](https://www.php-fig.org/psr/psr-12/) standard talk about empty line between „class-based use“, „function-based use“ and „constant-based use“ in this order. Unfortunately the Netbeans „fix imports“ functionality use different order and there is no possibility to add empty line between usage groups by auto-format.
   
   ### Use case/motivation
   
   When I write a code and use the shortcut for „fix imports“ (cmd + shift + i), I want to have usage code formatted by PSR-12 standard:
   
   Current result is:
   ```php
   use Vendor\Package\{ClassA as A, ClassB, ClassC as C};
   use Vendor\Package\SomeNamespace\ClassD as D;
   use const Vendor\Package\{ConstantA, ConstantB, ConstantC};
   use function Vendor\Package\{functionA, functionB, functionC};
   ```
   
   Expected format:
   ```php
   use Vendor\Package\{ClassA as A, ClassB, ClassC as C};
   use Vendor\Package\SomeNamespace\ClassD as D;
   
   use function Vendor\Package\{functionA, functionB, functionC};
   
   use const Vendor\Package\{ConstantA, ConstantB, ConstantC};
   ```
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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


[GitHub] [netbeans] tmysik closed issue #4609: PHP code format compatible with PSR -

Posted by "tmysik (via GitHub)" <gi...@apache.org>.
tmysik closed issue #4609: PHP code format compatible with PSR - 
URL: https://github.com/apache/netbeans/issues/4609


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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

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