[Pkg-owncloud-commits] [owncloud-doc] 15/60: Coding Style: no underscores for private class members, contrary to PEAR

David Prévot taffit at moszumanska.debian.org
Tue Feb 25 19:06:54 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud-doc.

commit b15ec7f001bff2abf2db21db6cfcc6860e55602f
Author: Arthur Schiwon <blizzz at owncloud.com>
Date:   Wed Feb 12 14:07:55 2014 +0100

    Coding Style: no underscores for private class members, contrary  to PEAR
---
 developer_manual/app/general/codingguidelines.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/developer_manual/app/general/codingguidelines.rst b/developer_manual/app/general/codingguidelines.rst
index f96d880..e7baa5e 100644
--- a/developer_manual/app/general/codingguidelines.rst
+++ b/developer_manual/app/general/codingguidelines.rst
@@ -65,7 +65,9 @@ All API methods need to be marked with `PHPDoc <http://en.wikipedia.org/wiki/PHP
 
 Objects, Functions, Arrays & Variables
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-Use Pascal case for Objects, Camel case for functions and variables. If you set a default function/method parameter, dont use spaces
+Use Pascal case for Objects, Camel case for functions and variables. If you set
+a default function/method parameter, do not use spaces. Do not prepend private
+class members with underscores.
 
 .. code-block:: javascript
 
@@ -289,7 +291,7 @@ Control Structures
   // single line if
   if (myVar === 'hi') {
       myVar = 'ho';
-  } else {     
+  } else {
       myVar = 'bye';
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-doc.git



More information about the Pkg-owncloud-commits mailing list