@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | public function make($value, array $option = []) |
24 | 24 | { |
25 | 25 | $salt = isset($option['salt']) ? $option['salt'] : ''; |
26 | - return hash('md5',$value.$salt); |
|
26 | + return hash('md5', $value.$salt); |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | /** |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public function check($value, $hashValue, array $option = []) |
36 | 36 | { |
37 | - $salt =isset($option['salt']) ? $option['salt'] : ''; |
|
38 | - return hash('md5',$value.$salt) === $hashValue; |
|
37 | + $salt = isset($option['salt']) ? $option['salt'] : ''; |
|
38 | + return hash('md5', $value.$salt) === $hashValue; |
|
39 | 39 | } |
40 | 40 | } |
41 | 41 | \ 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 | } |