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 166504 - Formatting of if statements with multiple "elses"
Summary: Formatting of if statements with multiple "elses"
Status: RESOLVED DUPLICATE of bug 164381
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomasz Slota
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-03 16:43 UTC by testerro
Modified: 2009-06-04 10:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description testerro 2009-06-03 16:43:27 UTC
Netbeans 6.7 RC1 formats the last "else" in a statement with multiple "elses" in a wrong way:

<?php
if($d->isFuture() || $d->isToday()) {
  $tdAttributes = 1;
} else if($d->isToday()) {
    $tdAttributes = 2;
  } else {
    $tdAttributes = 3;
  }
?>
Comment 1 Tomasz Slota 2009-06-04 10:06:13 UTC

*** This issue has been marked as a duplicate of 164381 ***