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 ( 0edef5...fd3de2 )
by Nicholas
03:23
created

ScriptKeyGenerator::generateFor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace UCD\Infrastructure\Repository\CharacterRepository\FileRepository\KeyGenerator;
4
5
use UCD\Unicode\Codepoint\AggregatorRelay\KeyGenerator;
6
use UCD\Unicode\CodepointAssigned;
7
8
class ScriptKeyGenerator implements KeyGenerator
9
{
10
    /**
11
     * @param CodepointAssigned $entity
12
     * @return string
13
     */
14
    public function generateFor(CodepointAssigned $entity)
15
    {
16
        $properties = $entity->getGeneralProperties();
17
18
        return (string)$properties->getScript();
19
    }
20
}