Test Failed
Push — master ( 278979...0dec93 )
by Alexander
18:41
created
src/Configs/TokenRepositoryConfig.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function getExpirePeriod(): CarbonInterval
25 25
     {
26 26
         $minutes = (int)getenv($this->expirePeriodKey) ?: $this->defaultExpirePeriod;
27
-        return CarbonInterval::minutes((int) $minutes);
27
+        return CarbonInterval::minutes((int)$minutes);
28 28
     }
29 29
 
30 30
     public function getVerifyLimit(): int
Please login to merge, or discard this patch.
src/Services/TokenGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $numbers = range(0, 9);
26 26
 
27
-        return implode('', array_map(function () use (&$numbers) {
27
+        return implode('', array_map(function() use (&$numbers) {
28 28
             return array_rand($numbers);
29 29
         }, range(1, $this->length)));
30 30
     }
Please login to merge, or discard this patch.
src/Models/Token.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -53,13 +53,13 @@
 block discarded – undo
53 53
     public function rules(): array
54 54
     {
55 55
         return [
56
-            [['token', 'recipient', 'type',], 'required'],
57
-            [['token', 'recipient',], 'safe'],
58
-            [['verify_count', 'delivery_count'], 'integer', 'min' => 0,],
59
-            ['verify_count', 'default', 'value' => 0,],
60
-            ['delivery_count', 'default', 'value' => 0,],
61
-            ['data', 'safe',],
62
-            ['type', 'string', 'min' => 1,],
56
+            [['token', 'recipient', 'type', ], 'required'],
57
+            [['token', 'recipient', ], 'safe'],
58
+            [['verify_count', 'delivery_count'], 'integer', 'min' => 0, ],
59
+            ['verify_count', 'default', 'value' => 0, ],
60
+            ['delivery_count', 'default', 'value' => 0, ],
61
+            ['data', 'safe', ],
62
+            ['type', 'string', 'min' => 1, ],
63 63
         ];
64 64
     }
65 65
 
Please login to merge, or discard this patch.
src/Validators/TokenValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 {
17 17
     public ?string $recipientAttribute = null;
18 18
 
19
-    public TokenableEntityInterface|\Closure|null $recipient = null;
19
+    public TokenableEntityInterface | \Closure | null $recipient = null;
20 20
 
21 21
     public ?string $targetAttribute = null;
22 22
 
Please login to merge, or discard this patch.