Priority
Normal
Type
Feature 
State
Fixed 
Assignee
Rustam Vishnyakov 
Subsystem
PHP lang 
Affected versions
Fixed in
Fixed in build
Next build 
  • Submitted by   Konstantin Bulenkov
    15 months ago (17 May 2009 13:10)
  • Updated by   Alexey Gopachenko
    6 months ago (18 Feb 2010 18:45)
  • Jira: WI-78
    (history, comments)
WI-78 code style settings for php
29

Links (show as list)

There is no code style for PHP in WI settings
Comments (8)
 
History
 
Linked Issues (2)
 
Alexey Gopachenko
  Alexey Gopachenko
18 May 2009 16:46
(15 months ago)
PHP formatter does not have ANY options yet.
Maxim Mossienko
  Maxim Mossienko
18 Sep 2009 20:33
(11 months ago)
<Comment was deleted>
Oleg Estekhin
  Oleg Estekhin
03 Dec 2009 17:12
(9 months ago)
Voting for the same or better set of configuration options as available for Java in the idea.
Karsten Deubert
  Karsten Deubert
26 Jan 2010 20:50
(7 months ago)
I kind of like the Code Formatting options the Zend Development Environment offers me. If the posted screenshots shouldn't be there, feel free to delete them.

What i'd like to have:

  • Code Formatting Profiles (like PHP Default, PEAR, My own project rules)
    • import/export, maybe to xml?
    • allow me to use/autoimport a profile inside my project structure (so i can store the settings inside my version control system)
    • set/save used profile per project
    • bonus points if i can import/export/convert to CodeSniffer (http://pear.php.net/package/PHP_CodeSniffer) rules, so i can work with the same rules my build-script uses to check my project for coding style violations

  • The profiles itself:
    • just give us enough options that we can match i.e. PHP default or PEAR code conventions (second screenshot shows what Zend Development has to offer)
    • bonus points for builtin profiles for the most used frameworks

Alexey Shein
  Alexey Shein
27 Jan 2010 09:03
(7 months ago)
Yep, I'm quite satisfied with Zend Studio Code Formatter too, it would be just great if WI will have something similar.
import/export, maybe to xml?
set/save used profile per project

IMHO, these ones are the most valuable options
Maxim Mossienko
  Maxim Mossienko
27 Jan 2010 14:58
(7 months ago)
Profiles already present in code style settings, the issue as I see it is purely about actual options
Alexey Shein
  Alexey Shein
27 Jan 2010 15:11
(7 months ago)
Yes, I know, I just want to say that it's important that code style settings should be per project and easy imported/exported.
Maxim Mossienko
  Maxim Mossienko
27 Jan 2010 15:52
(7 months ago)
Profiles can be shared and be per project NOW
Alexey Gopachenko
  Alexey Gopachenko
18 Feb 2010 18:43
(6 months ago)
@Everybody EAP 94.335 full PHP formatter options. Please create individual issues for all related problems.