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

Summary: Indents of array values for function argument
Product: php Reporter: kobake
Component: Formatting & IndentationAssignee: Tomas Mysik <tmysik>
Status: NEW ---    
Severity: normal CC: junichi11, rob006
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.