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 187661

Summary: [Feature Request] Wrapping a long string concatenation
Product: php Reporter: arnolem
Component: Formatting & IndentationAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://framework.zend.com/manual/en/coding-standard.coding-style.html#coding-standard.coding-style.strings.string-concatenation
Issue Type: ENHANCEMENT Exception Reporter:

Description arnolem 2010-06-16 15:14:03 UTC
-----------------------------------------------------------
Product Version = NetBeans IDE 6.9 (Build 201006111053)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.6.0_20
Runtime = Java HotSpot(TM) Client VM 16.3-b01
-----------------------------------------------------------

Hello,

I think it would be interesting to indent correctly and concatenated string when is to long like :

<?php
$sql = "SELECT `id`, `name`, `username`, `email` FROM `people` " 
       . "WHERE `name` = 'Caroline' "
       . "ORDER BY `name` ASC ";


?>

Thanks
Comment 1 Petr Pisl 2010-06-22 14:17:37 UTC
It can be simply implemented.
Comment 2 arnolem 2010-06-22 16:40:33 UTC
The ideal would be to align the points with equal sign