@@ -37,7 +37,7 @@ |
||
| 37 | 37 | { |
| 38 | 38 | if(isset($this->data['mail'])) |
| 39 | 39 | { |
| 40 | - return $this->data['mail']; |
|
| 40 | + return $this->data['mail']; |
|
| 41 | 41 | } |
| 42 | 42 | return $this->getUid(); |
| 43 | 43 | } |
@@ -5,13 +5,13 @@ discard block |
||
| 5 | 5 | { |
| 6 | 6 | private $data; |
| 7 | 7 | |
| 8 | - function __construct($data=false) |
|
| 8 | + function __construct($data = false) |
|
| 9 | 9 | { |
| 10 | 10 | $this->data = array(); |
| 11 | - if($data !== false) |
|
| 11 | + if ($data !== false) |
|
| 12 | 12 | { |
| 13 | 13 | $this->data = $data; |
| 14 | - if(isset($data['extended'])) |
|
| 14 | + if (isset($data['extended'])) |
|
| 15 | 15 | { |
| 16 | 16 | $this->data = $data['extended']; |
| 17 | 17 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | $uid = $this->getUid(); |
| 26 | 26 | $filter = new \Data\Filter("uid eq '$uid' and gid eq '$name'"); |
| 27 | 27 | $groups = $group_data_table->read($filter); |
| 28 | - if($groups === false || !isset($groups[0])) |
|
| 28 | + if ($groups === false || !isset($groups[0])) |
|
| 29 | 29 | { |
| 30 | 30 | return false; |
| 31 | 31 | } |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | function getEmail() |
| 37 | 37 | { |
| 38 | - if(isset($this->data['mail'])) |
|
| 38 | + if (isset($this->data['mail'])) |
|
| 39 | 39 | { |
| 40 | 40 | return $this->data['mail']; |
| 41 | 41 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | function getUid() |
| 46 | 46 | { |
| 47 | - if(isset($this->data['uid'])) |
|
| 47 | + if (isset($this->data['uid'])) |
|
| 48 | 48 | { |
| 49 | 49 | return $this->data['uid']; |
| 50 | 50 | } |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | public function getGroupName() |
| 14 | 14 | { |
| 15 | - if(isset($data['gid'])) |
|
| 15 | + if (isset($data['gid'])) |
|
| 16 | 16 | { |
| 17 | 17 | return $data['gid']; |
| 18 | 18 | } |
@@ -21,19 +21,19 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | public function getDescription() |
| 23 | 23 | { |
| 24 | - if(isset($data['description'])) |
|
| 24 | + if (isset($data['description'])) |
|
| 25 | 25 | { |
| 26 | 26 | return $data['description']; |
| 27 | 27 | } |
| 28 | 28 | return false; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - public function getMemberUids($recursive=true) |
|
| 31 | + public function getMemberUids($recursive = true) |
|
| 32 | 32 | { |
| 33 | 33 | return $this->members(false, $recursive, true); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function members($details=false, $recursive=true, $includeGroups=true) |
|
| 36 | + public function members($details = false, $recursive = true, $includeGroups = true) |
|
| 37 | 37 | { |
| 38 | 38 | //TODO |
| 39 | 39 | return array(); |