Passed
Branch master (a32c7c)
by Prasanth
02:45
created
src/Otpify.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
         }
30 30
 
31 31
         Otp::where([
32
-            ['identifier', $identifier],
33
-            ['otp_type', $otpType]
32
+            [ 'identifier', $identifier ],
33
+            [ 'otp_type', $otpType ]
34 34
         ])->delete();
35 35
 
36 36
         if (($digits >= 4) && ($digits <= 12)) {
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     public static function validate(string $identifier, string $token, string $otpType = null)
65 65
     {
66 66
         $otp = Otp::where([
67
-            ['identifier', $identifier],
68
-            ['otp_type', $otpType]
67
+            [ 'identifier', $identifier ],
68
+            [ 'otp_type', $otpType ]
69 69
         ])->first();
70 70
 
71 71
         if ($otp == null) {
Please login to merge, or discard this patch.