Passed
Push — feature/VSVGVQ-51 ( 4c3c8b )
by steven
03:08
created

HashCodeGenerator::generateCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 1
nc 1
nop 0
1
<?php declare(strict_types=1);
2
3
namespace VSV\GVQ_API\Registration;
4
5
class HashCodeGenerator
6
{
7
    /**
8
     * @return string
9
     */
10
    public static function generateCode(): string
11
    {
12
        return bin2hex(random_bytes(22));
13
    }
14
}
15