Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/group
diff options
context:
space:
mode:
authorFelix Moeller <mail@felixmoeller.de>2012-11-02 22:53:02 +0400
committerFelix Moeller <mail@felixmoeller.de>2012-11-02 22:53:02 +0400
commitafadf93d317e27fd848f1e70d5849169f862aed9 (patch)
tree4a9ed633a7735a1be3cf33fdad31ab981fd64a6b /lib/group
parentd9e97610999ddf9f3a060b786f22d0abb054521e (diff)
Checkstyle: many fixes
Diffstat (limited to 'lib/group')
-rw-r--r--lib/group/dummy.php10
-rw-r--r--lib/group/example.php2
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/group/dummy.php b/lib/group/dummy.php
index 8116dcbd675..9516fd52ff8 100644
--- a/lib/group/dummy.php
+++ b/lib/group/dummy.php
@@ -69,7 +69,7 @@ class OC_Group_Dummy extends OC_Group_Backend {
*/
public function inGroup($uid, $gid) {
if(isset($this->groups[$gid])) {
- return (array_search($uid,$this->groups[$gid])!==false);
+ return (array_search($uid, $this->groups[$gid])!==false);
}else{
return false;
}
@@ -85,7 +85,7 @@ class OC_Group_Dummy extends OC_Group_Backend {
*/
public function addToGroup($uid, $gid) {
if(isset($this->groups[$gid])) {
- if(array_search($uid,$this->groups[$gid])===false) {
+ if(array_search($uid, $this->groups[$gid])===false) {
$this->groups[$gid][]=$uid;
return true;
}else{
@@ -104,9 +104,9 @@ class OC_Group_Dummy extends OC_Group_Backend {
*
* removes the user from a group.
*/
- public function removeFromGroup($uid,$gid) {
+ public function removeFromGroup($uid, $gid) {
if(isset($this->groups[$gid])) {
- if(($index=array_search($uid,$this->groups[$gid]))!==false) {
+ if(($index=array_search($uid, $this->groups[$gid]))!==false) {
unset($this->groups[$gid][$index]);
}else{
return false;
@@ -128,7 +128,7 @@ class OC_Group_Dummy extends OC_Group_Backend {
$groups=array();
$allGroups=array_keys($this->groups);
foreach($allGroups as $group) {
- if($this->inGroup($uid,$group)) {
+ if($this->inGroup($uid, $group)) {
$groups[]=$group;
}
}
diff --git a/lib/group/example.php b/lib/group/example.php
index 76d12629763..3519b9ed92f 100644
--- a/lib/group/example.php
+++ b/lib/group/example.php
@@ -73,7 +73,7 @@ abstract class OC_Group_Example {
*
* removes the user from a group.
*/
- abstract public static function removeFromGroup($uid,$gid);
+ abstract public static function removeFromGroup($uid, $gid);
/**
* @brief Get all groups a user belongs to