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 ( 95f711...5b62bb )
by Joost van
13s
created

ProfessionalGroup::getAll()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 33
Code Lines 30

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 33
rs 8.8571
cc 1
eloc 30
nc 1
nop 0
1
<?php
2
3
namespace Wb\BigRegister;
4
5
class ProfessionalGroup
6
{
7
    public static function getAll()
8
    {
9
        return array(
10
            '01' => 'Artsen',
11
            '02' => 'Tandartsen',
12
            '03' => 'Verloskundigen',
13
            '04' => 'Fysiotherapeuten',
14
            '16' => 'Psychotherapeuten',
15
            '17' => 'Apothekers',
16
            '18' => 'Apotheekhoudende artsen',
17
            '25' => 'Gz-psychologen',
18
            '30' => 'Verpleegkundigen',
19
            '81' => 'Physician assistants',
20
            '82' => 'Klinisch technologen',
21
            '83' => 'Apothekersassistenten',
22
            '84' => 'Klinisch Fysici',
23
            '85' => 'Tandprothetici',
24
            '86' => 'Verzorgenden individuele gezondheidszorg',
25
            '87' => 'Optometristen',
26
            '88' => 'Huidtherapeuten',
27
            '89' => 'Diëtisten',
28
            '90' => 'Ergotherapeuten',
29
            '91' => 'Logopedisten',
30
            '92' => 'Mondhygiënisten',
31
            '93' => 'Oefentherapeuten Mensendieck',
32
            '94' => 'Oefentherapeuten Cesar',
33
            '95' => 'Orthoptisten',
34
            '96' => 'Podotherapeuten',
35
            '97' => 'Radiodiagnostisch laboranten',
36
            '98' => 'Radiotherapeutisch laboranten',
37
            '99' => 'Onbekend'
38
        );
39
    }
40
41
    public static function valueOf($profession)
42
    {
43
        $professions = self::getAll();
44
45
        $code = array_search($profession, $professions, true);
46
        return $code === false ? null : $code;
47
    }
48
49
    public static function nameOf($code)
50
    {
51
        $professions = self::getAll();
52
53
        if (array_key_exists($code, $professions)) {
54
            return $professions[$code];
55
        }
56
57
        return null;
58
    }
59
}
60