GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( faae81...2f5505 )
by Eduardo
02:34
created

Md5Surrounder::build()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
4
namespace EduSalguero\Zifratu\SecretGenerator;
5
6
use EduSalguero\Zifratu\Exceptions\EmptyKeyException;
7
8
9
/**
10
 * Class AesKeyKeyGenerator
11
 * @package EduSalguero\Zifratu
12
 */
13
class Md5Surrounder implements SecretGeneratorInterface
14
{
15
16
    /**
17
     * @param $originalKey
18
     *
19
     * @return string
20
     * @throws EmptyKeyException
21
     */
22
    public function build($originalKey)
23
    {
24
        if(empty($originalKey))
25
        {
26
            throw  new EmptyKeyException();
27
        }
28
        return hash('md5', $originalKey);
29
    }
30
31
}