Passed
Branch master (a32c7c)
by Prasanth
02:45
created
database/migrations/2022_08_01_113633_create_otps_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('otps', function (Blueprint $table) {
16
+        Schema::create('otps', function(Blueprint $table) {
17 17
             $table->id();
18 18
             $table->unsignedBigInteger('user_id')->nullable();
19 19
             $table->string('identifier');
Please login to merge, or discard this patch.
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.