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
7.2
All All
: P3 with 22 votes (vote)
: TBD
Assigned To: Ondrej Brejla
issues@php
:
Depends on:
Blocks:
  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:
Issue Type: ENHANCEMENT
:


Attachments

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".

[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')
        )
    )
)


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