Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
12.0, 11.1, 11.2
Description
Please add options to allow for PSR-12 valid formatting. (PRS-12: https://www.php-fig.org/psr/psr-12/)
Currently there is no way to get netbeans accept the following code format:
$array = ['a','b','c']; foreach( array_filter($array, function ($a) { return $a === 'b'; }) as $data ) { //code }
Formatting the code removes the required indent:
$array = ['a','b','c']; foreach( array_filter($array, function ($a) { return $a === 'b'; }) as $data ) { //code }
PSR-12 Rules:
- PSR12.ControlStructures.ControlStructureSpacing.FirstExpressionLine
- PSR12.ControlStructures.ControlStructureSpacing.LineIndent
Attachments
Issue Links
- is duplicated by
-
NETBEANS-4537 PSR-12 formatting
- Closed
-
NETBEANS-5342 Support for PSR-12 parameter wrapping
- Closed
- relates to
-
NETBEANS-5342 Support for PSR-12 parameter wrapping
- Closed
- links to