@@ -41,22 +41,22 @@ |
||
41 | 41 | $this->placeholder = 'home'; |
42 | 42 | $user = $this->getUser(); |
43 | 43 | |
44 | - if($user === null) { |
|
44 | + if ($user === null) { |
|
45 | 45 | return $optionValue; |
46 | 46 | } |
47 | 47 | |
48 | 48 | $backend = $user->getBackend(); |
49 | - if(!$backend instanceof User_Proxy) { |
|
49 | + if (!$backend instanceof User_Proxy) { |
|
50 | 50 | return $optionValue; |
51 | 51 | } |
52 | 52 | |
53 | 53 | $access = $backend->getLDAPAccess($user->getUID()); |
54 | - if(!$access) { |
|
54 | + if (!$access) { |
|
55 | 55 | return $optionValue; |
56 | 56 | } |
57 | 57 | |
58 | 58 | $attribute = $access->connection->ldapExtStorageHomeAttribute; |
59 | - if(empty($attribute)) { |
|
59 | + if (empty($attribute)) { |
|
60 | 60 | return $optionValue; |
61 | 61 | } |
62 | 62 |
@@ -34,7 +34,7 @@ |
||
34 | 34 | public function handle($optionValue) { |
35 | 35 | $this->placeholder = 'user'; |
36 | 36 | $uid = $this->getUserId(); |
37 | - if($uid === null) { |
|
37 | + if ($uid === null) { |
|
38 | 38 | return $optionValue; |
39 | 39 | } |
40 | 40 | return $this->processInput($optionValue, $uid); |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if ($this->userId !== null) { |
67 | 67 | return $this->userId; |
68 | 68 | } |
69 | - if($this->session && $this->session->getUser() !== null) { |
|
69 | + if ($this->session && $this->session->getUser() !== null) { |
|
70 | 70 | return $this->session->getUser()->getUID(); |
71 | 71 | } |
72 | 72 | try { |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | |
81 | 81 | protected function getUser(): ?IUser { |
82 | 82 | $userId = $this->getUserId(); |
83 | - if($userId !== null) { |
|
83 | + if ($userId !== null) { |
|
84 | 84 | return $this->userManager->get($userId); |
85 | 85 | } |
86 | 86 | return null; |