[ phpeclipse-Bugs-1577048 ] Formatting options for opening brace are deficient for PEAR
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.ide.eclipse.phpeclipse.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1577048, was opened at 2006-10-14 13:03 Message generated for change (Comment added) made by ghostway You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1577048&group_id=57621 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: PHP Editor Group: None Status: Open Resolution: None Priority: 3 Private: No Submitted By: Dean Scarff (p00ya) Assigned to: Nobody/Anonymous (nobody) Summary: Formatting options for opening brace are deficient for PEAR Initial Comment: PEAR conventions require different treatment of opening braces depending on whether they are for a control structure or for a class/function block. See: http://pear.php.net/manual/en/standards.sample.php The available options in Window>Preferences>PHPeclipse Web Development>PHP>Formatter don't seem to allow this: * insert a new line before an opening brace: if on correct for class/function, but it breaks control structures. if off, correct for control structures but breaks class/function. I think the best resolution would allow the user to choose newline before opening brace for class blocks, function blocks and control structures separately. ---------------------------------------------------------------------- Comment By: Tibor Sekelj (ghostway) Date: 2006-10-24 11:01 Message: Logged In: YES user_id=569722 Dear developer, phpeclipse Formatting tool since the last version totally breaks any common coding standard in the php world like PEAR and other. It became unusable! eg. spaces where spaces dont belong -> "Class :: functionOne ( );" breaks array formatting (if comma is before the item and not after it) and many other. please provide at least the possibility to configure the formatter so we can at least create a formating template in PEAR style, even you dont agree with the common standards. kind regards Tibor ---------------------------------------------------------------------- Comment By: Alex Tarachanowicz (dizmo) Date: 2006-10-16 20:43 Message: Logged In: YES user_id=742309 I couldn't agree with you more. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=484801&aid=1577048&group_id=57621 ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642