@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | namespace WyriHaximus\Psr15\EtcPasswd; |
4 | 4 | |
@@ -49,14 +49,14 @@ discard block |
||
49 | 49 | private function createPasswdContents(iterable $users): iterable |
50 | 50 | { |
51 | 51 | foreach ($users as $user => $password) { |
52 | - yield $user . ':x:' . crc32($user) . ':0:99999:7:::'; |
|
52 | + yield $user.':x:'.crc32($user).':0:99999:7:::'; |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 | |
56 | 56 | private function createShadowContents(iterable $users): iterable |
57 | 57 | { |
58 | 58 | foreach ($users as $user => $password) { |
59 | - yield $user . ':$1$$' . base64_encode(md5($password)) . ':' . crc32($user) . ':0:99999:7:::'; |
|
59 | + yield $user.':$1$$'.base64_encode(md5($password)).':'.crc32($user).':0:99999:7:::'; |
|
60 | 60 | } |
61 | 61 | } |
62 | 62 |