@@ -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 | } |
@@ -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))); |
@@ -118,7 +118,7 @@ |
||
| 118 | 118 | protected function endElement(IEdmElement $element, string $method): void |
| 119 | 119 | { |
| 120 | 120 | $method = $this->sanitizeMethodName($method); |
| 121 | - $elementClone = $this->cloneElementContainer->offsetGet($element); |
|
| 121 | + $elementClone = $this->cloneElementContainer->offsetGet($element); |
|
| 122 | 122 | foreach ($this->visitors as $visitor) { |
| 123 | 123 | $visitor->{'end' . $method}($elementClone); |
| 124 | 124 | } |
@@ -11,5 +11,5 @@ |
||
| 11 | 11 | |
| 12 | 12 | public $End1Annotations; |
| 13 | 13 | |
| 14 | - public $End2Annotations ; |
|
| 14 | + public $End2Annotations; |
|
| 15 | 15 | } |
@@ -12,11 +12,11 @@ discard block |
||
| 12 | 12 | /** |
| 13 | 13 | * @var IDirectValueAnnotation |
| 14 | 14 | */ |
| 15 | - public $Annotations ; |
|
| 15 | + public $Annotations; |
|
| 16 | 16 | /** |
| 17 | 17 | * @var IDirectValueAnnotation |
| 18 | 18 | */ |
| 19 | - public $End1Annotations ; |
|
| 19 | + public $End1Annotations; |
|
| 20 | 20 | /** |
| 21 | 21 | * @var IDirectValueAnnotation |
| 22 | 22 | */ |
@@ -24,5 +24,5 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * @var IDirectValueAnnotation |
| 26 | 26 | */ |
| 27 | - public $ConstraintAnnotations ; |
|
| 27 | + public $ConstraintAnnotations; |
|
| 28 | 28 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | */ |
| 101 | 101 | public function getSchemaElementKind(): SchemaElementKind |
| 102 | 102 | { |
| 103 | - return SchemaElementKind::Function(); |
|
| 103 | + return SchemaElementKind::Function (); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | assert($expression instanceof IGuidConstantExpression); |
| 111 | 111 | $this->processGuidConstantExpression($expression); |
| 112 | 112 | break; |
| 113 | - case ExpressionKind::If(): |
|
| 113 | + case ExpressionKind::If (): |
|
| 114 | 114 | assert($expression instanceof IIfExpression); |
| 115 | 115 | $this->processIfExpression($expression); |
| 116 | 116 | break; |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | /** |
| 30 | 30 | * @var array<IDependent> |
| 31 | 31 | */ |
| 32 | - protected $dependents =[]; |
|
| 32 | + protected $dependents = []; |
|
| 33 | 33 | /** |
| 34 | 34 | * @var ITypeReference |
| 35 | 35 | */ |
@@ -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 | |