This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I have the following PHP code: <?php $api = array( 'api' => 2, 'groups' => array( 'something' => array( 'peter' => '1', ), ), 'migrations' => array( // Define something migrations. 'ThisThing' => $common_arguments + array( 'description' => t('Some desc.'), 'source_vocabulary' => 1, 'destination_vocabulary' => 'meetings', ), ), ); When running Source -> Format on this above, the array properties in ThisThing do not get indented properly. The above it actual output after running the format. I believe it due to the array concatenation.
Another example: from this: $form = $this->createForm( new ActionType($entity), $entity, array( 'action' => $action, 'method' => 'POST', ) ); formating generates this: $form = $this->createForm( new ActionType($entity), $entity, array( 'action' => $action, 'method' => 'POST', ) ); instead of this: $form = $this->createForm( new ActionType($entity), $entity, array( 'action' => $action, 'method' => 'POST', ) ); some relevant settings: Continuation Indentation: 8 Array Decleration Indentation: 4 Number of Spaces per Indent: 4
Reproducible. Thanks for reporting.
(In reply to simohe from comment #1) > Another example: > > from this: > > $form = $this->createForm( > new ActionType($entity), $entity, array( > 'action' => $action, > 'method' => 'POST', > ) > ); > > formating generates this: > > $form = $this->createForm( > new ActionType($entity), $entity, array( > 'action' => $action, > 'method' => 'POST', > ) > ); > > instead of this: > > $form = $this->createForm( > new ActionType($entity), $entity, array( > 'action' => $action, > 'method' => 'POST', > ) > ); > > some relevant settings: > Continuation Indentation: 8 > Array Decleration Indentation: 4 > Number of Spaces per Indent: 4 @simohe I would like to separate your problem from this issue. So could you submit it as a new issue? Then, please add me to CC if you submit it. Thanks.