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 231844 - Add an option that will not use "public" for functions in PHP any generated code.
Summary: Add an option that will not use "public" for functions in PHP any generated c...
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3.1
Hardware: PC Mac OS X
: P3 normal with 1 vote (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 13:19 UTC by patkoscsaba
Modified: 2016-09-22 18:12 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description patkoscsaba 2013-06-26 13:19:16 UTC
Add an option so that generated code, like auto-complete for a constructor or code created with generators and other auto-complete features will not put "public" in front of the "function" statement. It is pretty common in PHP to not use "public" because it is the default and each word counts when you write a lot of code day-by-day. So, in our company it is a standard to not write it. However, any generated code has it right now and it is an annoying extra step to remove it.

Thanks.
Comment 1 amobilia 2016-09-22 18:12:36 UTC
Hi,
This doesn't occurs anymore on the 8.2 rc version (dev 201609210002) : "Use public modifier" option has been added
Feel free to reopen the ticket if the problem isn't solved on your configuration.

Regards