@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | ->scalarNode('model_name')->defaultValue('AppBundle:User')->end() |
34 | 34 | ->arrayNode('properties') |
35 | 35 | ->validate() |
36 | - ->always(function ($properties) { |
|
36 | + ->always(function($properties) { |
|
37 | 37 | $fieldValues = array( |
38 | 38 | $properties['username'] ?: '', |
39 | 39 | $properties['email'] ?: '', |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | if (count(array_unique($fieldValues)) < 2) { |
47 | 47 | $valueCount = array_filter( |
48 | 48 | array_count_values($fieldValues), |
49 | - function ($count) { |
|
49 | + function($count) { |
|
50 | 50 | return $count > 1; |
51 | 51 | } |
52 | 52 | ); |
@@ -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 | } |