KMGeneratorCommand   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 77
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 71
c 1
b 0
f 0
dl 0
loc 77
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getReservedNames() 0 2 1
1
<?php
2
3
4
namespace KMLaravel\ApiGenerator\Helpers;
5
6
7
8
class KMGeneratorCommand
9
{
10
    /**
11
     * @var array
12
     */
13
    private static $reservedNames = [
14
        '__halt_compiler',
15
        'abstract',
16
        'and',
17
        'array',
18
        'as',
19
        'break',
20
        'callable',
21
        'case',
22
        'catch',
23
        'class',
24
        'clone',
25
        'const',
26
        'continue',
27
        'declare',
28
        'default',
29
        'die',
30
        'do',
31
        'echo',
32
        'else',
33
        'elseif',
34
        'empty',
35
        'enddeclare',
36
        'endfor',
37
        'endforeach',
38
        'endif',
39
        'endswitch',
40
        'endwhile',
41
        'eval',
42
        'exit',
43
        'extends',
44
        'final',
45
        'finally',
46
        'fn',
47
        'for',
48
        'foreach',
49
        'function',
50
        'global',
51
        'goto',
52
        'if',
53
        'implements',
54
        'include',
55
        'include_once',
56
        'instanceof',
57
        'insteadof',
58
        'interface',
59
        'isset',
60
        'list',
61
        'namespace',
62
        'new',
63
        'or',
64
        'print',
65
        'private',
66
        'protected',
67
        'public',
68
        'require',
69
        'require_once',
70
        'return',
71
        'static',
72
        'switch',
73
        'throw',
74
        'trait',
75
        'try',
76
        'unset',
77
        'use',
78
        'var',
79
        'while',
80
        'xor',
81
        'yield',
82
    ];
83
    public static function getReservedNames(){
84
        return self::$reservedNames;
85
    }
86
87
}
88