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
Pull Request — master (#65)
by
unknown
01:40
created

StringType::parse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 2
1
<?php
2
3
namespace Minime\Annotations\Types;
4
5
use Minime\Annotations\Interfaces\TypeInterface;
6
7
class StringType implements TypeInterface
8
{
9
    /**
10
     * @var TypeInterface
11
     */
12
    private static $instance;
13
14
    public static function getType()
15
    {
16
        if (!isset(self::$instance)) {
17
            self::$instance = new StringType();
18
        }
19
20
        return self::$instance;
21
    }
22
23
    /**
24
     * Parse a given value as string
25
     *
26
     * @param  string $value
27
     * @param  null   $annotation Unused
28
     * @return mixed
29
     */
30
    public function parse($value, $annotation = null)
31
    {
32
        return $value;
33
    }
34
35
}
36