Passed
Push — master ( f03d23...eaba00 )
by Petr
02:26
created
php-src/Sources/Files/AFiles.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
php-src/Sources/Files/TGroups.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,8 +155,8 @@
 block discarded – undo
155 155
         foreach ($groupLines as &$line) {
156 156
             if ($line[IAccessGroups::GRP_ID] == $group->getGroupId()) {
157 157
                 // REFILL
158
-                $line[IAccessGroups::GRP_NAME] = !empty($groupName) ? $groupName : $line[IAccessGroups::GRP_NAME] ;
159
-                $line[IAccessGroups::GRP_DESC] = !empty($groupDesc) ? $groupDesc : $line[IAccessGroups::GRP_DESC] ;
158
+                $line[IAccessGroups::GRP_NAME] = !empty($groupName) ? $groupName : $line[IAccessGroups::GRP_NAME];
159
+                $line[IAccessGroups::GRP_DESC] = !empty($groupDesc) ? $groupDesc : $line[IAccessGroups::GRP_DESC];
160 160
                 $line[IAccessGroups::GRP_STATUS] = $group->getGroupStatus();
161 161
                 $line[IAccessGroups::GRP_PARENTS] = $this->compactStr($group->getGroupParents());
162 162
             }
Please login to merge, or discard this patch.
php-src/Sources/Files/AFile.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -155,8 +155,8 @@  discard block
 block discarded – undo
155 155
             static::PW_ID => strval($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->getGroup() ,
159
-            static::PW_CLASS => empty($user->getClass()) ? Interfaces\IAccessClasses::CLASS_USER : strval($user->getClass()) ,
158
+            static::PW_GROUP => empty($user->getGroup()) ? $uid : $user->getGroup(),
159
+            static::PW_CLASS => empty($user->getClass()) ? Interfaces\IAccessClasses::CLASS_USER : strval($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
 block discarded – undo
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()) ? strval($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()) ? strval($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
 
Please login to merge, or discard this patch.