Skip to content

Instantly share code, notes, and snippets.

@eugene-dounar
Created March 16, 2012 14:48
Show Gist options
  • Save eugene-dounar/2050389 to your computer and use it in GitHub Desktop.
Save eugene-dounar/2050389 to your computer and use it in GitHub Desktop.
Coding Style Guide Survey by Paul M Jones
Coding Style Guide Survey
=========================
Summary
-------
- Indent Type: 4 spaces (13/19)
- Line Length Limit (Soft): 85 or less (11/17)
- Line Length Limit (Hard): 120 or more (10/17)
- Class Names: Studly (16/18)
- Class Brace Line: Next (14/19)
- Constant Names: Upper (19/19)
- True/False/Null: Lower (17/19)
- Method Names: Camel (18/19)
- Method Brace Line: Next (13/19)
- Control Brace Line: Same (16/19)
- Control Space After: Yes (17/19)
- Always Use Control Braces: Yes (16/19)
- Else/Elseif Line: Same (14/19)
- Case/Break Indents: 1/2 (12/19)
- Function Space After: No (19/19)
- Closing PHP Tag: No (17/19)
- Line Endings: LF (14/14)
Responders
----------
Horde
PEAR
Solar/Aura
Zend
Symfony2
PPI
eZ Publish
CakePHP
Lithium
Drupal
SabreDAV
phpBB
Zikula
Chisimba
C4
Respect
Composer
Doctrine
Nette
Indent Type
-----------
4 spaces: 13
2 spaces: 1
Tab: 5
Line Length Limit (Soft)
------------------------
75: 4
80: 6
85: 1
100: 1
120: 3
None: 2
(2 with no answer)
Line Length Limit (Hard)
------------------------
85: 4
100: 3
120: 2
none: 8
(2 with no answer)
Class Names
-----------
Studly: 16
Lower/Under: 1
Lower: 1
(1 with no answer)
Class Brace Line
----------------
Next: 14
Same: 5
Constant Names
--------------
Upper: 19
True/False/Null
---------------
Lower: 17
Upper: 2
Method Names
------------
Camel: 18
Lower: 1
Method Brace Line
-----------------
Next: 13
Same: 6
Control Brace Line
------------------
Same: 16
Next: 3
Control Space After
-------------------
Yes: 17
No: 2
Always Use Control Braces
-------------------------
Yes: 16
No: 3
Else/Elseif Line
----------------
Same: 14
Next: 5
Case/Break Indents
------------------
0/1: 4
1/1: 3
1/2: 12
Function Space After
--------------------
No: 19
Closing PHP Tag
---------------
No: 17
Yes: 2
Line Endings
------------
LF: 14
(5 with no answer)
* * *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment