Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 188785 - Support the ZendFramework coding style and PEAR Coding Standards
Support the ZendFramework coding style and PEAR Coding Standards
Status: NEW
Product: php
Classification: Unclassified
Component: Formatting & Indentation
All All
: P3 with 22 votes (vote)
Assigned To: Ondrej Brejla
Depends on:
  Show dependency treegraph
Reported: 2010-07-20 11:09 UTC by guinsel
Modified: 2012-08-08 10:52 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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".

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

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)

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

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:
    'validator' => 'Callback',
    'options' => array(
        'callback' => array($class, 'func'),
        'messages' => array(
            Zend_Validate_Callback::INVALID_VALUE => __('text')

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo