@@ -73,7 +73,7 @@ |
||
73 | 73 | */ |
74 | 74 | public function getType(): ?ITypeReference |
75 | 75 | { |
76 | - return $this->type->getValue($this, [$this,'ComputeType']); |
|
76 | + return $this->type->getValue($this, [$this, 'ComputeType']); |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function addBinding(INamedElement $binding): void |
49 | 49 | { |
50 | 50 | if (!in_array($binding, $this->bindings)) { |
51 | - $this->bindings[] = $binding; |
|
51 | + $this->bindings[] = $binding; |
|
52 | 52 | } |
53 | 53 | } |
54 | 54 |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * @var array<IDependent> |
29 | 29 | */ |
30 | - protected $dependents =[]; |
|
30 | + protected $dependents = []; |
|
31 | 31 | /** |
32 | 32 | * @var ITypeReference |
33 | 33 | */ |
@@ -132,7 +132,7 @@ |
||
132 | 132 | return [$element]; |
133 | 133 | } |
134 | 134 | |
135 | - return $element ; |
|
135 | + return $element; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | return []; |
@@ -104,7 +104,7 @@ |
||
104 | 104 | assert($expression instanceof IGuidConstantExpression); |
105 | 105 | $this->processGuidConstantExpression($expression); |
106 | 106 | break; |
107 | - case ExpressionKind::If(): |
|
107 | + case ExpressionKind::If (): |
|
108 | 108 | assert($expression instanceof IIfExpression); |
109 | 109 | $this->processIfExpression($expression); |
110 | 110 | break; |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | assert($expression instanceof IGuidConstantExpression); |
105 | 105 | $this->processGuidConstantExpression($expression); |
106 | 106 | break; |
107 | - case ExpressionKind::If(): |
|
107 | + case ExpressionKind::if(): |
|
108 | 108 | assert($expression instanceof IIfExpression); |
109 | 109 | $this->processIfExpression($expression); |
110 | 110 | break; |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | assert($expression instanceof ILabeledExpression); |
129 | 129 | $this->processLabeledExpression($expression); |
130 | 130 | break; |
131 | - case ExpressionKind::Null(): |
|
131 | + case ExpressionKind::null(): |
|
132 | 132 | assert($expression instanceof INullExpression); |
133 | 133 | $this->processNullConstantExpression($expression); |
134 | 134 | break; |
@@ -29,19 +29,19 @@ |
||
29 | 29 | */ |
30 | 30 | class ValueKind extends Enum |
31 | 31 | { |
32 | - protected const None =0; |
|
32 | + protected const None = 0; |
|
33 | 33 | protected const Binary = 1; |
34 | - protected const Boolean =2; |
|
35 | - protected const Collection =3; |
|
36 | - protected const DateTimeOffset=4; |
|
37 | - protected const DateTime =5; |
|
38 | - protected const Decimal =6; |
|
39 | - protected const Enum =7; |
|
40 | - protected const Floating =8; |
|
41 | - protected const Guid =9; |
|
42 | - protected const Integer =10; |
|
43 | - protected const Null =11; |
|
44 | - protected const String =12; |
|
45 | - protected const Structured =13; |
|
46 | - protected const Time =14; |
|
34 | + protected const Boolean = 2; |
|
35 | + protected const Collection = 3; |
|
36 | + protected const DateTimeOffset = 4; |
|
37 | + protected const DateTime = 5; |
|
38 | + protected const Decimal = 6; |
|
39 | + protected const Enum = 7; |
|
40 | + protected const Floating = 8; |
|
41 | + protected const Guid = 9; |
|
42 | + protected const Integer = 10; |
|
43 | + protected const Null = 11; |
|
44 | + protected const String = 12; |
|
45 | + protected const Structured = 13; |
|
46 | + protected const Time = 14; |
|
47 | 47 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | protected const Floating =8; |
41 | 41 | protected const Guid =9; |
42 | 42 | protected const Integer =10; |
43 | - protected const Null =11; |
|
43 | + protected const null =11; |
|
44 | 44 | protected const String =12; |
45 | 45 | protected const Structured =13; |
46 | 46 | protected const Time =14; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | { |
27 | 27 | protected const None = null; |
28 | 28 | protected const TypeDefinition = 'SchemaType'; |
29 | - protected const Function = 'Function'; |
|
29 | + protected const function = 'Function'; |
|
30 | 30 | protected const ValueTerm = 'ValueTerm'; |
31 | 31 | protected const EntityContainer = 'EntityContainer'; |
32 | 32 | } |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | protected const IntegerConstant = 8; |
80 | 80 | protected const StringConstant = 9; |
81 | 81 | protected const TimeConstant = 10; |
82 | - protected const Null = 11; |
|
82 | + protected const null = 11; |
|
83 | 83 | protected const Record = 12; |
84 | 84 | protected const Collection = 14; |
85 | 85 | protected const Path = 15; |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | protected const ValueTermReference = 19; |
90 | 90 | protected const EntitySetReference = 20; |
91 | 91 | protected const EnumMemberReference = 21; |
92 | - protected const If = 22; |
|
92 | + protected const if = 22; |
|
93 | 93 | protected const AssertType = 23; |
94 | 94 | protected const IsType = 24; |
95 | 95 | protected const FunctionApplication = 25; |
@@ -24,7 +24,7 @@ |
||
24 | 24 | $regexBase = '/(is)(%s)/m'; |
25 | 25 | $regexFull = sprintf($regexBase, implode('$|', array_keys($array))); |
26 | 26 | preg_match($regexFull, $name, $match); |
27 | - if (count($match)>0 && $match[0] === $name) { |
|
27 | + if (count($match) > 0 && $match[0] === $name) { |
|
28 | 28 | return $this->{$match[1] . 'Flag'}($array[$match[2]], $arguments[0] ?? null); |
29 | 29 | } |
30 | 30 | throw new BadMethodCallException(sprintf('Enum %s not found on %s', $name, get_class($this))); |