Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 172156 - Closing bracket } should not be added in the following case:
Summary: Closing bracket } should not be added in the following case:
Status: CLOSED DUPLICATE of bug 141220
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 08:10 EST by Evgeni CLA
Modified: 2020-05-14 11:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeni CLA 2007-01-30 08:10:53 EST
Closing bracket should not be added if all the opening brackets to the left of the opening already have matching closing one.

1.Have the following code
<?php

/**
 * Enter description here...
 *
 * @param unknown_type $a
 * @param unknown_type $b
 * @return unknown
 */

if($a == 1) {
|   <<<<- put { here
}
											
?>
2. As decribed in the test, after putting } in | the new bracket - { shouldn't    apper.
3.Inspect the result:if($a == 1) {
}
}
Comment 1 Gadi Goldbarg CLA 2007-01-31 04:46:58 EST
need to close

*** This bug has been marked as a duplicate of bug 141220 ***
Comment 2 Gadi Goldbarg CLA 2007-01-31 04:51:30 EST
fixed