Passed
Push — master ( 6fb631...8b45a0 )
by Petr
08:04
created
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.
php-src/Mode/KwOrig.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,14 +51,14 @@
 block discarded – undo
51 51
     {
52 52
         $ln = strlen($input);
53 53
         # pass is too long and salt too short
54
-        $salt = (strlen($this->salt) < ($ln*5))
54
+        $salt = (strlen($this->salt) < ($ln * 5))
55 55
             ? str_repeat($this->salt, 5)
56
-            : $this->salt ;
56
+            : $this->salt;
57 57
         return substr($salt, $ln, $ln)
58
-            . substr($input,0, intval($ln/2))
59
-            . substr($salt,$ln*2, $ln)
60
-            . substr($input, intval($ln/2))
61
-            . substr($salt,$ln*3, $ln);
58
+            . substr($input, 0, intval($ln / 2))
59
+            . substr($salt, $ln * 2, $ln)
60
+            . substr($input, intval($ln / 2))
61
+            . substr($salt, $ln * 3, $ln);
62 62
     }
63 63
 
64 64
     /**
Please login to merge, or discard this patch.
php-src/Methods/Banned.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
     public function process(\ArrayAccess $credentials): void
93 93
     {
94
-        $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '' ;
94
+        $name = $credentials->offsetExists(static::INPUT_NAME) ? strval($credentials->offsetGet(static::INPUT_NAME)) : '';
95 95
         $ip = strval($this->server->offsetGet(static::SERVER_REMOTE));
96 96
         try {
97 97
             if ($this->libBan->has(
Please login to merge, or discard this patch.