Skip to content

Commit 7665af5

Browse files
committed
style(PHP): fix code style
Signed-off-by: Malik <[email protected]>
1 parent d54879e commit 7665af5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/UserBackend.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ public function createUserIfNotExists(string $uid, array $attributes = []): void
138138
if ($home !== '') {
139139
//if attribute's value is an absolute path take this, otherwise append it to data dir
140140
//check for / at the beginning or pattern c:\ resp. c:/
141-
if ('/' !== $home[0]
142-
&& !(3 < strlen($home) && ctype_alpha($home[0])
143-
&& $home[1] === ':' && ('\\' === $home[2] || '/' === $home[2]))
141+
if ($home[0] !== '/'
142+
&& !(strlen($home) > 3 && ctype_alpha($home[0])
143+
&& $home[1] === ':' && ($home[2] === '\\' || $home[2] === '/'))
144144
) {
145145
$home = $this->config->getSystemValue('datadirectory',
146146
\OC::$SERVERROOT.'/data') . '/' . $home;

0 commit comments

Comments
 (0)