Passed
Push — master ( a41a89...3ede3c )
by Robot
04:15 queued 40s
created
src/MD5Hasher.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
Please login to merge, or discard this patch.
src/MD5HashProvider.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.