[ phpeclipse-Bugs-1577048 ] Formatting options for opening brace are deficient for PEAR

"SourceForge.net" <[email protected]> Tue, 08 May 2007 12:00:22 -0700
Newsgroups gmane.comp.ide.eclipse.phpeclipse.devel
Message-ID <[email protected]>
Bugs item #1577048, was opened at 2006-10-14 01:03
Message generated for change (Comment added) made by emann
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: Edward Mann (emann)
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: Edward Mann (emann)
Date: 2007-05-08 14:00

Message:
Logged In: YES 
user_id=430467
Originator: NO

This is being addressed, sorry i can not give you a estimated completion
date, but the goals i have for the new formatter will address your issues.

----------------------------------------------------------------------

Comment By: Tibor Sekelj (ghostway)
Date: 2006-10-23 23: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 08: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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/