Passed
Push — master ( ace8c3...7bd78a )
by Prasanth
01:48
created
src/Otpify.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,12 @@
 block discarded – undo
20 20
      */
21 21
     public static function generate(string $identifier, int $userId = null, string $otpType = null, int $digits = null, int $validity = null)
22 22
     {
23
-        if ($digits === null) $digits = config('otpify.digits');
24
-        if ($validity === null) $validity = config('otpify.validity');
23
+        if ($digits === null) {
24
+            $digits = config('otpify.digits');
25
+        }
26
+        if ($validity === null) {
27
+            $validity = config('otpify.validity');
28
+        }
25 29
 
26 30
         Otp::where([
27 31
             ['identifier', $identifier],
Please login to merge, or discard this patch.