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.

Bug 249605 - Indents of array values for function argument
Summary: Indents of array values for function argument
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-02 17:20 UTC by kobake
Modified: 2016-09-23 11:17 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description kobake 2015-01-02 17:20:28 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_45
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.45-b08

Indents of array values for function argument are not good.

(Actual is bad)
	// Bad indent
	foo(
		'AA', [
		'BB',
		'CC',
		]
	);
	// Only first is bad. Second is good.
	bar(
		'AA', [
		'BB', // bad
		'CC', // bad
		'DD', [ // bad
			'SS', // good
			'TT', // good
		],
		'EE', // bad
		'FF', // bad
		]
	);

(Inspected)
	foo(
		'AA', [
			'BB',
			'CC',
		]
	);
	bar(
		'AA', [
			'BB',
			'CC',
			'DD', [
				'SS',
				'TT',
			],
			'EE',
			'FF',
		]
	);

I think it's formatter problem.
Comment 1 Tomas Mysik 2016-06-10 09:43:34 UTC
Reproducible, thanks for reporting.