OtpToken   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A generate() 0 3 1
1
<?php
2
3
namespace Thinkstudeo\Rakshak\Support;
4
5
class OtpToken
6
{
7
    /**
8
     * Generate a random 6 digit otp.
9
     *
10
     * @return void
11
     */
12
    public static function generate()
13
    {
14
        return mt_rand(100000, 999999);
0 ignored issues
show
Bug Best Practice introduced by
The expression return mt_rand(100000, 999999) returns the type integer which is incompatible with the documented return type void.
Loading history...
15
    }
16
}
17