Completed
Branch master (b951ed)
by Arun
02:51
created
Category
src/MD5Hasher.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/MD5HasherProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.