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 188785

Summary: Support the ZendFramework coding style and PEAR Coding Standards
Product: php Reporter: guinsel
Component: Formatting & IndentationAssignee: Ondrej Brejla <obrejla>
Status: NEW ---    
Severity: normal CC: luckyduck
Priority: P3    
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description guinsel 2010-07-20 11:09:06 UTC
It is a good idea to allow select "ZendFramework coding style" [1] and "PEAR Coding Standards" [2] in tab Editor -> Formatting.

Selecting language PHP, should be able to select "ZendFramework coding style", "PEAR Coding Standards" or customize style.

In addition the new version of symfony (Symfony2) use "ZendFramework coding style".

[1] http://framework.zend.com/manual/en/coding-standard.coding-style.html
[2] http://pear.php.net/manual/en/standards.php
Comment 1 maghiel 2010-07-20 16:05:36 UTC
Got my vote.
One big irritation has always been, that when having a class property $_id, and generating getters and setters, getId() and setId($id) are not options.
Comment 2 admirau 2010-10-04 12:44:42 UTC
+1

I think PHP formatting options are pretty nice now,
but there a lot of them, not all of them obvious and not easy to remember.

An option to save/import the coding style settings would solve problems
(+ few pre-defined ones, like Zend or PEAR)

@maghiel
AFAIK, some of the issues of getters and setters with underscore are resolved in current dev builds.
Comment 3 dextervip 2012-02-03 23:45:28 UTC
It would be nice to have this feature, would be easier for the whole developer team configure their IDE. Btw Does anyone has an exported zend code style profile to share that works on netbeans 7.1?
Comment 4 CesarScur 2012-08-08 10:52:11 UTC
+1

Is viable to create a preset that match zend coding standards with the current solution?
If yes, a nice repository of presets (exports) would be good enough!

Missing most the closing array parenthesis when multiple line array declaration. Like so:
array(
    'validator' => 'Callback',
    'options' => array(
        'callback' => array($class, 'func'),
        'messages' => array(
            Zend_Validate_Callback::INVALID_VALUE => __('text')
        )
    )
)