@@ -41,7 +41,7 @@ |
||
| 41 | 41 | intval(floor($config['user']['api_key_length'] / 2)) |
| 42 | 42 | ); |
| 43 | 43 | |
| 44 | - $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); |
|
| 44 | + $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config')); |
|
| 45 | 45 | $this->loadPassword($container, $config['user']['properties']['password']); |
| 46 | 46 | $this->loadServices($loader); |
| 47 | 47 | $this->loadApiKeyPurger($container, $loader, $config['api_key_purge']); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function generateHash($password) |
| 14 | 14 | { |
| 15 | - $salt = '$6$rounds=3000$'.base64_encode(uniqid()).'$'; |
|
| 15 | + $salt = '$6$rounds=3000$' . base64_encode(uniqid()) . '$'; |
|
| 16 | 16 | |
| 17 | 17 | return crypt($password, $salt); |
| 18 | 18 | } |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | { |
| 15 | 15 | if (!function_exists('password_hash')) { |
| 16 | 16 | throw new \RuntimeException( |
| 17 | - 'In order to use this strategy please install the package "ircmaxell/password-compat" '. |
|
| 17 | + 'In order to use this strategy please install the package "ircmaxell/password-compat" ' . |
|
| 18 | 18 | 'or upgrade your php version to 5.5 or higher!' |
| 19 | 19 | ); |
| 20 | 20 | } |