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

David Prévot taffit at moszumanska.debian.org
Fri Jul 4 02:54:49 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 0c42f63133d760668a3dd0c0de0b9a9f549b5fc4
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