@@ -155,8 +155,8 @@ discard block |
||
155 | 155 | static::PW_ID => $uid, |
156 | 156 | static::PW_NAME => $userName, |
157 | 157 | static::PW_PASS => $this->mode->hash($password), |
158 | - static::PW_GROUP => empty($user->getGroup()) ? $uid : $user->getClass() , |
|
159 | - static::PW_CLASS => empty($user->getClass()) ? Interfaces\IAccessClasses::CLASS_USER : $user->getClass() , |
|
158 | + static::PW_GROUP => empty($user->getGroup()) ? $uid : $user->getClass(), |
|
159 | + static::PW_CLASS => empty($user->getClass()) ? Interfaces\IAccessClasses::CLASS_USER : $user->getClass(), |
|
160 | 160 | static::PW_STATUS => $this->transformFromIntToString($user->getStatus()), |
161 | 161 | static::PW_DISPLAY => empty($displayName) ? $userName : $displayName, |
162 | 162 | static::PW_DIR => $directory, |
@@ -208,11 +208,11 @@ discard block |
||
208 | 208 | foreach ($passwordLines as &$line) { |
209 | 209 | if ($line[static::PW_NAME] == $userName) { |
210 | 210 | // REFILL |
211 | - $line[static::PW_GROUP] = !empty($user->getGroup()) ? $user->getGroup() : $line[static::PW_GROUP] ; |
|
212 | - $line[static::PW_CLASS] = !empty($user->getClass()) ? $user->getClass() : $line[static::PW_CLASS] ; |
|
211 | + $line[static::PW_GROUP] = !empty($user->getGroup()) ? $user->getGroup() : $line[static::PW_GROUP]; |
|
212 | + $line[static::PW_CLASS] = !empty($user->getClass()) ? $user->getClass() : $line[static::PW_CLASS]; |
|
213 | 213 | $line[static::PW_STATUS] = $this->transformFromIntToString($user->getStatus()); |
214 | - $line[static::PW_DISPLAY] = !empty($displayName) ? $displayName : $line[static::PW_DISPLAY] ; |
|
215 | - $line[static::PW_DIR] = !empty($directory) ? $directory : $line[static::PW_DIR] ; |
|
214 | + $line[static::PW_DISPLAY] = !empty($displayName) ? $displayName : $line[static::PW_DISPLAY]; |
|
215 | + $line[static::PW_DIR] = !empty($directory) ? $directory : $line[static::PW_DIR]; |
|
216 | 216 | } |
217 | 217 | } |
218 | 218 |
@@ -261,8 +261,8 @@ discard block |
||
261 | 261 | $newUserPass = [ |
262 | 262 | static::PW_NAME => $userName, |
263 | 263 | static::PW_ID => $uid, |
264 | - static::PW_GROUP => empty($user->getGroup()) ? $uid : $user->getGroup() , |
|
265 | - static::PW_CLASS => empty($user->getClass()) ? Interfaces\IAccessClasses::CLASS_USER : $user->getClass() , |
|
264 | + static::PW_GROUP => empty($user->getGroup()) ? $uid : $user->getGroup(), |
|
265 | + static::PW_CLASS => empty($user->getClass()) ? Interfaces\IAccessClasses::CLASS_USER : $user->getClass(), |
|
266 | 266 | static::PW_STATUS => $this->transformFromIntToString($user->getStatus()), |
267 | 267 | static::PW_DISPLAY => empty($displayName) ? $userName : $displayName, |
268 | 268 | static::PW_DIR => $directory, |
@@ -353,11 +353,11 @@ discard block |
||
353 | 353 | $oldName = $line[static::PW_NAME]; |
354 | 354 | $line[static::PW_NAME] = $userName; |
355 | 355 | } |
356 | - $line[static::PW_GROUP] = !empty($user->getGroup()) ? $user->getGroup() : $line[static::PW_GROUP] ; |
|
357 | - $line[static::PW_CLASS] = !empty($user->getClass()) ? $user->getClass() : $line[static::PW_CLASS] ; |
|
356 | + $line[static::PW_GROUP] = !empty($user->getGroup()) ? $user->getGroup() : $line[static::PW_GROUP]; |
|
357 | + $line[static::PW_CLASS] = !empty($user->getClass()) ? $user->getClass() : $line[static::PW_CLASS]; |
|
358 | 358 | $line[static::PW_STATUS] = $this->transformFromIntToString($user->getStatus()); |
359 | - $line[static::PW_DISPLAY] = !empty($displayName) ? $displayName : $line[static::PW_DISPLAY] ; |
|
360 | - $line[static::PW_DIR] = !empty($directory) ? $directory : $line[static::PW_DIR] ; |
|
359 | + $line[static::PW_DISPLAY] = !empty($displayName) ? $displayName : $line[static::PW_DISPLAY]; |
|
360 | + $line[static::PW_DIR] = !empty($directory) ? $directory : $line[static::PW_DIR]; |
|
361 | 361 | } |
362 | 362 | } |
363 | 363 |
@@ -151,8 +151,8 @@ |
||
151 | 151 | foreach ($groupLines as &$line) { |
152 | 152 | if ($line[IAccessGroups::GRP_ID] == $group->getGroupId()) { |
153 | 153 | // REFILL |
154 | - $line[IAccessGroups::GRP_NAME] = !empty($groupName) ? $groupName : $line[IAccessGroups::GRP_NAME] ; |
|
155 | - $line[IAccessGroups::GRP_DESC] = !empty($groupDesc) ? $groupDesc : $line[IAccessGroups::GRP_DESC] ; |
|
154 | + $line[IAccessGroups::GRP_NAME] = !empty($groupName) ? $groupName : $line[IAccessGroups::GRP_NAME]; |
|
155 | + $line[IAccessGroups::GRP_DESC] = !empty($groupDesc) ? $groupDesc : $line[IAccessGroups::GRP_DESC]; |
|
156 | 156 | $line[IAccessGroups::GRP_STATUS] = $group->getGroupStatus(); |
157 | 157 | } |
158 | 158 | } |
@@ -343,7 +343,7 @@ |
||
343 | 343 | protected function wantedUser(): FileUser |
344 | 344 | { |
345 | 345 | $user = new FileUser(); |
346 | - $user->setData(600, 'another', 0, 0, 2,'Testing another', 'why_here'); |
|
346 | + $user->setData(600, 'another', 0, 0, 2, 'Testing another', 'why_here'); |
|
347 | 347 | return $user; |
348 | 348 | } |
349 | 349 | } |
@@ -48,9 +48,9 @@ |
||
48 | 48 | return [ |
49 | 49 | [false, false, IUser::USER_STATUS_UNKNOWN, ], |
50 | 50 | [false, false, IUser::USER_STATUS_DISABLED, ], |
51 | - [true, true, IUser::USER_STATUS_ENABLED, ], |
|
52 | - [true, false, IUser::USER_STATUS_ONLY_LOGIN, ], |
|
53 | - [false, true, IUser::USER_STATUS_ONLY_CERT, ], |
|
51 | + [true, true, IUser::USER_STATUS_ENABLED, ], |
|
52 | + [true, false, IUser::USER_STATUS_ONLY_LOGIN, ], |
|
53 | + [false, true, IUser::USER_STATUS_ONLY_CERT, ], |
|
54 | 54 | [false, false, 9999, ], |
55 | 55 | ]; |
56 | 56 | } |