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

HashCodeGenerator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A generateCode() 0 3 1
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