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 184536 - formatting broken
Summary: formatting broken
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-20 12:22 UTC by Filip Zamboj
Modified: 2010-04-20 13:59 UTC (History)
0 users

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 Filip Zamboj 2010-04-20 12:22:00 UTC
Product Version: NetBeans IDE Dev (Build 100420-055a9c35569f)
Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01


<?php
namespace Test
{
  class Test
  {
    private $var = 'abc';

    public function testFunc()
    {
      echo $this->testFunc();
    return null;
    }
  }
}
?>

formatting results into 
<?phpnamespace Test{class Test {

    private $var = 'abc';

    public function testFunc() {
        echo $this->testFunc();
        return null;
    }}}?>

i see there are almost 300tests failing so I don't mind if you close this issue that is fixed and I will verify if it works already ...
Comment 1 Petr Pisl 2010-04-20 13:59:32 UTC
The failing test should be now fixed. A few minutes ago I have commit the fix. The issue with { after namespace declaration is already reported as issue #184330, so I close the issue as fixed.