OtpToken::generate()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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