@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | //create a random password so we don't need to store the admin password in the config file |
145 | 145 | $saveSymbols = str_replace(['\"', '\\', '\'', '`'], '', ISecureRandom::CHAR_SYMBOLS); |
146 | - $password = $this->random->generate(22, ISecureRandom::CHAR_ALPHANUMERIC . $saveSymbols) |
|
146 | + $password = $this->random->generate(22, ISecureRandom::CHAR_ALPHANUMERIC.$saveSymbols) |
|
147 | 147 | . $this->random->generate(2, ISecureRandom::CHAR_UPPER) |
148 | 148 | . $this->random->generate(2, ISecureRandom::CHAR_LOWER) |
149 | 149 | . $this->random->generate(2, ISecureRandom::CHAR_DIGITS) |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | //we don't have a dbuser specified in config |
159 | 159 | if ($this->dbUser !== $oldUser) { |
160 | 160 | //add prefix to the admin username to prevent collisions |
161 | - $adminUser = substr('oc_' . $username, 0, 16); |
|
161 | + $adminUser = substr('oc_'.$username, 0, 16); |
|
162 | 162 | |
163 | 163 | $i = 1; |
164 | 164 | while (true) { |
@@ -178,8 +178,8 @@ discard block |
||
178 | 178 | break; |
179 | 179 | } else { |
180 | 180 | //repeat with different username |
181 | - $length = strlen((string)$i); |
|
182 | - $adminUser = substr('oc_' . $username, 0, 16 - $length) . $i; |
|
181 | + $length = strlen((string) $i); |
|
182 | + $adminUser = substr('oc_'.$username, 0, 16 - $length).$i; |
|
183 | 183 | $i++; |
184 | 184 | } |
185 | 185 | } |