@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @var EdmModelVisitor $this |
| 39 | 39 | */ |
| 40 | 40 | switch ($element->getSchemaElementKind()) { |
| 41 | - case SchemaElementKind::Function(): |
|
| 41 | + case SchemaElementKind::Function (): |
|
| 42 | 42 | assert($element instanceof IFunction); |
| 43 | 43 | $this->processFunction($element); |
| 44 | 44 | break; |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @var EdmModelVisitor $this |
| 39 | 39 | */ |
| 40 | 40 | switch ($element->getSchemaElementKind()) { |
| 41 | - case SchemaElementKind::Function(): |
|
| 41 | + case SchemaElementKind::function(): |
|
| 42 | 42 | assert($element instanceof IFunction); |
| 43 | 43 | $this->processFunction($element); |
| 44 | 44 | break; |
@@ -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; |
@@ -110,7 +110,7 @@ discard block |
||
| 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; |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | assert($expression instanceof ILabeledExpression); |
| 135 | 135 | $this->processLabeledExpression($expression); |
| 136 | 136 | break; |
| 137 | - case ExpressionKind::Null(): |
|
| 137 | + case ExpressionKind::null(): |
|
| 138 | 138 | assert($expression instanceof INullExpression); |
| 139 | 139 | $this->processNullConstantExpression($expression); |
| 140 | 140 | break; |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | /* |
| 31 | 31 | * @var EdmModelVisitor $this |
| 32 | 32 | */ |
| 33 | - self::visitCollection($annotations, [$this,'visitAnnotation']); |
|
| 33 | + self::visitCollection($annotations, [$this, 'visitAnnotation']); |
|
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | /** |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * @param bool $isOpen denotes if the type is open |
| 46 | 46 | * @param IEntityType $baseStructuredType the base type of this entity type |
| 47 | 47 | */ |
| 48 | - public function __construct(string $namespaceName, string $name, bool $isAbstract =false, bool $isOpen= true, IEntityType $baseStructuredType = null) |
|
| 48 | + public function __construct(string $namespaceName, string $name, bool $isAbstract = false, bool $isOpen = true, IEntityType $baseStructuredType = null) |
|
| 49 | 49 | { |
| 50 | 50 | parent::__construct($isAbstract, $isOpen, $baseStructuredType); |
| 51 | 51 | $this->namespaceName = $namespaceName; |
@@ -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 | */ |
@@ -167,7 +167,7 @@ |
||
| 167 | 167 | /** |
| 168 | 168 | * @return string gets the namespace of this core model |
| 169 | 169 | */ |
| 170 | - public static function Namespace(): string |
|
| 170 | + public static function namespace(): string |
|
| 171 | 171 | { |
| 172 | 172 | return 'Edm'; |
| 173 | 173 | } |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | * @param string|null $defaultValueString the default value of this property |
| 39 | 39 | * @param ConcurrencyMode|null $concurrencyMode the concurrency mode of this property |
| 40 | 40 | */ |
| 41 | - public function __construct(IStructuredType $declaringType, string $name, ITypeReference $type, string $defaultValueString = null, ConcurrencyMode $concurrencyMode= null) |
|
| 41 | + public function __construct(IStructuredType $declaringType, string $name, ITypeReference $type, string $defaultValueString = null, ConcurrencyMode $concurrencyMode = null) |
|
| 42 | 42 | { |
| 43 | 43 | parent::__construct($declaringType, $name, $type); |
| 44 | 44 | $this->defaultValueString = $defaultValueString; |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | */ |
| 80 | 80 | public function getSchemaElementKind(): SchemaElementKind |
| 81 | 81 | { |
| 82 | - return SchemaElementKind::Function(); |
|
| 82 | + return SchemaElementKind::Function (); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -79,7 +79,7 @@ |
||
| 79 | 79 | */ |
| 80 | 80 | public function getSchemaElementKind(): SchemaElementKind |
| 81 | 81 | { |
| 82 | - return SchemaElementKind::Function(); |
|
| 82 | + return SchemaElementKind::function(); |
|
| 83 | 83 | } |
| 84 | 84 | |
| 85 | 85 | /** |
@@ -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 | |