@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | * @param array $options |
14 | 14 | * @return mixed |
15 | 15 | */ |
16 | - public function make($value, array $options=[]) { |
|
17 | - $salt = isset($options['salt'])?$options['salt']:''; |
|
16 | + public function make($value, array $options = []) { |
|
17 | + $salt = isset($options['salt']) ? $options['salt'] : ''; |
|
18 | 18 | |
19 | - return hash('md5',$value.$salt); |
|
19 | + return hash('md5', $value.$salt); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | * @param array $options |
27 | 27 | * @return bool |
28 | 28 | */ |
29 | - public function check($value, $hashValue, array $options=[]) { |
|
30 | - $salt = isset($options['salt'])?$options['salt']:''; |
|
31 | - return hash('md5',$value.$salt) === $hashValue; |
|
29 | + public function check($value, $hashValue, array $options = []) { |
|
30 | + $salt = isset($options['salt']) ? $options['salt'] : ''; |
|
31 | + return hash('md5', $value.$salt) === $hashValue; |
|
32 | 32 | } |
33 | 33 | } |
34 | 34 | \ No newline at end of file |
@@ -23,7 +23,7 @@ |
||
23 | 23 | */ |
24 | 24 | public function register() |
25 | 25 | { |
26 | - $this->app->singleton('md5hash',function(){ |
|
26 | + $this->app->singleton('md5hash', function() { |
|
27 | 27 | return new MD5Hasher(); |
28 | 28 | }); |
29 | 29 | } |