@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function check($value, $hashValue, array $option = []) |
| 36 | 36 | { |
| 37 | - $salt =isset($option['salt']) ? $option['salt'] : ''; |
|
| 37 | + $salt = isset($option['salt']) ? $option['salt'] : ''; |
|
| 38 | 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 | } |